[FFmpeg-devel] [PATCH] Initializing pack_header_freq
Diep Ho
DHo
Tue Sep 2 10:25:58 CEST 2008
<Ding>
> -----Original Message-----
> From: ffmpeg-devel-bounces at mplayerhq.hu [mailto:ffmpeg-devel-
> bounces at mplayerhq.hu] On Behalf Of Diep Ho
> Sent: lundi 1 septembre 2008 15:41
> To: ffmpeg-devel at mplayerhq.hu
> Subject: [FFmpeg-devel] [PATCH] Initializing pack_header_freq
>
> I propose to use mux_rate to set the value of pack_header_freq. This
> should provide a better value when in VBR mode. Moreover, it is
> configurable through mux_rate.
>
> Rgds,
>
> DHO
>
>
>
> ===================================================================
>
> --- libavformat/mpegenc.c (revision 15138)
>
> +++ libavformat/mpegenc.c (working copy)
>
> @@ -451,7 +451,7 @@
>
> s->pack_header_freq = 1;
>
> else
>
> /* every 2 seconds */
>
> - s->pack_header_freq = 2 * bitrate / s->packet_size / 8;
>
> + s->pack_header_freq = 2 * 50 * s->mux_rate / s->packet_size;
>
>
>
> /* the above seems to make pack_header_freq zero sometimes */
>
> if (s->pack_header_freq == 0)
More information about the ffmpeg-devel
mailing list