Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to improve the quality of resultant video when merging audio-video with ffmpeg?

When merging an audio and video with ffmpeg, the quality of the resultant video goes down. How to we improve the quality(esp. the audio quality)?

The audio quality gets degraded to quite an extent with random screeches in between. I've tried converting the audio to mp3 and video to mp4 before merging them, tried various audio-video parameters like bitrate, sample-rate, qscale etc but still unsuccessful. Any help would be greatly appreciated!

like image 441
R.S Avatar asked Jan 18 '26 00:01

R.S


1 Answers

The -acodec copy command line option should just copy the audio stream and not re-encode it. For the video stream -vcodec copy. Also, you can used the -sameq option for the video stream.

See this answer for a little more detail.

like image 68
Dave Rager Avatar answered Jan 19 '26 19:01

Dave Rager