[FFmpeg-devel] [PATCH] ffmpeg.c: Add output file index and stream index to vstats file.

Michael Niedermayer michaelni at gmx.at
Sat Jan 21 02:18:08 EET 2017


On Thu, Jan 19, 2017 at 02:34:14PM -0800, Sasi Inguva wrote:
> Signed-off-by: Sasi Inguva <isasi at google.com>
> ---
>  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);

Should this be under a check for vstats version ?
So as not to break any code using the vstats file or is there some
declaration in our docs that the format may change at any time ?

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170121/fadd5395/attachment.sig>


More information about the ffmpeg-devel mailing list