But I can't believe this is the best option. For now, the only option I can think of is to start such a dummy file, adjust the volume, stop the dummy file, load the correct file to be played, and it will start with the volume just set. a silent dummy file) mplayer complains with the same error. But a very valuable adjunct to this ability is MPlayers capacity to then output audio files in wav format: mplayer input.wma -vc null -vo null -ao pcm:fast:waveheader:fileoutput.wav. I already checked whether I can set the volume after playing some file (e.g. 1 (This is on a Raspberry Pi B running -wheezy-raspbian, update and upgrade have been run, mplayer is installed and tested, coding using Python 3) I only dabble in Linux and Pi so I have come to the experts for guidance. MPlayer is a mp4 video player, mov player and free avi player. One of the biggest drawcards of MPlayer is that it will play almost any media file available. Obviously, the audio filter isn't yet loaded / audio output not yet set up or something like that, so mplayer can't change the volume of a non-existing audio output.Ĭan I force mplayer to initialize everything in advance so that I can set the volume to 0%, load the file and then increase the volume to fade in the playback? If I swap the two commands, mplayer tells me that I can't adjust the volume: Failed to set property 'volume' to '0'. It starts (for a short time) to play the file at 100% volume and then jumps to 0% volume. I start mplayer with the following command (can be tested on command-line): mplayer -slave -idle -softvolĪnd send the following commands to mplayer: loadfile However, I encounter the following problem. Then you grep that dump for 'Playing ' and take the last result with tail. mPlayer - The most advanced video player for your smartphone. To do this, I set the "software volume" of mplayer so it will not affect the PCM output channel of the sound card but insert a software volume mixer to adjust the volume. Basically, you can accomplish this by dumping the mplayer output to a file. and enjoy it on your iPhone, iPad, and iPod touch. I want to run two mplayer slave instances which will be used to fade between different audio streams (webradio smoothly change the channel). I know this is about a specific program (mplayer back-end) however it will be used to program a front-end so I hope it is still considered on-topic on Stack Overflow.
0 Comments
Leave a Reply. |