rtmpsink recovery, almost there

Tim Müller tim at centricular.com
Wed Nov 9 10:09:13 UTC 2016


On Wed, 2016-11-09 at 12:23 +1300, Adam Langley wrote:

Hi Adam,

For what it's worth, it should be enough to simply set the rtmpsink
element to NULL state after a network error and then to set it back to
PLAYING again (or you can also replace it if you like). Whilst keeping
the flvmux running, at least from GStreamer 1.8 onwards (where rtmpsink
will pick up the stream headers from the caps as well). This might
provide for more continuity, since it's effectively still the same
stream. Don't know if it will fix your problem of course.

Since 1.6 there's also an ignoreerror element which you can put before
rtmpsink and which can make sure that streaming won't stop when you
shut down/replace the rtmpsink, just suppress FLUSHING and NOT_LINKED
flow errors.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com


More information about the gstreamer-devel mailing list