Menu

About sound redirection

2011-06-08
2016-04-04
  • Frank Friemel

    Frank Friemel - 2011-06-08

    In dialog "extended options" there's a new combo box called "redirecting sound". Shairport4w interprets this value as a command line for a new process in the first step. If the command won't run Shairport4w treats the combo box value as a filename to where the sound will be redirected in .au format.

    If the command line is valid it will be executed by Shairport4w and the new process will receive the sound in raw PCM format per stdin. The combo box contains a sample string for lame.exe. May be you will have to complete the command line with qualified paths.

    If you modify this value while streaming, you will possibly have to restart your streaming client App (iTunes, iPod, etc.)

     
  • Anonymous

    Anonymous - 2011-06-10

    Hello,

    Thank you for this, it seems great !

    Could you provide an example with vlc ?
    I Googled to find how to play stdin with vlc. From what I have understood, it seems possible, but I didn't found how !

    I would like vlc to restream the sound from shairport4w. Any Advice ?

     
  • Frank Friemel

    Frank Friemel - 2011-06-10

    Take your usual vlc command line and replace the input file with a "-". This will advice vlc to take its input from stdin instead of a file.

     
  • Anonymous

    Anonymous - 2011-06-11

    Hello:
    Is it possible streaming from shairport4w to foobar2000 ?
    I've tried several command options, but seems not working.
    thanks.

     
  • Anonymous

    Anonymous - 2011-06-15

    thank you for the vlc command line tip. anyway I can't get it working.
    It seems vlc is unable to detect how to decode the stream from stdin.
    I am pretty sure I can tell it in the command line, but haven't found how yet.

    Could you help me ?

    Thank you again !

     
  • Frank Friemel

    Frank Friemel - 2011-06-17

    Sorry, I can't figure it out either. You should ask the vlc guys how to pipe input. I'll promise to provide more redirection samples in the future, because I want to get my Sonos working this way. Unfortunately my time is limited so I can work on this in a loose way.

     
  • joe miller

    joe miller - 2011-07-12

    I have been able to pipe into vlc with the following command line:

    C:\Program Files (x86)\VideoLAN\VLC\vlc.exe -vvv -demux=rawaud -rawaud-channels 2 -

     
  • joe miller

    joe miller - 2011-07-12

    you can remove the '-vvv', so just the following informs vlc to expect raw pcm audio.  Adjust your path to vlc.exe if necessary, of course

    C:\Program Files (x86)\VideoLAN\VLC\vlc.exe -demux=rawaud -rawaud-channels 2 -

     
  • Anonymous

    Anonymous - 2011-08-01

    thanks millerjoe.

    with your command line, the music was playing too fast so I add 44100Hz to the rawud params. now, it works perfectly !
    C:\Program Files (x86)\VideoLAN\VLC\vlc.exe -demux=rawaud -rawaud-channels=2 -rawaud-samplerate=44100 - -sout "#std{access=http,mux=asf}"

     
  • Anonymous

    Anonymous - 2011-09-09

    Hello frankfriemel,

    Here is a small feature request if you have some time ….

    I would like to be able to script some actions when shairport4w starts and stops decoding a stream.

    Ideally, there would be two new fields in the settings dialog where we could write a command line that would be executed when the stream starts and when it ends.

    What I try to achieve is to play the audio stream produced by shairport4w within XBMC.
    From now, I manged to get the sound redirected to VLC which restream it.
    I can read this new stream from XBMC, But I have to manually start the player.
    If your program was able to launch something when the stream starts/stops, I would be able to catch this with eventghost which would be able to tell XBMC to start/stop playing the VLC stream.

    Thank you,

    Miljbee

     
  • mitri Halabi

    mitri Halabi - 2013-09-16
     

    Last edit: mitri Halabi 2013-09-16

Log in to post a comment.

MongoDB Logo MongoDB