Forum Replies Created

  • Todd Poole

    August 18, 2014 at 3:28 pm in reply to: Convert live rtmp stream to hls

    Luis, 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.

  • Todd Poole

    November 17, 2013 at 11:53 am in reply to: Convert live rtmp stream to hls

    Thanks for the info. I have been looking at that as a possibility.

  • Todd Poole

    November 16, 2013 at 8:35 pm in reply to: Convert live rtmp stream to hls

    The working rtmpdump is:

    c:rtmpfilesrtmpdump.exe -v -r rtmp://live.iguide.to/edge -y 0ofj5z5lab0b3ox -W https://player.ilive.to/secure_player_ilive_z.swf –token “I8772LDKksadhGHGagf#” –live -p “https://www.ilive.to/view/49959/watch-live-SIC_Noticias-streaming-channel-for-free” -o c:output.mp4

    As it goes, the stream downloads and saves but don’t need to save it but transcode it to HLS.

    Thanks

  • Todd Poole

    November 16, 2013 at 12:50 pm in reply to: Convert live rtmp stream to hls

    Here is the line I have currently. I know the rtmp server is correct and the file name is xoaaohmeuajfeyf. When I execute the command the error states

    ffmpeg.exe -i rtmp://ny.premiumcdnlive.com/edge/xoaaohmeuajfeyf -re -qscale 0 -acodec copy -vcodec copy -f HLS rtmp://localhost/live/stream

    rtmp server sent error
    rtmp server requested close
    rtmp://ny.premiumcdnlive.com/edge: unknown error occurred

    When I run it thru rtmpdump I have a token value for security purposes. I’m not sure how to pass the token in ffmpeg or if is even required. The rtmpdump goes thru and begins downloading the stream no problem. Any ideas?
    Thanks

  • Todd Poole

    November 15, 2013 at 9:19 pm in reply to: Convert live rtmp stream to hls

    My intention is to stream a live rtmp stream to a roku device. After much reading and trying different things I have not been completely successful. I know it’s possible and probably not as hard as I have made it. When I started on the idea I came across rtmpdump. I was able to connect and download the stream to a file (mp4). This was a good start but I discovered even though roku recognizes mp4, it can not play it until the download is complete. I then discovered HLS. I know ffmpeg has the capability to download the rtmp and push the flv file from rtmp to hls which roku can play. That is where I am lost. I have looked at ffmpeg but can’t get something right.
    Thanks for asking

  • Todd Poole

    November 15, 2013 at 3:16 pm in reply to: Convert live rtmp stream to hls

    Thank you. I will give this a try. I am successful in downloading the stream with rtmpdump but have been unable to “push” the stream into something that outputs HLS. I know it’s possible I just can’t get it.
    Thanks again

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy