Mplayer
volume control details-general Linux technology-Linux technology and application information. The following is a detailed description. In fact, the original intention of registering this forum is to ask this question. Later I learned it myself... analyze it and write it... it's so long...
Mplayer volume control details
A little complicated...
This is because the volume of the video player that has been tuned to 0 or 9 is invalid when it is changed to a song... so .. when starting MPLAYER, We must select and set it so that the volume is assigned to all parameters (songs or movies ). why don't I directly adjust the WINDOWS
volume. because... I couldn't hear the voice of QQ. I gave it to the music... (Why ?)
Okay. How to do it... the method seems to be a lot... actually, the principle is different. First we will introduce the first one.
Adjust the default volume:
Mplayer-af volume =-10 *. mp3
The volume range can be-200 to + 60.-200 to mute, and + 60 to noise...volume of a rectangular prism volume of a sphere
I tried-10 to make him whisper a little bit, don't affect me on QQ ....
volume
of a cylinder
Symptom Analysis:volume of a cone
Once started in this way, the volume immediately takes effect, and each song takes effect. that is to say, once started. when each song is played, the volume is reset to the start volume. whether you use 0 or 9 to change the volume. the default volume is not affected. when playing the next file. the next file will be restored to this default volume. when it is enabled. this default volume replaces the original sound card volume. that is, the volume is at 100%. if you set volume to-200, that is, mute... it doesn't matter how many times you press 0, because-200 is the volume of 100%, and you can't go up again. if you set volume to 60, the sound will be very loud at this time (of course, for some films, the sound will be very small, and this is just right ). the sound volume corresponds to 100%. You can press 9 to decrease the volume. press 0, of course, will not go up. to sum up, use this method to open the file. the default volume is 100%. the VOLUME of 100% is determined by the VOLUME value. 100% is the value of VOLUME. that is to say, you have no way to increase the sound during playback.
Method 2: Use a soft sound card)
Mplayer-softvol-max 10 *. mp3
Enable the soft sound card with-softvol. then, use-softvol-max to limit the maximum volume of the soft sound card. here, we set the maximum volume to 10% of the default volume. it will become very quiet.
Symptom Analysis:
After it is started, it does not work at all. no response. because the default sound is not changed (the first method can be changed ). therefore, the default volume is used at the startup. in this way, the volume does not change, only when you press 0 or 9. will take effect. the maximum volume is changed to the original 10%, that is, the current 100% volume is only the original 10% volume. if your maximum volume is larger than the original volume, the current volume is different. for example, if you change the value after softvol-max to 200, the maximum soft volume is 200%. twice. Similarly, it does not take effect after startup. you press 0 or 9 this time to apply. however, the volume is not starting from 100%. but from 50%. the default volume is used at startup, and the default volume is 50% of the maximum soft volume. Therefore, the volume is 50% at startup. in fact, the same is true for setting 10%. that is, the default volume is used at startup. The default volume is 10 times the maximum soft volume, but the percentage is not greater than 100%, so 1000% is not displayed. it starts from 1000%. different from the first method, the default volume is not 100%. the maximum soft volume corresponds to 100%. when you change the next song, the number you have adjusted with 0 and 9 will return to the default volume. continuous music... each song takes effect by pressing 0 or 9, exhausting you...
Method 3:volume formula
We can combine the first two methods so that the default volume value is not 100%. It takes effect immediately after it is started.
Mplayer-af volume =-10-softvol-max 200 *. mp3
In this way, the default volume will be-10 (about 30%) after startup. When started, the default volume is used, which is 30% of the original volume. that is, it takes effect. then you press 0 or 9 to find out. this time, the default volume value is not 100%. but 16%, because I set the maximum soft volume to twice the original volume, so that the maximum soft volume corresponds to 100%, and the original volume is 50%, the default volume (about 30% of the original sound volume) is 50% * 30%, which is 15%. haha. this is probably 16%. full precision, haha. in this way, we can increase the default volume during playback. instead of like the first method. the volume is already 100%, and there is no room to climb up.
Conclusion: The advantage of the first method is that it takes effect from the very beginning. each song is valid. the downside is that the voice cannot be higher. it is impossible to temporarily raise the voice of a song. the second method has the advantage of increasing the voice. The harm is that it does not take effect at the beginning. press 0, or 9, and when you change the song, and press 0 or 9 again, each capital needs to press... the third method... PERFECT combines the advantages of the previous two.