ERROR:../sys/v4l2/gstv4l2bufferpool.c:1193:gst_v4l2_buffer_pool_qbuf: assertion failed: ("Value of time " "timestamp" " is out of timeval's range" && ((timestamp) / GST_SECOND) < G_MAXLONG)
I'm trying to run the following pipeline with gst-launch
:
gst-launch-1.0 libcamerasrc ! video/x-raw,width=1280,height=720,format=NV12 ! v4l2convert ! videoflip method=rotate-180 ! clockoverlay ! v4l2h264enc extra-controls="controls,repeat_sequence_header=1" ! 'video/x-h264,level=(string)4' ! tee name=t ! h264parse ! hlssink2 max-files=5 location=hls/segment%05d.ts playlist-location=hls/playlist.m3u8 playlist-root=/hls target-duration=2 playlist-length=3 t. ! h264parse ! splitmuxsink location=Videos/ollie/test%04d.mov max-size-time=60000000000 max-files=1440
Generally this works well. However, at random times this pipeline will crash with:
Setting pipeline to PAUSED ...
[74:10:19.137045188] [14766] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
[74:10:19.153599841] [14767] WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'imx477'
[74:10:19.153645267] [14767] WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[74:10:19.153702415] [14767] ERROR CameraSensor camera_sensor.cpp:591 'imx477 10-001a': Camera sensor does not support test pattern modes.
[74:10:19.170311642] [14767] INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media2 and ISP device /dev/media0
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
[74:10:19.187479625] [14774] INFO Camera camera.cpp:1029 configuring streams: (0) 1280x720-NV12
[74:10:19.188335751] [14767] INFO RPI raspberrypi.cpp:760 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected unicam format: 2028x1080-pBCC
**:50:57. / 99:99:99.
ERROR:../sys/v4l2/gstv4l2bufferpool.c:1193:gst_v4l2_buffer_pool_qbuf: assertion failed: ("Value of time " "timestamp" " is out of timeval's range" && ((timestamp) / GST_SECOND) < G_MAXLONG)
Bail out! ERROR:../sys/v4l2/gstv4l2bufferpool.c:1193:gst_v4l2_buffer_pool_qbuf: assertion failed: ("Value of time " "timestamp" " is out of timeval's range" && ((timestamp) / GST_SECOND) < G_MAXLONG)
Aborted
I'm not sure what's going on here, and the crash seems to happen after different durations.
Happy to provide any more information that will help.