Skip to content

Instantly share code, notes, and snippets.

@leon-anavi
Created January 6, 2024 20:23
Show Gist options
  • Save leon-anavi/04ed8b2dd0f3cf5a07fbbc111641af05 to your computer and use it in GitHub Desktop.
Save leon-anavi/04ed8b2dd0f3cf5a07fbbc111641af05 to your computer and use it in GitHub Desktop.
ffmpeg extract
  • Extract audio from movie:
ffmpeg -i test.MP4 -ac 2 -f wav test.wav
  • Improve audio
  • Replace the audio in the movie:
ffmpeg -i test.MP4 -i test-fixed.wav -acodec copy -vcodec copy -map 0:v:0 -map 1:a:0 test.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment