Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a .flv-file with extremely low volume. I have to turn it to max to be able to hear anything. Is there any way to increase the audio volume on the file itself? I have tried separating the audio from the video, amplifying it, and combine them again. Took forever and reduced the quality of the video. Have also tried ffmpeg with the -vol option. The volume then became just fine, but again, the video sucked after the operation.
The only way to permanently up the volume is to do what you're already doing, extract the audio, boost it, then recombine it with the video.
Since you don't give any details about how you're doing it, I can't say for sure about the video quality issue, except that the command you're using is obviously running it through a conversion also.
If you're keeping the same container format for the output, or another container format that's compatible with the video codec of the input, then you can simply copy the video stream as-is. In ffmpeg "-vcodec copy" should do it.
PS: I've never seen a "-vol" option in ffmpeg. What command did you use exactly?
Last edited by David the H.; 12-25-2009 at 05:11 PM.
It says that vol=256 is the default setting. But I wonder what that means exactly. It would be nice if you could set it to a percentage of the input.
One caution. I discovered when testing it that without setting anything else my input audio changed from 192k mp3 to 64k mp2. You may need to watch it carefully to ensure that you're keeping the audio quality settings you want.
One caution. I discovered when testing it that without setting anything else my input audio changed from 192k mp3 to 64k mp2. You may need to watch it carefully to ensure that you're keeping the audio quality settings you want.
You're right. According to the command 'ffmpeg -i input.flv', the sound changed from
Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 32 kb/s
to
Stream #0.1: Audio: adpcm_swf, 22050 Hz, mono, s16
I dont know much about audio, so I'm not sure what this means. Anyway, the quality is good enough for me. No annoying background noise, and I can clearly hear what's going on.
Well, in this case I don't think you need to worry too much, since pcm codecs are generally lossless (actually, I believe pcm itself isn't so much a codec as a specification for how to represent analog sound digitally).
You could have trouble if you need the file to be portable though, since it's possible that there are players not able to handle that codec.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.