[FFmpeg-user] Recoding H.264/4.2.2 to H.264/4.2.0

Andy Furniss adf.lists at gmail.com
Wed Jun 7 17:00:12 EEST 2017

Mike Brown wrote:
> On Wed, Jun 07, 2017 at 12:03:33PM +0200, Moritz Barsnick wrote:
>> On Tue, Jun 06, 2017 at 21:54:41 -0500, Mike Brown wrote:
>>> If given an H.264/4.2.2 elementary stream, can ffmpeg recode it to
>>> H.264/4.2.0.  If so, what would the command line be?
>> $ ffmpeg -i myelementarystream_422.h264 -c:v libx264 [ other x264/encoding options ] -pix_fmt yuv420p outfile.h264
> Thanks, I appreciate the response.

OK as long as it's progressive, interlaced would need different, maybe 
(untested/from memory)

-vf scale=interl=1,format=yuv240p

plus specific interlace encode options to libx264.

More information about the ffmpeg-user mailing list