Hello,
I tried to stream a rtsp stream to multiple devices.
This is the command line I use:
vlc -I dummy 'rtsp://camera' --sout '#transcode{vcodec=h264,fps=15,vb=512,scale=1,acodec=none,venc=x264{aud,profile=baseline,level=60,keyint=15,bframes=0,ref=1,nocabac}}:duplicate{dst=std{access=livehttp{seglen=10,delsegs=true,numsegs=10,index=/var/www/html/live/mystream.m3u8,index-url=http://myip/live/mystream-########.ts}, ... /video.mp4}}'
It brings working flv and mp4 so Android and desktop browsers are fine.
The HLS stream plays on an old Android 4.1, too.
But it doesnt play on iphone or ipad.
The web log says the devices receive the m3u8 and the corresponding ts files correctly but it does not play.
Now I found a way to use ffmpeg to only output a HLS stream and it works only on iphone and ipad, not on my old Android.
ffmpeg -i http://myhost:8080/video.mp4 -map 0 -codec:v libx264 -profile:v baseline -codec:a libfaac -f ssegment -segment_list playlist.m3u8 -segment_list_flags +live -segment_time 10 out%03d.ts
I dont know how I could make vlc do the same but I would like to since it would be not so CPU intense.