Failed to initialize linux tool Capture process failed with code 1

Hello @FIRAS,

Maybe this thread can help you: Using raspberry pi camera - #2 by louis

Let me know if it fixes your issue.

Best,

Louis

Actually I have the same problem too

Error: “failed to run impulse capture process failed with code 1”

How to solve this problem would anyone like to share ??

Hello i am having the same problem. my error message is:

[SER] Using microphone hw:1,0
[GST] checking for /etc/os-release
Failed to initialize linux tool Capture process failed with code 1

I am using camera Arducam 12MP IMX708, Raspberry Pi 5 with Bookworm.

the camera works perfectly fine in the command line with rpicam

For RPI5, make sure you install: sudo apt install -y gstreamer1.0-libcamera

Then look for your device with : gst-device-monitor-1.0

Device found:

	name  : /base/axi/pcie@1000120000/rp1/usb@200000-2:1.0-03f0:654a
	class : Source/Video
	caps  : image/jpeg, width=160, height=120
	        image/jpeg, width=320, height=240
	        image/jpeg, width=640, height=360
	        image/jpeg, width=640, height=480
	        image/jpeg, width=800, height=600
	        image/jpeg, width=1024, height=768
	        image/jpeg, width=1280, height=720
	        image/jpeg, width=1920, height=1080
	        image/jpeg, width=2560, height=1440
	        image/jpeg, width=2592, height=1944
	        video/x-raw, format=YUY2, width=160, height=120
	        video/x-raw, format=YUY2, width=320, height=240
	        video/x-raw, format=YUY2, width=640, height=360
	        video/x-raw, format=YUY2, width=640, height=480
	        video/x-raw, format=YUY2, width=800, height=600
	        video/x-raw, format=YUY2, width=1024, height=768
	        video/x-raw, format=YUY2, width=1280, height=720
	        video/x-raw, format=YUY2, width=1920, height=1080
	        video/x-raw, format=YUY2, width=2560, height=1440
	        video/x-raw, format=YUY2, width=2592, height=1944
	gst-launch-1.0 libcamerasrc camera-name="/base/axi/pcie\@1000120000/rp1/usb\@200000-2:1.0-03f0:654a" ! ...

Grab the camera-name section and start edge-impulse-linux with:

edge-impulse-linux --gst-launch-args "libcamerasrc camera-name="/base/axi/pcie\@1000120000/rp1/usb\@200000-2:1.0-03f0:654a" ! video/x-raw,width=640,height=480,format=YUY2 ! videoconvert ! jpegenc"