[FFmpeg-user] Converting from h264(yuvj420p) to h264(yuv420p) without transcoding

Wu-bin Zhen vvubin at gmail.com
Mon Feb 11 23:10:04 CET 2013

Hello ffmpeg,

I have a weird device that only generates h264 video stream with yuv"J"420p
pixel format. Unfortunately the chrome browser does not support the pixel
format, so I have no choice but transcoding every frame from yuvj420p to
yuv420p. It costs a lot of time, and should be lose some quality because
each frame is going to be encoded again.

I googled that there is an user modified the gpac MP4Box to manipulate VUI
property. I remember it is "fullrange" flag.

And it seems the trick is working for some users:

My machine is not able to compile his gpac, and the old gpac has some
limitations. So I wonder if there is a "ffmpeg" way to change the pixel
format without transcoding every frame. I tried "-vcodec copy
-pix_fmt=yuv420p" options but it is not working, and the output file still
uses the yuv"J"420p pixel format.

Any advise will be appreciated.

More information about the ffmpeg-user mailing list