[FFmpeg-user] What is wrong with this .mov to mp4 conevrsion?

Moritz Barsnick barsnick at gmx.net
Mon Jul 13 09:11:16 CEST 2015


Hi Dani,

On Mon, Jul 13, 2015 at 02:19:40 +0000, Dani A wrote:
> ffmpeg -i countdown.mov -vf "scale=640x360,setdar=16:9" -c:v libx264 -profile:v main -crf 23 -preset veryfast -movflags faststart countdown.mp4 
[...]
>     Stream #0:0(eng), 1, 1/25: Video: mjpeg (jpeg / 0x6765706A), yuvj422p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 72:72 DAR 16:9], 35733 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
> No pixel format specified, yuvj422p for H.264 encoding chosen.
> Use -pix_fmt yuv420p for compatibility with outdated media players.
> [libx264 @ 0x2d792a0] Error setting profile main.
> [libx264 @ 0x2d792a0] Possible profiles: baseline main high high10 high422 high444

The main profile does not support 4:2:2 pixel formats, see the table at
the end of this section:
https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Profiles
Your mjpeg input delivers yuvj422p, and ffmpeg doesn't automatically
convert. So you have to add "-pix_fmt yuv420p".

Cheers,
Moritz


More information about the ffmpeg-user mailing list