After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768095 - multifilesrc loop only works for ts files
multifilesrc loop only works for ts files
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.8.2
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-06-27 13:33 UTC by Coenraad Loubser
Modified: 2016-06-27 14:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Coenraad Loubser 2016-06-27 13:33:14 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.
Comment 1 Coenraad Loubser 2016-06-27 13:51:32 UTC
Looping works with .dv file too
Comment 2 Nicolas Dufresne (ndufresne) 2016-06-27 14:02:47 UTC
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.
Comment 3 Tim-Philipp Müller 2016-06-27 14:14:01 UTC
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.