GNOME Bugzilla – Bug 768095
multifilesrc loop only works for ts files
Last modified: 2016-06-27 14:14:01 UTC
gst-launch-1.0 multifilesrc loop=1 location=Videos/loop_720p.mkv \! decodebin \! videoconvert \! xvimagesink The stream hangs indefinitely on the last frame and never loops. I have tested this with numerous formats and codecs with the same result every time. The only instance where it works properly, is when the file is a .ts file. gst-launch-1.0 filesrc location=Videos/loop_720p.mkv location=Videos/loop_720p.mkv \! decodebin \! videoconvert \! xvimagesink exits properly after one iteration and logs the EOS in the console. I would like to help fix this, but am new to GStreamer, so no idea really where to start.
Looping works with .dv file too
It should work with stream-able content, for matroska you need to mux with the appropriate parameters. If you want to loop over media's in an agnostic way, this is the wrong method. Though, this is not a forum, so please send a email to the mailing list, or come to IRC and we'll discuss.
You might also want to have a look at the gst-editing-services library (ges) in case that serves your use case better. There's also splitmuxsrc for multiple files with identical formats, but it doesn't have a loop option. Seemless looping might be better implemented using non-flushing seeks with GST_SEEK_FLAG_SEGMENT at the end of each stream.