From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 8BFAD40B0B for ; Mon, 27 Dec 2021 06:17:51 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DB60568AFAF; Mon, 27 Dec 2021 08:17:48 +0200 (EET) Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 87AE9680297 for ; Mon, 27 Dec 2021 08:17:42 +0200 (EET) Received: by mail-qt1-f181.google.com with SMTP id a1so12741698qtx.11 for ; Sun, 26 Dec 2021 22:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=r7lP8XJRYE5dhwFQjh1VnCYzzw7ayP+43DaQSPqioEs=; b=NKhV56x5k4uSCr9CmT7iQa+Xe4d4uggF4CAOUi8LEH4KjdFk2yvV6d0NPyAHrTQcqh Rj5ZIUotRgkEBEhGLiBupXXdI1eAwH4h0YlxQilxE+MlrFp3qbFW4G43yx1MJzR3/Co1 /GviO8rO4kr+Eqh2a5HzfNp9C38Mn3mCaZ+JwuMc/9rYEQ809aRyT9bYHwz2ZSEd5hzv N0D6uRS+3Pta1C1sPGN4SGJHC+NYoGyrLWtHlZ0LksNXh/eG98viXP3ULRX/TKO6jSIC 4gmYyMLJ63lcBuvO0XDvC0I/IW7crbDSyOazNYeTgOl7SrOXBQELu33XKUrl75bM7IBB rZAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=r7lP8XJRYE5dhwFQjh1VnCYzzw7ayP+43DaQSPqioEs=; b=CqUtgPuouSJLcePkhubfwO0BRTJ8lgNuCfp6J1orFzC630y+V3ifh4CGsNipZq505b 5PhxLNJVkx+FUr2KZPYPnyMOrmyABZjPbUqsIEX6iF1wB3N82jWiUpFfLK7I1QTB8yx3 Gx60g6z1LDYpWJG8BpE9jvUjF8HxjjM9VqIDMwbyB5GdTrcm+X0Mn5e3XIExu4jXD0GU jeihMq6dPs9HfSCnP2sx7tseAhSRPhAizkIMciwf1dHRpVFzHtiiH/vQUXWGhspEXfMn icnmnkfvbBNX/i7/GvcUdU8Fm8GdTU63pYRX1uoJ0IUPXVf7et8ITlo8ttPmD18JK3cg dtOw== X-Gm-Message-State: AOAM5329vrDjdMB4hcX06f02nsKJlhi2TkI2/ip/fGy2qWR7Sp9BzWO9 rAwV7/9DBdE9A0v/8bsFxRQSKtIErGo= X-Google-Smtp-Source: ABdhPJxgXDKqCdnM1wmF+/U8gJxPuaW+pvXPQydZpbUAsJUO567pQv+/LBG5rD2ORDkgHwTW7oBQbQ== X-Received: by 2002:ac8:5a8e:: with SMTP id c14mr13808480qtc.332.1640585860156; Sun, 26 Dec 2021 22:17:40 -0800 (PST) Received: from jackie (pool-173-48-211-61.bstnma.fios.verizon.net. [173.48.211.61]) by smtp.gmail.com with ESMTPSA id r23sm4155333qkk.24.2021.12.26.22.17.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Dec 2021 22:17:39 -0800 (PST) Date: Mon, 27 Dec 2021 01:17:38 -0500 From: Andriy Gelman To: FFmpeg development discussions and patches Message-ID: <20211227061738.mbkxlmm4deveyggf@jackie> References: <20211214021215.456493-1-aicommander@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211214021215.456493-1-aicommander@gmail.com> Subject: Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_dec: dequeue frame if input isn't ready X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Cameron Gutman Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Tue, 14. Dec 02:12, Cameron Gutman wrote: > The V4L2M2M API operates asynchronously, so multiple packets can > be enqueued before getting a batch of frames back. Since it was > only possible to receive a frame by submitting another packet, > there wasn't a way to drain those excess output frames from when > avcodec_receive_frame() returned AVERROR(EAGAIN). > > In my testing, this change reduced decode latency of a real-time > 60 FPS H.264 stream by approximately 10x (200ms -> 20ms) on a > Raspberry Pi 4. I was doing some more tests today, but didn't have any luck dequeuing a frame if ff_decode_get_packet() returned EAGAIN. Could you share the dataset? Thanks, -- Andriy _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".