Currently I'm trying to provide an HTTP stream for travelling and a RTP stream for my local lan. I do this (in /bin/sh):
Code: Select all
export DISPLAY=""
vlc $playlist \
--sout-all --ttl=30 --sout-keep \
--sout-mux-caching=50000 \
--http-host=1.2.3.4 --http-port=8001 \
--sout '#gather:duplicate{dst="transcode{acodec=vorb,channels=2}:std{access=http,mux=ogg}",dst="transcode{acodec=mp4a,channels=2}:rtp{mux=ts,sdp=sap,dst=224.25.1.15,name=MyMusic}"}' \
-v
1) In between songs, there is a noticeable 1-2 second delay of music. I've noticed this in the logs on almost every song change:
Code: Select all
[aac @ 0x818428900] Queue input is backward in time
Code: Select all
[000000080e806350] mux_ts mux warning: packet with too strange dts (dts=8373548817,old=8373906477,pcr=8373906477)
3) The HTTP stream plays anywhere I ask it to (even on android, thank you!). However, the RTP stream plays on FreeBSD 10 and MacOS 10.11, but not windows 7. I can see the SAP announcement fine but when I click on it (OR when I actually manually type the rtp://... line) it claims to be looking for an ogg demuxer? Here's the log:
Code: Select all
qt4 debug: IM: Setting an input
rtp debug: detected MPEG2 TS
rtp debug: added payload type 33 (f = 90000 Hz)
rtp debug: added RTP source (ebe5c72b)
core debug: creating demux: access='' demux='ogg' location='' file='(null)'
core debug: looking for demux module matching "ogg": 66 candidates
ogg debug: File length is 0 bytes
4) This:
Code: Select all
000000080e806250] core mux warning: no more input streams for this mux
[000000080e806350] core mux warning: no more input streams for this mux
[0000000818427050] avcodec generic warning: Physical channel configuration not set : guessing
[000000080e806250] core mux warning: late buffer for mux input (290722)
[000000080e806250] mux_ogg mux warning: Can't add new stream 0/1: Considerer increasing sout-mux-caching variable
[000000080e806250] mux_ogg mux warning: Resetting and setting new identity to current streams