Activity › Forums › Compression Techniques › Convert live rtmp stream to hls
-
Convert live rtmp stream to hls
Luis Arredondo replied 11 years, 9 months ago 5 Members · 13 Replies
-
Luis Arredondo
August 18, 2014 at 2:35 pmHello Todd, were you able to stream in Roku, I’m trying to do that now
-
Todd Poole
August 18, 2014 at 3:28 pmLuis, I was able to get live rtmp streaming to work. Not sure what you are dumping, I was pulling down live shows from websites on net. After much research and many rewrites, I got scripts to run rtmpdump and then feed that into ffmpeg. I first was using PlayOn Media Server with my Roku but I thought I might try to develop my own for my personal use. I felt PlayOn was slow or bogged down with other parts that I didn’t need. I download a free server (Abyss) and installed it. I then (after research and reading) discovered PHP and how to make the Roku channel interact with the server. Not being a professional code writer but with some experience, I think Brightscript leaves much to be desired. When a particular channel is picked, it fires the PHP script on the server which runs the rtmpdump (I have variables set up in the script depending on channel). The rtmp feeds the ffmpeg which converts to hls (m3u8). I setup a delay up so it would give time for dump and conversion to start before the Roku tried to stream and give me an error message. My big obstacle now for the Roku is stopping and deleting the unused files after you exit the channel. I have a script that stops rtmpdump and deletes the files if the user press the back on the remote but the makers of Roku have the Home button that can not be programmed. The action of the Home button goes straight to home screen. I can’t figure out how to manipulate that action. So if one of my kids hits the Home button instead of back button, the server keeps pulling the stream until I go to the server and manually run the cleanup script. I would be happy to share with you what I have done but would rather not post it on a message board.
-
Luis Arredondo
August 20, 2014 at 9:34 pmThanks Todd, how can I send you a private message. I’m sorry I’m new to this forum.
Reply to this Discussion! Login or Sign Up