Restream RTSP to HLS using ffmpeg and ffserver

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Restream RTSP to HLS using ffmpeg and ffserver

Xu Chen
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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Restream RTSP to HLS using ffmpeg and ffserver

Steven Liu-2
2017-06-07 23:31 GMT+07:00 Xu Chen <[hidden email]>:

> 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
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".