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

Dani A danix4u at yahoo.com
Tue Jul 14 07:42:59 CEST 2015


Thanks Mortiz,

if I add -pix_fmt yuv420p to my long ffmpeg command , will it work on all mov formats conversion to mp4s, or only on 4:2:2 pixel formats?

 


     On Monday, July 13, 2015 3:11 AM, Moritz Barsnick <barsnick at gmx.net> wrote:
   

 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
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


  


More information about the ffmpeg-user mailing list