Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Restarting rtmpdump when the live stream dies

(http://stream-recorder.com/forum/showthread.php?t=12758)

mocha 06-10-2012 12:35 AM

Restarting rtmpdump when the live stream dies


 
I need help making a bash script to monitor the status of rtmpdump as it dumps a live stream to an output file, and if the stream dies for whatever reason, I want rtmpdump to restart but dump the stream to another filename. In other words, I'd like to have a bash script for unattended rtmpdump recording of live streams. Thanks for any assistance.

greenythebeast 06-10-2012 10:51 AM

Re: Restarting rtmpdump when the live stream dies


 
I've asked around for something like this for a while. Nothing has come up yet. The only way I know of doing it right now would be to have a script that continuously runs rtmpdump for a certain channel until it successfully downloads something. Not ideal, but other than using something like TubeDigger that's all I can think of.

mocha 06-12-2012 12:54 AM

Re: Restarting rtmpdump when the live stream dies


 
I guess this is just a general bash scripting question, I'll try on linuxquestions. Generally speaking, I'm surprised others are not doing scheduled dumps of RTMP live streams? All the ones I've ever dealt with usually die before the stream is actually finished.


All times are GMT -6. The time now is 11:54 AM.