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.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-06-11
Hello:
Is it possible streaming from shairport4w to foobar2000 ?
I've tried several command options, but seems not working.
thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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}"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.)
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 ?
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.
Hello:
Is it possible streaming from shairport4w to foobar2000 ?
I've tried several command options, but seems not working.
thanks.
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 !
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.
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 -
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 -
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}"
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
Last edit: mitri Halabi 2013-09-16
I finally got shairport4w to pipe input to VLC so that VLC will transcode it and stream it via HTTP to iTunes. I posted how I did it here:
https://sourceforge.net/p/shairport4w/discussion/1768844/thread/6c661ae2/#c581/8076/ee4b