开发者

when adding mp3 to video the sound quality is low,why?

开发者 https://www.devze.com 2023-01-11 05:31 出处:网络
Hi i have mp3 encoded with 128 kbps in 44 khz very well sound quality when playing but when i try to add audio to video with ffmpeg the audio become in very low quality i mean very low

Hi i have mp3 encoded with 128 kbps in 44 khz very well sound quality when playing but when i try to add audio to video with ffmpeg the audio become in very low quality i mean very low this is the command im using :

ffmpeg -ar 22开发者_运维技巧050 -ab 32k -i Afterwards.mp3 -i video_finale.mpg video_finale_sound.mpg

or

ffmpeg -i  Afterwards.mp3 -i video_finale.mpg  -vcodec video_finale_sound.mpg

but still my quality is low any idea how to fix that ?


According to FFMPEG Documentation FFMPEG uses 64kbit as default audio bitrate, try to add -ab 128k to your command, additionally you should add -ac 2 to use stereo. You could also try to add -acodec copy to disable re encoding


Probably has to do with the fact you're re-encoding the audio when you convert it back and forth in MP3, Try adding the original audio in wav or any other lossless audio codecs instead, and try setting the quality flags on ffmpg

0

精彩评论

暂无评论...
验证码 换一张
取 消