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

Sasi Inguva isasi at google.com
Sat Jan 21 05:31:09 EET 2017


Couldn't find any version that relates to vstats. There is nothing that
says format may change any time , but there is no defined format either.
Let me know the version enum I have to update if I need to.

On Fri, Jan 20, 2017 at 4:18 PM, Michael Niedermayer <michaelni at gmx.at>
wrote:

> 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
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>


More information about the ffmpeg-devel mailing list