Remix.run Logo
Tempest1981 a day ago

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 a day ago | parent | next [-]

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 a day ago | parent [-]

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 4 hours ago | parent [-]

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.

felixfoertsch a day ago | parent | prev | next [-]

IMHO the de-facto video player for macOS is [IINA](https://iina.io/).

trvz a day ago | parent [-]

That exists, but it’s still VLC.

wging a day ago | parent [-]

It's based on mpv, not vlc.

andrewf a day ago | parent | prev | next [-]

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 a day ago | parent [-]

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 a day ago | parent [-]

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

codegladiator a day ago | parent | prev [-]

vlc