Hello - I know questions like these are asked a lot, but I have a slightly tricky issue.
I have about 30 video+audio files that have been captured incorrectly. They are mp4 H.264 with stereo AAC audio.
The video is fine and I don't want to re-encode that. The stereo audio is about -20db on the right leg.
What would be syntax of a windows FFmpeg command be to copy the video and left stereo audio leg and add 20db gain to the right leg only to a new file?
Any guidance much appreciated.
Thanks all - Duncan.
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 3 of 3
			
		- 
	
- 
	Try: 
 for %%a in (*.mp4) do ffmpeg -i %%a -c:v copy -af dynaudnorm=n=0 "output\%%~na.mp4"
 
 That should normalize the channels independently (to same level). If you want to do a "stupid" gain you probably have to split the channels and then do the "normal" gain or normalization filter.
 
 Are they "real" stereo files? If they are not I would just convert to mono, or stereo but just by duplicating the left channel.
 
 https://superuser.com/questions/323119/how-can-i-normalize-audio-using-ffmpeg
 https://trac.ffmpeg.org/wiki/AudioVolume
 https://trac.ffmpeg.org/wiki/AudioChannelManipulation
 https://ffmpeg.org/ffmpeg-filters.html#dynaudnorm
- 
	**really helpful** thanks you. For my purposes this approach worked just great. 
 For anyone in a similar situation, I had to make one tiny adjustment to increase the gain range to 20db
 
 ffmpeg -i %%a -c:v copy -af dynaudnorm=n=0:m=20.0 "output\%%~na.mp4"
 
 Your expertise is much appreciated.
Similar Threads
- 
  Newbie needs help with recompile ffmpegBy ramsh in forum Newbie / General discussionsReplies: 0Last Post: 5th Jul 2017, 06:03
- 
  FFMPEG - X265 - Help for correct commands and syntaxBy AllThatEvil in forum Video ConversionReplies: 16Last Post: 22nd Mar 2017, 18:04
- 
  ffmpeg command line syntaxBy sambat in forum Newbie / General discussionsReplies: 2Last Post: 14th Dec 2016, 21:01
- 
  Q: ffmpeg syntax for VC1 to H.264?By DanielCoffey in forum Video ConversionReplies: 2Last Post: 27th Apr 2016, 16:56
- 
  A little confused on ffmpeg syntax with regards to the "-q" parameter.By Iced Coffee in forum Video ConversionReplies: 4Last Post: 21st Jan 2013, 02:04


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			

 Quote
 Quote