[FFmpeg-user] -pix_fmt yuv420p and deinterlacing

Katherine Frances knfrances at gmail.com
Sat Feb 25 23:50:09 EET 2017


Hi all,

When transcoding to H.264 from an interlaced 4:2:2 original, I always add
the flag *-pix_fmt yuv420p*, which obviously achieves two goals:
i. Chroma subsampling scheme: 4:2:2 -> 4:2:0
ii. Scan: interlaced -> progressive.

I'm interested in the *p* part of the flag. Can anyone tell me how the
deinterlacing is achieved, i.e., what filter is used here by default?
I searched around quite a lot, but couldn't find specifics on this in the
ffmpeg wiki, on the documentation, or elsewhere on the web.

This is a general question rather than particular to a certain file. But,
here I provide the encoding settings for such a file (via MediaInfo). I'm
sure how to parse them in regard to my question - for example, I don't see
any sign of *yadif*, *bwdif*, etc.

cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 /
> psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 /
> trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 /
> chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 /
> nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 /
> bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 /
> open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 /
> intra_refresh=0 / rc_lookahead=40 / rc=cbr / mbtree=1 / bitrate=4872 /
> ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=4872
> / vbv_bufsize=4872 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00


Thank you very much.

Best,
Katherine


More information about the ffmpeg-user mailing list