[FFmpeg-devel] Translating 1080i HD, from h264 to mpeg2-hd is buggy.

Michael Niedermayer michaelni
Sat Oct 3 18:34:50 CEST 2009


On Sat, Oct 03, 2009 at 04:57:51PM +0200, wallak at free.fr wrote:
> 
> Thanks for the advices. I've tried the patch below, with ffmpeg release 20151
> available this week . It works properly on my configuration. The low_delay is
> not fixed here. But this patch may be a first step, and it is required, if we
> want a proper behavior.
> 
> --- ffmpeg-r20151/libavformat/utils.c   2009-10-01 23:12:42.000000000 +0200
> +++ ffmpeg-r20151/libavformat/utils.c   2009-10-01 22:34:54.000000000 +0200
> @@ -770,7 +770,7 @@
>      int num, den, presentation_delayed, delay, i;
>      int64_t offset;
> 
> -    if (pc && pc->pict_type == FF_B_TYPE)
> +    if (st->codec->codec_id != CODEC_ID_H264 && pc && pc->pict_type == FF_B_TYPE)
>          st->codec->has_b_frames = 1;
> 
>      /* do we have a video B-frame ? */

patch ok

adding a //FIXME this should reset low_delay
would also be better than nothing


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091003/cb652655/attachment.pgp>



More information about the ffmpeg-devel mailing list