[FFmpeg-user] Transcoding 1080i5000 using libx264

Paul Gardiner lists at glidos.net
Thu Jun 16 11:58:35 CEST 2011


On 16/06/2011 09:14, Robert Nagy wrote:
> Hi
>
> I would like to transcode a 1080i5000 to H264 using ffmpeg and libx264.
>
> Currently I'm using the following command-line:
>
> ffmpeg -i<input>  -vcodec libx264 -tune fastdecode -crf 18 -preset medium
> -threads 0<output>
>
> My question is what additional options do I need to provide in order to
> properly transcode tff interlaced video?

-flags +ilme+ildct

It should recognise tff automatically. Otherwise you need -top 1

That works for me beautifully. Another option that wont make a much
bigger file, but may make one that requires more grunt to play is
to deinterlace and encode at double frame rate. Instead of above, add:

-vf yadif=3 (before -vcodec libx264)

and

-r 50 (after -vcodec libx264)

I'm not sure that the placement matters, but that's what's working
for me. If you want to downscale to 720p50 then

-vf yadif=3,scale=1280:720

Cheers,
	Paul.


More information about the ffmpeg-user mailing list