Page 1 of 1

HTTP live Stream with VLC (for newbie in HLS)

Posted: 19 May 2018 14:46
by ingeniado
Hello,
Currently I am streaming to HTTP through FLV and it goes very fine (the source is an UDP stream). But using FLV is a problem for compatibility and Flash derived problems.
I'm trying to streaming to HTTP through HLS (i've heard that is the best option for compatibility) but I'm not able to get it running, I think I can't understand the basic concepts of this.
I'm using a output string like this (found in VLC documentation):

Code: Select all

sout='#transcode{width=320,height=240,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,ref=1},acodec=mp3,ab=96}:std{access=livehttp{seglen=10,delsegs=false,numsegs=0,index=/var/www/streaming/mystream.m3u8,index-url=http://mydomain.com/streaming/mystream-########.ts},mux=ts{use-key-frames},dst=/var/www/streaming/mystream-########.ts}'
- /var/www/streaming/mystream.m3u8 -> is the path to the file that VLC creates? or is it an existing file?
- http://mydomain.com/streaming/mystream-########.ts -> is the machine where VLC is running?. Need a web server in the same machine running VLC?
- /var/www/streaming/mystream-########.ts -> is the desired path to the files creates by VLC? what is "########", is a pattern to be replaced with anything?

I'm totally lost :( , any suggestion would be apreciated.
Thanks!

Miguel