Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert rtsp-stream into http stream

Often discussed but so far never working on windows with the current versions of vlc or ffmpeg.

These are my stream's properties:

enter image description here

How to do it with vlc or ffmpeg?

I tried a lot. Way too much to list.

like image 506
Aurelius Schnitzler Avatar asked Dec 24 '22 21:12

Aurelius Schnitzler


1 Answers

I use this to convert a remote RTSP source to a local HLS streaming with ffmpeg and it works ok:

ffmpeg -i "rtsp://yourRtspStreamSource" -hls_time 3 -hls_wrap 10 "yourOutputDir/streaming.m3u8"

Also I use -t and -stimeout options to control the timeout of that proccess.

More info about HLS ffmpeg in docs: https://ffmpeg.org/ffmpeg-formats.html#hls-1

like image 156
Hokusai Avatar answered Dec 28 '22 07:12

Hokusai