Quoting Luca Barbato (2015-07-14 18:58:57)
> ---
>  libavformat/movenc.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/libavformat/movenc.c b/libavformat/movenc.c
> index d8255c8..5c2f8d0 100644
> --- a/libavformat/movenc.c
> +++ b/libavformat/movenc.c
> @@ -4274,7 +4274,7 @@ AVOutputFormat ff_mov_muxer = {
>      .write_header      = mov_write_header,
>      .write_packet      = mov_write_packet,
>      .write_trailer     = mov_write_trailer,
> -    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE,
> +    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE | AVFMT_VARIABLE_FPS,
>      .codec_tag         = (const AVCodecTag* const []){
>          ff_codec_movvideo_tags, ff_codec_movaudio_tags, 0
>      },
> @@ -4293,7 +4293,7 @@ AVOutputFormat ff_tgp_muxer = {
>      .write_header      = mov_write_header,
>      .write_packet      = mov_write_packet,
>      .write_trailer     = mov_write_trailer,
> -    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE,
> +    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE | AVFMT_VARIABLE_FPS,
>      .codec_tag         = (const AVCodecTag* const []){ codec_3gp_tags, 0 },
>      .priv_class        = &tgp_muxer_class,
>  };
> @@ -4312,7 +4312,7 @@ AVOutputFormat ff_mp4_muxer = {
>      .write_header      = mov_write_header,
>      .write_packet      = mov_write_packet,
>      .write_trailer     = mov_write_trailer,
> -    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE,
> +    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE | AVFMT_VARIABLE_FPS,
>      .codec_tag         = (const AVCodecTag* const []){ ff_mp4_obj_type, 0 },
>      .priv_class        = &mp4_muxer_class,
>  };
> @@ -4330,7 +4330,7 @@ AVOutputFormat ff_psp_muxer = {
>      .write_header      = mov_write_header,
>      .write_packet      = mov_write_packet,
>      .write_trailer     = mov_write_trailer,
> -    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE,
> +    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE | AVFMT_VARIABLE_FPS,
>      .codec_tag         = (const AVCodecTag* const []){ ff_mp4_obj_type, 0 },
>      .priv_class        = &psp_muxer_class,
>  };
> @@ -4347,7 +4347,7 @@ AVOutputFormat ff_tg2_muxer = {
>      .write_header      = mov_write_header,
>      .write_packet      = mov_write_packet,
>      .write_trailer     = mov_write_trailer,
> -    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE,
> +    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE | AVFMT_VARIABLE_FPS,
>      .codec_tag         = (const AVCodecTag* const []){ codec_3gp_tags, 0 },
>      .priv_class        = &tg2_muxer_class,
>  };
> @@ -4365,7 +4365,7 @@ AVOutputFormat ff_ipod_muxer = {
>      .write_header      = mov_write_header,
>      .write_packet      = mov_write_packet,
>      .write_trailer     = mov_write_trailer,
> -    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE,
> +    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE | AVFMT_VARIABLE_FPS,
>      .codec_tag         = (const AVCodecTag* const []){ codec_ipod_tags, 0 },
>      .priv_class        = &ipod_muxer_class,
>  };
> @@ -4383,7 +4383,7 @@ AVOutputFormat ff_ismv_muxer = {
>      .write_header      = mov_write_header,
>      .write_packet      = mov_write_packet,
>      .write_trailer     = mov_write_trailer,
> -    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE,
> +    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE | AVFMT_VARIABLE_FPS,
>      .codec_tag         = (const AVCodecTag* const []){ ff_mp4_obj_type, 0 },
>      .priv_class        = &ismv_muxer_class,
>  };
> @@ -4401,7 +4401,7 @@ AVOutputFormat ff_f4v_muxer = {
>      .write_header      = mov_write_header,
>      .write_packet      = mov_write_packet,
>      .write_trailer     = mov_write_trailer,
> -    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE,
> +    .flags             = AVFMT_GLOBALHEADER | AVFMT_ALLOW_FLUSH | 
> AVFMT_TS_NEGATIVE | AVFMT_VARIABLE_FPS,
>      .codec_tag         = (const AVCodecTag* const []){ codec_f4v_tags, 0 },
>      .priv_class        = &f4v_muxer_class,
>  };
> -- 
> 1.9.0

I recall a discussion about this some time ago, with someone saying that
the VFR support in mp4 (or maybe just some of its variants?) was shady,
in that the resulting files were significantly larger.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to