Restream RTSP to HLS using ffmpeg and ffserver
Hello all, I am now trying to re-stream RTSP live stream to HLS, so that I can play it on my webpage. The path will be: VLC(read local .mp4 file and stream it using RTSP) —> ffmpge(re-stream it to HLS and send it to ffserver) —> ffserver (boardcast the stream to Internet) —> my webpage (play the stream) I can use the following command to re-stream RTSP to HLS and save to a local file. How can I change the command and configure ffserver so that I can play it on my webpage(using URL)? “ffmpeg -i rtsp://my-ip-address:8554/stream.ts -fflags flush_packets -max_delay 1 -an -flags -global_header -hls_time 1 -hls_list_size 3 -hls_wrap 3 -vcodec copy -y /var/video.m3u8” Thanks, Chen Xu
2017-06-07 23:31 GMT+07:00 Xu Chen <xuchen890530@gmail.com>:
Hello all,
I am now trying to re-stream RTSP live stream to HLS, so that I can play it on my webpage.
The path will be: VLC(read local .mp4 file and stream it using RTSP) —> ffmpge(re-stream it to HLS and send it to ffserver) —> ffserver (boardcast the stream to Internet) —> my webpage (play the stream)
I can use the following command to re-stream RTSP to HLS and save to a local file. How can I change the command and configure ffserver so that I can play it on my webpage(using URL)?
“ffmpeg -i rtsp://my-ip-address:8554/stream.ts -fflags flush_packets -max_delay 1 -an -flags -global_header -hls_time 1 -hls_list_size 3 -hls_wrap 3 -vcodec copy -y /var/video.m3u8”
maybe the Nginx is better :)
Thanks,
Chen Xu _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
participants (2)
-
Steven Liu -
Xu Chen