Stream Playlist to iOS VLC: Difference between revisions
Jump to navigation
Jump to search
(→TODO) |
|||
Line 14: | Line 14: | ||
== Stream Playlist == | == Stream Playlist == | ||
cvlc -vv "$m3u" --sout rtp:127.0.0.1 --ttl 2 -L -Z | cvlc -vv "$m3u" --sout rtp:127.0.0.1 --ttl 2 -L -Z --no-metadata-network-access | ||
== Convert Playlist Stream to HTTP stream == | == Convert Playlist Stream to HTTP stream == |
Latest revision as of 19:44, 3 May 2023
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 --no-metadata-network-access
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
- Use systemd service to start streaming