Display video locally + stream audio to IceCast server
Posted: 16 Nov 2014 13:19
Dear Community,
Thanks for this wonderful player. I've been using it for several years now, and I was able to solve many complicated situations with it, involving streaming, encoding, serving and such.
This time i've run into an interesting task to be solved, and had no success with it.
See below:
- given a video file (SD resolution, MPEG2-DVD or MPEG4-AVI/DivX or something similar) which has one single stereo track for audio, encoded in MP3.
- video has to be played locally on the desktop of the machine running VLC in full screen
- audio has to be sent to an IceCast server as an audio-only live stream (VLC has to connect to IceCast server just like it would be Shoutcast-compatible source client)
- transcoding of the audio is not needed and not desired, because the format of the audio track in the AVI file is already Shoutcast-compatible, plus we need to minimize delay as much as possible - thus transcoding really needs to be avoided.
- audio doesn't have to be played out on the local machine, it's enough if it goes to Icecast only. However if it has to be played locally too, it's not a big deal, we'll mute/unplug jack from the local soundcard.
- all the above achieved by running VLC using command line parameters (will automatically be launched at desktop startup).
I know VLC is a great Shoutcast-compatible source client for IceCast, tried that with various MP3 audio files. But when I tried the same using an AVI file I got bad results, I assume it sends the whole stream including video to Icecast. I tried to play around with duplicate and ES option (elementary stream) but I was never able to make it work properly with Icecast.
Could you guys please give me some hints? Pulling my hair out for 2 days now because of this, looking trough the manuals but I really seem to miss something...
Thanks for this wonderful player. I've been using it for several years now, and I was able to solve many complicated situations with it, involving streaming, encoding, serving and such.
This time i've run into an interesting task to be solved, and had no success with it.
See below:
- given a video file (SD resolution, MPEG2-DVD or MPEG4-AVI/DivX or something similar) which has one single stereo track for audio, encoded in MP3.
- video has to be played locally on the desktop of the machine running VLC in full screen
- audio has to be sent to an IceCast server as an audio-only live stream (VLC has to connect to IceCast server just like it would be Shoutcast-compatible source client)
- transcoding of the audio is not needed and not desired, because the format of the audio track in the AVI file is already Shoutcast-compatible, plus we need to minimize delay as much as possible - thus transcoding really needs to be avoided.
- audio doesn't have to be played out on the local machine, it's enough if it goes to Icecast only. However if it has to be played locally too, it's not a big deal, we'll mute/unplug jack from the local soundcard.
- all the above achieved by running VLC using command line parameters (will automatically be launched at desktop startup).
I know VLC is a great Shoutcast-compatible source client for IceCast, tried that with various MP3 audio files. But when I tried the same using an AVI file I got bad results, I assume it sends the whole stream including video to Icecast. I tried to play around with duplicate and ES option (elementary stream) but I was never able to make it work properly with Icecast.
Could you guys please give me some hints? Pulling my hair out for 2 days now because of this, looking trough the manuals but I really seem to miss something...