[FFmpeg-user] How to TFF H264 stream to TFF MPEG2

William Caulfield william.caulfield at contentbridge.tv
Fri Sep 9 20:29:03 EEST 2016


On Thu, Sep 8, 2016 at 11:50 PM, HaiJiao Qiao 乔海娇 <HaiJiao.Qiao at availink.com
> wrote:

> Dear all,
>
> I’m trying reencode a H264 stream to MPEG2.  The H264 is interlaced,  top
> field first stream.
> For the output MPEG2 stream,  I also want a interlaced, TFF stream.
>
> FFMPEG command:
> “ffmpeg.exe -i f:\BUGS\YingHai_ENCODER\ORIGINAL\out.h264 -vf
> yadif=0:tff,scale=720:576,colormatrix=bt709:bt601,interlace -pix_fmt
> yuv420p -vcodecmpeg2video -flags +ildct+ilme -alternate_scan 1 -trellis 2
> -tff -dc 10 -g 12 –bf 2 -qmin 1 -qmax 31 -b:v 6000k -minrate 1000000
> -maxrate 9000000 -bufsize 1835008 -packetsize 2048 -muxrate 10080000
> output_0.ts”
>
> But output_0.ts seemed like frame coding,  it’s terrible on Motion Scene.
>
> So can anyone whether my command is correct?  How to indicate field coding?
>
> I’m looking forward your reply.
>
> Best regards,
>
> Qiao
>
>
This may be too simplistic an answer, but you should try "-top 1" after  "
+ildct+ilme"

-top 1 sets output to top field first
-top 0 sets to bottom field first
-top -1 senses what the input is and adjusts for it


-- 

[image: Inline image 1]

*William Caulfield *| *ContentBridge Systems*
Product and Encoding Manager | www.contentbridge.tv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 13375 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20160909/dcca8792/attachment.png>


More information about the ffmpeg-user mailing list