ffmpeg -i input.m2ts -vf yadif=deint=interlaced -f rawvideo - | x264 --input-res WxH --fps N -o out.mp4 -