- 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
- Convert mp4 to mov for QT:
ffmpeg -i rpi5-setup.mp4 -c:v libx264 -pix_fmt yuv420p -profile:v high -level 4.1 -c:a aac -b:a 160k -movflags +faststart output.mov
- Convert webm to MP4:
ffmpeg -i input.webm -c:v libx264 -preset slow -crf 22 -c:a aac -b:a 128k output.mp4