Stream Playlist to iOS VLC
Jump to navigation
Jump to search
Serve Page
Create directory within document root of apache server
sudo mkdir /srv/www/htdocs/vlctest sudo chown $USER /srv/www/htdocs/vlctest
Create Playlist
m3u=/dev/shm/playlist.m3u echo "#EXTM3U" >"$m3u" find /net/qnap/Multimedia/Musik/Favoriten/Jack\ White/ -type f -name '*.mp3' >"$m3u"
Stream Playlist
cvlc -vv "$m3u" --sout rtp:127.0.0.1 --ttl 2 -L -Z
Convert Playlist Stream to HTTP stream
cvlc -vv rtp:// --sout='#transcode{acodec=mp3,ab=192}:duplicate{dst=std{access=livehttp{seglen=10,splitanywhere=false,delsegs=true,numsegs=15,index=/srv/www/htdocs/vlctest/mystream.m3u8,index-url=http://job4/vlctest/mystream-########.ts},mux=ts,dst=/srv/www/htdocs/vlctest/mystream-########.ts},select=audio}'
Play Stream on iOS
- start VLC app
- Choose Network
- Select Open Network Stream
- Enter URL as served above (e.g. http://job4/vlctest/mystream.m3u8)
- Select Open
TODO
- Doesn't play multiple files from playlist yet. Need to experiment further...
- Serve from memory fs
- configure apache to serve from /dev/shm/vlc
- transcode to this directory