splitmuxsink - time duration

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

splitmuxsink - time duration

transport raj
Hi All,

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?


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

Regards
Raj

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: splitmuxsink - time duration

Jan Schmidt-3

Hi Raj,

On 12/10/20 5:41 am, transport raj wrote:
Hi All,

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?

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.

Regards,

Jan.

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

Regards
Raj

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel