<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Raj,<br>
</p>
<div class="moz-cite-prefix">On 12/10/20 5:41 am, transport raj
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKuFm5gqR1eqzrr5wR6Xo_8Bxfe2Y3qH15mFveW_NR8ZXmCWiQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi All,</div>
<div><br>
</div>
Using the below command, I'm trying to split the generated video
file for the duration of 1-sec, but the generated video file is
of 0.6 secs. How to achieve exactly 1 sec. Can anyone help?</div>
</blockquote>
<p>splitmuxsink can only break files at a keyframe boundary, and
will always try and keep files shorter than the maximum. To make
sure that things can break at exactly 1 second intervals, you need
keyframes at those positions. If your GStreamer install is recent
enough, you can use the send-keyframe-requests=true property on
splitmuxsink to send encoder requests to create keyframes at the
right position, otherwise, tune your key-int-max and input
framerate to generate keyframes at 1 second intervals.</p>
<p>Regards,</p>
<p>Jan.<br>
</p>
<blockquote type="cite"
cite="mid:CAKuFm5gqR1eqzrr5wR6Xo_8Bxfe2Y3qH15mFveW_NR8ZXmCWiQ@mail.gmail.com">
<div dir="ltr">
<div>
<div>gst-launch-1.0 -e v4l2src num-buffers=500 !
video/x-raw,width=320,height=240 ! videoconvert ! queue !
timeoverlay ! x264enc key-int-max=10 ! h264parse !
splitmuxsink location=video%02d.mov max-size-time=1000000000
max-size-bytes=1000000<br>
</div>
</div>
<div><br>
</div>
<div>Regards</div>
<div>Raj</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
</body>
</html>