<div dir="ltr"><div>trying to split a video stream using splitmuxsink like:</div><div><br></div><div>gst-launch-1.0 videotestsrc is-live=true ! videoconvert ! video/x-raw ! queue !  x264enc bitrate=2000000 ! h264parse  ! splitmuxsink muxer=matroskamux max-size-time=20000000000  location=/data/videos/afile%05d.mkv -v -e<br></div><br clear="all"><div>I'm finding that the first file afile00000.mkv works alright, and although the next files ( afile00001.mkv , afile00002.mkv ) play in vlc, the time indicator is always at the end of the timeline as if it was playing a live stream.</div><div><br></div><div><a href="https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsink.html?gi-language=c">https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsink.html?gi-language=c</a><br>talks about :<br><br><p style="box-sizing:border-box;margin:0px 0px 10px;font-family:"Source Sans Pro","Source Sans",sans-serif;font-size:14px;background-color:rgb(238,238,238)">The minimum file size is 1 GOP, however - so limits may be overrun if the distance between any 2 keyframes is larger than the limits.</p><p style="box-sizing:border-box;margin:0px 0px 10px;font-family:"Source Sans Pro","Source Sans",sans-serif;font-size:14px;background-color:rgb(238,238,238)">If a video stream is available, the splitting process is driven by the video stream contents, and the video stream must contain closed GOPs for the output file parts to be played individually correctly. In the absence of a video stream, the first available stream is used as reference for synchronization.</p></div><div><br></div><div>is this the reason of the weird/corrupted files ? and if so, how can i set the GOP ? </div></div>