[FFmpeg-user] Live RTMP stream to HLS
Todd Poole
tpoole at mail.com
Sun Nov 17 12:55:50 CET 2013
Thank you for the valuable information. I had a feeling it was going to
be something like this but I didn't know where to start. Thanks again
for the help.
Todd Poole
On 11/16/2013 6:27 AM, Paulo Miguel Almeida Rodenas wrote:
> Hi mate,
>
> I've faced a similar situation in a project of mine and here is what worked for me:
>
> 1 - Recompile your ffmpeg adding --enable-libx264 --enable-gpl parameters
>
> 2 - Execute ffmpeg -v verbose -i rtmp://<host>:<port>/<stream> -c:v libx264 -c:a aac -ac 1 -strict -2 -crf 18 -profile:v baseline -maxrate 400k -bufsize 1835k -pix_fmt yuv420p -flags -global_header -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 <pathToFolderYouWantTo>/<streamName>.m3u8
>
> 3 - Install a http server such as apache/jetty/nginx or any other.
>
> 4 - Make that folder you just mentioned on ffmpeg command (<pathToFolderYouWantTo>) to be accessible by an http url
>
> 5 - Create a simple html page like this:
>
> <html>
> <body>
> <video controls width="480" height="270" src="<streamName>.m3u8"/
> </body>
> </html>
>
> 6 - Access it from any Apple device.
>
> Although it worked for me, it had a huge delay due to conversion process and so on. In my case it was around about 1:40 secs.
>
> Hope this works for you
>
>
> Paulo Miguel Almeida
>
> ________________________________________
> From: ffmpeg-user-bounces at ffmpeg.org [ffmpeg-user-bounces at ffmpeg.org] on behalf of btpoole [tpoole at mail.com]
> Sent: Thursday, November 14, 2013 8:26 PM
> To: ffmpeg-user at ffmpeg.org
> Subject: [FFmpeg-user] Live RTMP stream to HLS
>
> I have seen several topics but no final solution. I am able to download a
> live stream using rtmpdump. I can save the file but don't wish to do so. I
> want to "push" the stream into ffmpeg to convert it to HLS if possible. I
> can't save the the file in mp4 format because it can not be viewed until the
> download is complete. This will be a live stream so there might not be an
> end. I have seen some stuff on listen but have not been able to get the
> syntax right. It took a while to get rtmpdump formatted correctly. Is ffmpeg
> able to take the live stream and transcode, encode, convert to HLS? If so
> can I get some advice or a point in the right direction.
> Thanks for the help.
>
>
>
> --
> View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Live-RTMP-stream-to-HLS-tp4662357.html
> Sent from the FFmpeg-users mailing list archive at Nabble.com.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list