It's my understanding that hls uses the http protocol, probably best
to drop the multicast udp, and install a webserver.

ffmpeg -i vid.mp4 output.m3u8

will segment the mp4 and even write you a m3u8 file.

I usually set the list size to 0, so that I can have all my segments in the one m3u8,I am a lazy, lazy man.
I also enable caching with  -hls_allow_cache 1

ffmpeg  -i vid.mp4 -hls_list_size 0 -hls_allow_cache 1  output.m3u8

What I love best about ffmpeg and hls,
is how easy it is to add subtitles.
Here, I copy the codecs to avoid long transcoding times.


ffmpeg  -i vid.264  -i vid.aac  -i web.vtt \
-hls_list_size 0 -hls_allow_cache 1 -c copy output.m3u8


Pick one of the above, and place the ts files and m3u8 in your webservers directory so that it can be served via http.
If you add subtitles, include the .vtt and vtt.m3u8 files as well.



On 10/17/15 11:38, Boris Krajnc wrote:
Hello,



I am network specialist but I am very curious and I would like to know how
to deal with video.

I read a lot about of ffmpeg and how strong it is. I hear that there is no
big deal to set up system to stream HLS, unfortunately I just hear..nobody
show me how to do ...



OK, I spent a lot of hours to start streaming HLS with ffmpeg but no
success. I search in tutorials and I try step by
step..http://ffmpeg.gusari.org/viewtopic.php?f=12&t=20 still no success



What I have and what I would like to do.I have server with Ubuntu where I
install ffmpeg,  with 2 NIC (eth0 with public IP and eth1 with multicast
stream). I have multicast stream on udp://239.0.0.10:1234 whith mpeg2 video.
As I understand I have to convert mpeg2 first  than play stream with
ffserver. I would like to stream in two diferent bit rate



Is there anybody prepare to share step by step how to do that?



Boris

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

<<attachment: a.vcf>>

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to