LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2016, 01:23 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
Adjust volume level on video and audio files


I have a number of video and audio files that I want to increase the volume of so they are all set to 0. Would like to run these in a batch mode if possible; have 130 files.

Also have one file audio and video that the left channel is not recorded well. How would I make this into a mono and adjust the volume? I think I could use Audacity on the audio, but not sure how to do this on the video.

Thanks

Last edited by JosephS; 02-24-2016 at 01:28 PM.
 
Old 02-24-2016, 04:46 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
How to change audio volume up-down with FFmpeg


Check HandBrake for movie files
 
Old 02-26-2016, 08:17 PM   #3
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
Thanks for the reply.

I was looking for something that would allow me to run a program in batch mode: telling the program to adjust the volume to 0 of the files in a folder. I might have found a way to do this with Audacity for the audio files. With the video files I can import the audio, but have to export the audio as a file after editing; this doesn't help with audio level in the video.

ffmpeg: looks like I would have to edit the files one at a time, because I nee to find out the volume level of the file first, and are not all the same.
 
Old 02-26-2016, 08:37 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
https://opensource.com/life/15/1/cur...-video-editing
 
Old 02-27-2016, 03:50 PM   #5
RPI
LQ Newbie
 
Registered: Feb 2016
Posts: 10

Rep: Reputation: 13
@ JosephS

Visit this link
http://superuser.com/questions/32311...o-using-ffmpeg

And scroll down to Using ffmpeg to normalize audio

It will show you how to get the audio level first before applying the gain to it. E.g

Code:
ffmpeg -i video.avi -af "volumedetect" -f null /dev/null
[Parsed_volumedetect_0 @ 0x7f8ba1c121a0] mean_volume: -16.0 dB
[Parsed_volumedetect_0 @ 0x7f8ba1c121a0] max_volume: -5.0 dB
[Parsed_volumedetect_0 @ 0x7f8ba1c121a0] histogram_0db: 87861

As you can see, our maximum volume is -5.0 dB, so we can apply 5 dB gain. If you get a value of 0 dB, then you don't need to normalize the audio.

Next, apply the volume filter to increase the audio. Read the rest at

http://superuser.com/questions/32311...o-using-ffmpeg

They will provide three situations to applying the volume filter depending on the media type, i.e wav, avi and mp4.

PS: If you know shell scripting, you can use or modify the script on the site to suit your needs. I would suggest trying this out on a few test files first and see if it gives the results you want.

Last edited by RPI; 02-27-2016 at 05:40 PM.
 
1 members found this post helpful.
Old 02-28-2016, 12:11 PM   #6
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
Thanks for the links
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I can't adjust audio volume geodoo Dragora GNU/Linux-Libre 4 05-09-2014 02:56 AM
Tweeters blown up by large volume level audio files. stf92 Linux - Hardware 41 12-21-2010 11:23 AM
Intel HD audio - can't adjust volume levels vervet Linux - Hardware 2 10-23-2005 03:45 AM
Audio works, can't adjust volume yamaduc Fedora 3 10-04-2005 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration