I do this by restreaming it to HTTP and compressing a bit. It all works fine and if I make several streaming jobs for different IPTV input streams, they show up in playlist and switch fine, when clicked on. It all changes, when I save those to XSPF playlist and load it back again:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/">
<title>Playlist</title>
<trackList>
<track>
<location>udp://@224.0.9.151:6505</location>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>0</vlc:id>
<vlc:option>sout=#transcode{vcodec=h264,vb=1024,scale=0,width=480,acodec=mp4a,ab=64,channels=1,samplerate=44100}:http{mux=ts,dst=:8888/}</vlc:option>
<vlc:option>no-sout-rtp-sap</vlc:option>
<vlc:option>no-sout-standard-sap</vlc:option>
<vlc:option>sout-all</vlc:option>
<vlc:option>ttl=111</vlc:option>
<vlc:option>sout-keep</vlc:option>
</extension>
</track>
</trackList>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:item tid="0" />
</extension>
</playlist>
I think it's some problem in saving all parameters to playlist file, as for it's playing and switching fine until you save and load it again.