GNOME Bugzilla – Bug 790976
splitmuxsink hangs sometime
Last modified: 2018-11-03 15:24:10 UTC
I try to use next pipeline gst-launch-1.0 rtspsrc location=rtsp://admin:admin@192.168.1.108 ! rtph264depay ! h264parse ! tee name=tee0 ! queue ! splitmuxsink location=chain.%d.mp4 tee0. ! queue ! decodebin ! autovideosink And in most cases it hangs (but sometime works). After debugging I found that it hangs on the "GST_SPLITMUX_WAIT (splitmux);" in the function "complete_or_wait_on_out" of the "splitmuxsink"
Could you provide a stack trace of all threads please? ('thread apply all bt' in gdb) Does it work (eventually) if you unset the limits on the queues with 'queue max-size-buffers=0 max-size-time=0 max-size-bytes=0' ? My suspicion is that it's a live stream and you might not get a key frame right at the beginning, and the key frame interval is larger than the buffering provided by the queues and then it deadlocks in one of the branches waiting for a keyframe. What happens if you don't use the tee? Do both branches always work individually?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/419.