Gstreamer, how recover from (rtmpsink)error

KPAXIT romants at gmail.com
Tue Dec 30 09:16:08 PST 2014


Hi list,

I´m building streaming application in python. 
Applications writes data to rtmpsink and to filesink using tee element.
Starting and streaming works fine in ideal environment(network) but what to
do if there is disconnect with streaming server for example? I'm trying to
figure out how I at least can make pipeline write data to filesink and block
streaming part(rtmpsink)... 


*What I'm trying to archive:*
step 1) At least I would like to keep my archive file(filesink) after error
in streaming part(rtmpsink) occur. Hereby we have some backup if error
happens. 
step 2) Manually reconnect to streaming server. 
step 3) Build some mechanism to check for connection

*Question(s):*
Is it possible to archive what I'm trying to do?
How can it be archived (dynamic pipeline / probes / extra elements )? 
 
Any explanation, example or point to right direction will be very much
appreciated.

*note:*
Gst version: gstreamer 1.3.90 (rtmpsink, faac, x264enc)
OS: ubuntu 14.04 LTS
Streaming server: wowza 4.x

*Test application (code):*  link
<https://dl.dropboxusercontent.com/u/75885675/gst-test-error.py>  

*Pipeline after startup(OK):*  link
<https://dl.dropboxusercontent.com/u/75885675/gst_startup.png>  


*Pipeline after rtmpsink error(Failed to write data):*  link
<https://dl.dropboxusercontent.com/u/75885675/gst_error_rtmp.png>  

*Log snippet after rtmpsink error(Failed to write data):*  link
<https://dl.dropboxusercontent.com/u/75885675/gst_log.txt>  








--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-how-recover-from-rtmpsink-error-tp4670055.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list