On Fri, Feb 24, 2012 at 11:54:08PM -0800, Marc Shapiro wrote: >Date: Fri, 24 Feb 2012 23:54:08 -0800 >From: Marc Shapiro <marcns...@gmail.com> >To: debian-user@lists.debian.org >Subject: Adjusting sound file volume > >I know that sox can adjust the volume of a sound file and I have used >it before, but... sox will not read this file. It is an .m4a file >that someone else recorded and sent to us. Sox and play will not >read it, the error when try to adjust the volume is: > >:~$ sox -v 0.1 Kedushah.m4a Kedushah.mp3 >sox FAIL formats: can't open output file `Kedushah.mp3': SoX was >compiled without MP3 encoding support > >Xine, also, will not read it. Only mplayer will play the file. > >Is there any way to adjust the volume? Can mplayer be told to adjust >the volume of a file that it is playing? I have looked through the >man file and used -list-options, but if it is there then missed it. > >Marc >
Things below from manual of mplayer may be helpful. Audio filters allow you to modify the audio stream and its properties. The syntax is: -af <filter1[=parameter1:parameter2:...],filter2,...> Setup a chain of audio filters. One available filter is: volume[=v[:sc]] Implements software volume control. Use this filter with caution since it can reduce the signal to noise ratio of the sound. In most cases it is best to set the level for the PCM sound to max, leave this filter out and control the output level to your speakers with the master volume control of the mixer. In case your sound card has a digital PCM mixer in‐ stead of an analog one, and you hear distortion, use the MASTER mixer instead. If there is an external amplifier con‐ nected to the computer (this is almost always the case), the noise level can be minimized by adjusting the master level and the volume knob on the amplifier until the hissing noise in the background is gone. This filter has a second feature: It measures the overall maximum sound level and prints out that level when MPlayer ex‐ its. This volume estimate can be used for setting the sound level in MEncoder such that the maximum dynamic range is utilized. This feature currently only works with floating-point data, use e.g. -af-adv force=5, or use -af stats. NOTE: This filter is not reentrant and can therefore only be enabled once for every audio stream. <v> Sets the desired gain in dB for all channels in the stream from -200dB to +60dB, where -200dB mutes the sound completely and +60dB equals a gain of 1000 (default: 0). <sc> Turns soft clipping on (1) or off (0). Soft-clipping can make the sound more smooth if very high volume levels are used. Enable this option if the dynamic range of the loudspeakers is very low. WARNING: This feature creates distortion and should be considered a last resort. EXAMPLE: mplayer -af volume=10.1:0 media.avi Would amplify the sound by 10.1dB and hard-clip if the sound level is too high. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120225080637.ga6...@qgz.qgz