2

If you convert from mjpeg to mp4 (libx264) with FFmpeg, Playback can not be performed on Windows · Mac.

Thumbnails are not displayed on the icon. However, with the HTML5 Video tag, playback is possible.

Why? Please tell me if you understand. Thank you.

ffmpeg -i source_file.mov -b 4000k -vcodec libx264 destination_file.mp4
salud
  • 103
  • 1
  • 1
  • 8

1 Answers1

8

The usual reason for this is the pixel format. The MJPEG may have 4:2:2 or 4:4:4 chroma sampling which most players don't support in H264. So try

ffmpeg -i source_file.mov -pix_fmt yuv420p -b:v 4000k -c:v libx264 destination_file.mp4
Gyan
  • 85,394
  • 9
  • 169
  • 201