Comment by Tempest1981

Comment by Tempest1981 4 days ago

10 replies

I was surprised that macOS (QuickTime/Preview, iMovie) can't read .mp4 files. Not sure if it was due to H.265 or the audio codec. I tried using ffmpeg to convert to .mov but that also failed to open, since I guess MOV is just another container format.

Is there an easier way?

kiicia 4 days ago

MP4 is container, not format, so if you have unsupported format packed into MP4 container it won’t be played. Example is trying to play AV1 video codec on devices with M2 chip or older. It won’t play. But it will play on devices with M3 chip and newer. Easiest solution is to use other player so that you can watch any MP4 file but with software decoding where hardware decoding is not available. Examples of such players are MPV or VLC.

  • Tempest1981 4 days ago

    Yes, VLC works fine for playing. The user wanted to edit some mp4 videos with iMovie (vs ffmpeg).

    I think it was an M4 Mac. Does iMovie need a codec pack? I know some PC OEMs don't ship an h.265 codec, pointing users to a $0.99 download. Thought Mac would include it, being aimed at content creators. Hoping for a cheaper solution than Adobe Premiere.

    • kiicia 3 days ago

      H265 is different codec, and exactly because of that license fee both VP9 and AV1 exist. Apple was hiding VP9 support for long time now and AV1 support is now official.

andrewf 4 days ago

Try something like: ffmpeg -i in.mp4 -c:v h264 -c:a aac out.mp4

To re-encode the content into H.264+AAC, rather than simply "muxing" the encoded bitstreams from the MP4 container into a new MOV container.

  • Tempest1981 4 days ago

    Thanks, I can even somewhat remember that. AI gave me args like

      -c:v libx264 -pix_fmt yuv420p -preset medium -crf 18 \
      -c:a aac -b:a 192k \
    • stackedinserter 4 days ago

      "-c:v h264_videotoolbox -b:v 5000k" on macos, it will use hardware encoder.