I'm trying to get gstreamer working on a Pi 5.
I'm getting some errors, including "Range format is ambiguous" and "Internal data stream error." I'm suspecting its the format. I guessed I420, but I don't really care. What's the most efficient? Or is there a different problem?
gst-launch-1.0 -vvv libcamerasrc ! video/x-raw,colorimetry=bt709,format=I420,width=1536,height=864,framerate=60/1 ! x264enc bitrate=1000000 ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=pc.lan port=5000
Setting pipeline to PAUSED ...
[1:38:06.825570608] [5304] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
[1:38:06.836727196] [5309] INFO RPI pisp.cpp:662 libpisp version v1.0.4 6e3a53d137f4 14-02-2024 (14:00:12)
[1:38:06.936620702] [5309] INFO RPI pisp.cpp:1121 Registered camera /base/axi/pcie@120000/rp1/i2c@80000/imx708@1a to CFE device /dev/media2 and ISP device /dev/media0 using PiSP variant BCM2712_C0
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[1:38:06.937724835] [5312] ERROR Stream stream.cpp:215 Range format is ambiguous
[1:38:06.937785965] [5312] ERROR Stream stream.cpp:215 Range format is ambiguous
[1:38:06.937796058] [5312] ERROR Stream stream.cpp:215 Range format is ambiguous
[1:38:06.937804761] [5312] ERROR Stream stream.cpp:215 Range format is ambiguous
ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Internal data stream error.
Additional debug info:
../src/gstreamer/gstlibcamerasrc.cpp(645): gst_libcamera_src_task_enter (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.001311152
Setting pipeline to NULL ...
Freeing pipeline ...
rpicam-vid --list-cameras
Available cameras
-----------------
0 : imx708 [4608x2592 10-bit RGGB] (/base/axi/pcie@120000/rp1/i2c@80000/imx708@1a)
Modes: 'SRGGB10_CSI2P' : 1536x864 [120.13 fps - (768, 432)/3072x1728 crop]
2304x1296 [56.03 fps - (0, 0)/4608x2592 crop]
4608x2592 [14.35 fps - (0, 0)/4608x2592 crop]
I'm getting some errors, including "Range format is ambiguous" and "Internal data stream error." I'm suspecting its the format. I guessed I420, but I don't really care. What's the most efficient? Or is there a different problem?
gst-launch-1.0 -vvv libcamerasrc ! video/x-raw,colorimetry=bt709,format=I420,width=1536,height=864,framerate=60/1 ! x264enc bitrate=1000000 ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=pc.lan port=5000
Setting pipeline to PAUSED ...
[1:38:06.825570608] [5304] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
[1:38:06.836727196] [5309] INFO RPI pisp.cpp:662 libpisp version v1.0.4 6e3a53d137f4 14-02-2024 (14:00:12)
[1:38:06.936620702] [5309] INFO RPI pisp.cpp:1121 Registered camera /base/axi/pcie@120000/rp1/i2c@80000/imx708@1a to CFE device /dev/media2 and ISP device /dev/media0 using PiSP variant BCM2712_C0
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[1:38:06.937724835] [5312] ERROR Stream stream.cpp:215 Range format is ambiguous
[1:38:06.937785965] [5312] ERROR Stream stream.cpp:215 Range format is ambiguous
[1:38:06.937796058] [5312] ERROR Stream stream.cpp:215 Range format is ambiguous
[1:38:06.937804761] [5312] ERROR Stream stream.cpp:215 Range format is ambiguous
ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Internal data stream error.
Additional debug info:
../src/gstreamer/gstlibcamerasrc.cpp(645): gst_libcamera_src_task_enter (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.001311152
Setting pipeline to NULL ...
Freeing pipeline ...
rpicam-vid --list-cameras
Available cameras
-----------------
0 : imx708 [4608x2592 10-bit RGGB] (/base/axi/pcie@120000/rp1/i2c@80000/imx708@1a)
Modes: 'SRGGB10_CSI2P' : 1536x864 [120.13 fps - (768, 432)/3072x1728 crop]
2304x1296 [56.03 fps - (0, 0)/4608x2592 crop]
4608x2592 [14.35 fps - (0, 0)/4608x2592 crop]
Statistics: Posted by hackbar — Fri Mar 22, 2024 5:06 am