Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.





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 \

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: