From patchwork Thu Jan 19 22:34:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasi Inguva X-Patchwork-Id: 2262 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.89.21 with SMTP id n21csp486165vsb; Thu, 19 Jan 2017 14:35:22 -0800 (PST) X-Received: by 10.28.27.67 with SMTP id b64mr935815wmb.126.1484865322623; Thu, 19 Jan 2017 14:35:22 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id d62si997561wmf.8.2017.01.19.14.35.22; Thu, 19 Jan 2017 14:35:22 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C8E2F68A46D; Fri, 20 Jan 2017 00:35:07 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf0-f170.google.com (mail-pf0-f170.google.com [209.85.192.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C66D768A190 for ; Fri, 20 Jan 2017 00:35:00 +0200 (EET) Received: by mail-pf0-f170.google.com with SMTP id y143so16766668pfb.0 for ; Thu, 19 Jan 2017 14:35:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=G2uZxLyrbfewhgNA/MfTQIC1thyQswB0HqRPCo7uoVs=; b=XM6rztHMsQhpm6bSTNfcdoF+BsnogolEgZ/FAHpakR+pwimFYEp9P2nQfqe6+KIexV pqgZ/AebsSMSSSV6jGUPfbs7BglejWTzy0X/VwNHQfzy5010c3MAJ3xxtzS+EJqy6A3Y NWMn9fTjBrzGmEB2wTMqlU4iM187uta9ZaMt1ZjsSZz25A6Zp/nqS3zJMa+MToXxurp7 LW5cZyw5ZmtAnHFV6OKpEw9B72p+cAQAsor99MnhyFDhS2bl0kegz5kC4YIkEkEYXgxJ GgXX1T4jrZ8yXQYkIr4nkwiwml856f5K4bv8oE0yYbJIsr1uIT4GY0cbZBvMeeoYvfIa MMVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=G2uZxLyrbfewhgNA/MfTQIC1thyQswB0HqRPCo7uoVs=; b=K+go+sG9UPGAnhy5fB65RmwwhREk9Qf8mBdEJznxPaQsyN+/h2yewAldpZNzC/NkXg yeWVljfxX1JD65cxVnUS6vfhdkdiK6/qq6ITilcPVwAsDtx1ERJSG89dor/6dTCzdHKN tX1M3Vz1wgIiBO7e04WI/M9AHhCAto9GUv54iNoA7UmXP9NGHTnajZgaeZVGt0+VIms4 di77BqNdbM7CM1+irrZhqBlIsr97Or0QvOxqW+kCaUhM0lrW8Drhk1IKqYj5Omuv8vU8 ZRle8qx5iugOUqYAeO2iJ2ya3OgaknRt9ec3QXoVSYT/ZcysMulmQU1zgb8osBhwCRq7 1/gg== X-Gm-Message-State: AIkVDXJ3YL+sXcfiKgOSkRfGEmGch/mQy/pf/Z4fQsDwI9Y/+rbj0Hj/SPSzAXEU6DYFFQ48 X-Received: by 10.84.217.202 with SMTP id d10mr16534545plj.53.1484865310129; Thu, 19 Jan 2017 14:35:10 -0800 (PST) Received: from isasi.mtv.corp.google.com ([172.27.82.89]) by smtp.gmail.com with ESMTPSA id v186sm11171499pgv.44.2017.01.19.14.35.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 14:35:09 -0800 (PST) From: Sasi Inguva To: ffmpeg-devel@ffmpeg.org Date: Thu, 19 Jan 2017 14:34:14 -0800 Message-Id: <20170119223414.28516-1-isasi@google.com> X-Mailer: git-send-email 2.11.0.483.g087da7b7c-goog Subject: [FFmpeg-devel] [PATCH] ffmpeg.c: Add output file index and stream index to vstats file. 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 Cc: Sasi Inguva MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Sasi Inguva --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 977708c069..a566c3fe2a 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1347,7 +1347,7 @@ static void do_video_stats(OutputStream *ost, int frame_size) enc = ost->enc_ctx; if (enc->codec_type == AVMEDIA_TYPE_VIDEO) { frame_number = ost->st->nb_frames; - fprintf(vstats_file, "frame= %5d q= %2.1f ", frame_number, + fprintf(vstats_file, "out= %2d st= %2d frame= %5d q= %2.1f ", ost->file_index, ost->index, frame_number, ost->quality / (float)FF_QP2LAMBDA); if (ost->error[0]>=0 && (enc->flags & AV_CODEC_FLAG_PSNR))