intel / icamerasrc

icamerasrc
24 stars 35 forks source link

icamerasrc_slim_api: gstreamer src plugin not working #8

Closed sylv-io closed 3 years ago

sylv-io commented 3 years ago

Hello there.

I am trying to make the rear cam of my X12 Detachable Gen 1 functional, which uses a hm11b1 sensor via IPU 6. After following the instructions on ipu6-drivers ipu6-camera-hal and ipu6-camera-bins, I tried to run the Pipeline examples below:

root@ubuntu-ThinkPad-X12-Detachable-Gen-1:~# gst-launch-1.0 icamerasrc device-name=tpg_ipu6 ! video/x-raw,format=YUY2,width=1280,height=720 ! videoconvert ! xvimagesink
04-16 19:27:46.331: [WAR]: CamHAL_CameraParser:The style of libcamhal_profile is too old, please switch it as soon as possible !!!

(gst-launch-1.0:2906): GLib-GObject-CRITICAL **: 19:27:46.331: g_param_spec_enum: assertion 'g_enum_get_value (enum_class, default_value) != NULL' failed

(gst-launch-1.0:2906): GLib-GObject-CRITICAL **: 19:27:46.331: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed
WARNING: erroneous pipeline: no property "device-name" in element "camerasrc0"
root@ubuntu-ThinkPad-X12-Detachable-Gen-1:~# gst-launch-1.0 icamerasrc device-name=hm11b1-uf ! video/x-raw,format=YUY2,width=1280,height=720 ! videoconvert ! xvimagesink
04-16 19:28:01.700: [WAR]: CamHAL_CameraParser:The style of libcamhal_profile is too old, please switch it as soon as possible !!!

(gst-launch-1.0:2908): GLib-GObject-CRITICAL **: 19:28:01.701: g_param_spec_enum: assertion 'g_enum_get_value (enum_class, default_value) != NULL' failed

(gst-launch-1.0:2908): GLib-GObject-CRITICAL **: 19:28:01.701: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed
WARNING: erroneous pipeline: no property "device-name" in element "camerasrc0"

The testpattern generator and hm11b1 return erroneous pipeline: no property "device-name" in element "camerasrc0".

Is there a way to fix this issue? Thanks!

sylv-io commented 3 years ago

nevermind. I figured it out myself... https://github.com/9elements/ipu6-camera-hal