Re: can't read output from xine-remote
Mohrgan Pratten <[email protected]> Sat, 28 Nov 2009 11:01:47 -0500
| Newsgroups | gmane.comp.video.xine.user |
|---|---|
| Message-ID | <[email protected]> |
Not getting any reply to this, but I have found a work around that I thought I would share with the next person trying to get xine-remote to work in their scripts. First off, it seem that the volume control in xine does not have much dynamic range, but it is capable of muting the audio form xine completely. So first thing is to set the volume to 100% with: xine-remote -c "set audio volume 100" you only need to do this once. Then use amixer to adjust the volume amixer set Master playback <volume percent desired>% You can use amixer get Master playback to get the settings for the master volume. You will need to pull the piece of information you want from the output of that command. This works for me. I am using the pulse audio sound server. Hope this can help someone else. Mohrgan. On 04/11/09 11:31 AM, Mohrgan Pratten wrote: > I have looked all over for the answer to this question. I only see > that others have ask but that no answer seems to be given. > > I want to use xine-remote in a control script. I can give commands like > xine-remote -c 'set audio volume 50' > from a script with out problem. But when I try and read or get > information, I get nothing. eg: > xine-remote -c 'get audio volume' > I do get an answer when I use xine-remote in its shell like form. > > How can I get answers from xine-remote -c 'get <-some command->'? > > xine-remote --version > This is xine-remote - xine's remote control v0.1.2. > (c) 2000-2003 The xine Team. > > xine --verson > This is xine (X11 gui) - a free video player v0.99.5. > (c) 2000-2007 The xine Team. > > cat /proc/version > Linux version 2.6.30.9-90.fc11.x86_64 > ([email protected]) (gcc version 4.4.1 20090725 > (Red Hat 4.4.1-2) (GCC) ) #1 SMP Sat Oct 17 11:25:35 EDT 2009 > > Thank you > Mohrgan. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july