GStreamer mpegtsmux with splitmuxsink

Hi,

Can I record video files in mpeg-ts with splitmuxsink? If I try, I get an error:

WARNING: erroneous pipeline: could not link mpegtsmux0 to splitmuxsink0

My pipe looks something like this:

gst-launch-1.0 -v v4l2src device=/dev/video0 ! 'video/x-raw,width=1920, height=1080, framerate=30/1, format=YUY2' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! omxh264enc ! mpegtsmux ! splitmuxsink  location=angekis_video_`date '+%Y-%m-%d_%H-%M-%S'`%02d.ts max-size-time=300000000000 v4l2src device=/dev/video1 ! 'video/x-raw,width=1920, height=1080, framerate=30/1, format=YUY2' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! omxh264enc ! mpegtsmux ! splitmuxsink location=logitech_content_`date '+%Y-%m-%d_%H-%M-%S'`%02d.ts max-size-time=300000000000 -e

Is there a way to record fix sized segments of .ts files?
Or is the problem related to nvvidconv?

Thanks in advance,
rapif

I cannot say for splitmuxsink, but probably multifilesink would help for your case.
Try something like:

gst-launch-1.0 -v v4l2src device=/dev/video0 ! 'video/x-raw,width=1920, height=1080, framerate=30/1, format=YUY2' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! omxh264enc ! mpegtsmux ! multifilesink  location=angekis_video_`date '+%Y-%m-%d_%H-%M-%S'`%02d.ts max-file-size=<your_expected_size>

Thanks, it seems working.