From patchwork Thu Jun 6 20:31:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Hilb X-Patchwork-Id: 13438 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 47AAA448E8E for ; Thu, 6 Jun 2019 23:32:51 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2BCDA68A874; Thu, 6 Jun 2019 23:32:51 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.bs0x539.de (mail.bs0x539.de [138.201.57.224]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A59BF689F12 for ; Thu, 6 Jun 2019 23:32:43 +0300 (EEST) From: Stephan Hilb DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bs0x539.de; s=bs0x539.de; t=1559853163; bh=iNL7R3VqKinRXpV369ipHVjXMWDq8uC2yjcw6HBw6zI=; h=From:To:Subject:Date; b=Ngz4FNndMeXOIwhklvUE6gXg2mLSjUo/k+PKx67d3etFg7BshU00wUDqoUa15/Dut hT1XWZYZlXdZCbgDCHfZ9NWGBfw+eQTVK8fw1dTRf7HkD6zBFBLn17OYbQX3D+7TtI ys6yJbGY4+gXsC1s/4k36Oj7EJhFMyNKtcpLQvumfbYSyCok2FDVAlMcviWMuJBBut 1dyHh1weIXpbYnWh0ZIZb6u6d58IlEb1laiVtumJfWEmDuhWuBAZUwofqO+BhqvQdh aLJnezq9HkLRlYXY6oYWHfxA6PFH2OyPAAfkDpL7TtsKvMt4B7gK2o/79HC0cE9BrZ R59uM0WZ1MFqg== To: ffmpeg-devel@ffmpeg.org Date: Thu, 6 Jun 2019 22:31:45 +0200 Message-Id: <20190606203145.22217-2-stephan@ecshi.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] fftools/ffmpeg: log skipped initial non-keyframes X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" If `AV_PKT_FLAG_KEY` stays unset on `pkt->flags`, the output stream stays empty with little information about what is going on. This change makes it easier to debug the situation for the user who could then choose to use the `-copyinkf` option. --- fftools/ffmpeg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 01f04103cf..446439e285 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2006,8 +2006,10 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p } if ((!ost->frame_number && !(pkt->flags & AV_PKT_FLAG_KEY)) && - !ost->copy_initial_nonkeyframes) + !ost->copy_initial_nonkeyframes) { + av_log(NULL, AV_LOG_DEBUG, "skipping initial non-keyframe\n"); return; + } if (!ost->frame_number && !ost->copy_prior_start) { int64_t comp_start = start_time;