Capture rtmp stream

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
willemvdm
Forum Newbie
Posts: 1
Joined: Fri Sep 24, 2010 11:53 pm

Capture rtmp stream

Post by willemvdm »

Hi there,

My knowledge of PHP is very limited, so I was wondering if someone here could help me or point me in the right direction.

I would like to set up a script on my website that would allow me to download a rtmp stream. i.e. I want to be able to pass a link like this:

[text]http://public.streamhoster.com/resource ... ue&pmiuri=[/text]

to the script and then it must save the stream (presumably .mp4 file) to my web server so that I can download it via normal http when done.

Reason why I want this: I'm from bandwidth starved South Africa where 384kb/s is considered broadband and 384kb/s is also the maximum my line/exchange support at the moment so there is no chance to upgrade either. On my 384 line, watching the above mentioned stream is impossible. Video is jerky, 1 second on, 1 to 2 seconds buffering. Normally with youtube I solve this problem by pausing the video and allowing it to buffer the entire video or using something like orbit downloader to capture the video. But with streamhoster, when I pause the video it also stop buffering so that does not work and with orbit the resulting video is still jerky and sound out of sink.

If PHP can't do what I'm looking for, if you could point me in any other direction on how I can solve this problem I'd really appreciate it. But PHP is such a powerful language, I'm sure this can be done, but how?
Post Reply