Skip to content

Instantly share code, notes, and snippets.

@lukehedger
Last active April 9, 2025 09:08
Show Gist options
  • Save lukehedger/277d136f68b028e22bed to your computer and use it in GitHub Desktop.
Save lukehedger/277d136f68b028e22bed to your computer and use it in GitHub Desktop.
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@somaGFX
Copy link

somaGFX commented Mar 27, 2025

does anyone know why I do not get any audio when I use ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 or ffmpeg -i input.mp4 -vcodec h264 -acodec mp3 output.mp4?

I found a solution that works with ffmpeg -i input.mp4 -vcodec h264 -acodec copy output.mp4 but it does not solve the problem with the audio converting and I would really like to know what's the problem with the audio

tbh I got a pretty niet 650M file out of 2.7G

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment