Failed to initialize linux tool Capture process failed with code 1

Hey, i’m trying to run edge-impulse-linux on balenaOS and I get this error Failed to initialize linux tool Capture process failed with code 1

Let me share more here:

root@8f2dea9fb62c:/usr/src/app# edge-impulse-linux
Edge Impulse Linux client v1.2.5

[SER] Using microphone hw:0,0
[SER] Using camera mmal service 16.1 starting...
Failed to initialize linux tool Capture process failed with code 1

and i have tested 2 cameras (CSI and USB) with this information:

Device found:

        name  : USB Camera-B4.09.24.1
        class : Video/Source
        caps  : video/x-raw, format=(string)YUY2, width=(int)640, height=(int)480, framerate=(fraction){ 60/1, 50/1, 40/1, 30/1, 15/1 };
                video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240, framerate=(fraction){ 187/1, 150/1, 137/1, 125/1, 100/1, 75/1, 60/1, 50/1, 37/1, 30/1 };
                video/x-bayer, format=(string)grbg, width=(int)640, height=(int)480, framerate=(fraction){ 60/1, 50/1, 40/1, 30/1, 15/1 };
                video/x-bayer, format=(string)grbg, width=(int)320, height=(int)240, framerate=(fraction){ 187/1, 150/1, 137/1, 125/1, 100/1, 75/1, 60/1, 50/1, 37/1, 30/1 };
        properties:
                udev-probed = true
                device.bus_path = platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0
                sysfs.path = /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/video4linux/video1
                device.bus = usb
                device.subsystem = video4linux
                device.vendor.id = 1415
                device.vendor.name = "OmniVision\\x20Technologies\\x2c\\x20Inc."
                device.product.id = 2000
                device.product.name = "USB\ Camera-B4.09.24.1"
                device.serial = OmniVision_Technologies__Inc._USB_Camera-B4.09.24.1
                device.capabilities = :capture:
                device.api = v4l2
                device.path = /dev/video1
                v4l2.device.driver = ov534
                v4l2.device.card = "USB\ Camera-B4.09.24.1"
                v4l2.device.bus_info = usb-0000:01:00.0-1.4
                v4l2.device.version = 328787 (0x00050453)
                v4l2.device.capabilities = 2233466881 (0x85200001)
                v4l2.device.device_caps = 85983233 (0x05200001)
        gst-launch-1.0 v4l2src device=/dev/video1 ! ...

Hi @gy4nt What do you see if you run with --verbose ? It should print the error message.

@janjongboom last 10 minutes have been here without getting more information!

root@8f2dea9fb62c:/usr/src/app# edge-impulse-linux --verbose
Edge Impulse Linux client v1.2.5

[SER] Using microphone hw:0,0

@gy4nt Can you do:

gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=10 ! video/x-raw,width=640,height=480 ! videoconvert ! jpegenc ! multifilesink location=test%05d.jpg

Hopefully that will shed some light here…

I’m wondering about mmal service 16.1 though, I don’t see that in your list of devices in your first post…

Let me attach all the logs below @janjongboom

root@8f2dea9fb62c:/usr/src/app# edge-impulse-linux
Edge Impulse Linux client v1.2.5

[SER] Using microphone hw:0,0
[SER] Using camera mmal service 16.1 starting...
Failed to initialize linux tool First photo was not created within 20 seconds
root@8f2dea9fb62c:/usr/src/app# gst-device-monitor-1.0
Probing devices...


Device found:

        name  : bcm2835-isp
        class : Video/Sink
        caps  : video/x-raw, format=(string)YUY2, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], interlace-mode=(string)progressive, colorimetry=(string){ bt601 };
                video/x-raw, format=(string)UYVY, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], interlace-mode=(string)progressive, colorimetry=(string){ bt601 };
                video/x-raw, format=(string)I420, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], interlace-mode=(string)progressive, colorimetry=(string){ bt601 };
                video/x-raw, format=(string)YV12, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], interlace-mode=(string)progressive, colorimetry=(string){ bt601 };
                video/x-raw, format=(string)BGRA, width=(int)[ 64, 16384 ], height=(int)[ 64, 16384 ], interlace-mode=(string)progressive, colorimetry=(string){ sRGB };
                video/x-raw, format=(string)BGR, width=(int)[ 64, 16384 ], height=(int)[ 64, 16384 ], interlace-mode=(string)progressive, colorimetry=(string){ sRGB };
                video/x-raw, format=(string)RGB, width=(int)[ 64, 16384 ], height=(int)[ 64, 16384 ], interlace-mode=(string)progressive, colorimetry=(string){ sRGB };
                video/x-raw, format=(string)NV21, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], interlace-mode=(string)progressive, colorimetry=(string){ bt601 };
                video/x-raw, format=(string)NV12, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], interlace-mode=(string)progressive, colorimetry=(string){ bt601 };
                video/x-raw, format=(string)RGB16, width=(int)[ 64, 16384 ], height=(int)[ 64, 16384 ], interlace-mode=(string)progressive, colorimetry=(string){ sRGB };
                video/x-bayer, format=(string)grbg, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], colorimetry=(string){ 1:1:0:0 };
                video/x-bayer, format=(string)gbrg, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], colorimetry=(string){ 1:1:0:0 };
                video/x-bayer, format=(string)rggb, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], colorimetry=(string){ 1:1:0:0 };
                video/x-bayer, format=(string)bggr, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], colorimetry=(string){ 1:1:0:0 };
                video/x-raw, format=(string)GRAY8, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], interlace-mode=(string)progressive, colorimetry=(string){ 2:0:0:0 };
                video/x-raw, format=(string)YVYU, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], interlace-mode=(string)progressive, colorimetry=(string){ bt601 };
                video/x-raw, format=(string)GRAY16_LE, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], interlace-mode=(string)progressive, colorimetry=(string){ 2:0:0:0 };
        properties:
                udev-probed = true
                device.bus_path = platform-bcm2835-isp
                sysfs.path = /sys/devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video13
                device.subsystem = video4linux
                device.product.name = bcm2835-isp
                device.capabilities = :video_output:
                device.api = v4l2
                device.path = /dev/video13
                v4l2.device.driver = bcm2835-isp
                v4l2.device.card = bcm2835-isp
                v4l2.device.bus_info = platform:bcm2835-isp
                v4l2.device.version = 328787 (0x00050453)
                v4l2.device.capabilities = 2216689666 (0x84200002)
                v4l2.device.device_caps = 69206018 (0x04200002)
        gst-launch-1.0 ... ! v4l2sink device=/dev/video13


Device found:

        name  : bcm2835-isp
        class : Video/Source
        caps  : video/x-raw, format=(string)YUY2, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)UYVY, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)I420, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)YV12, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)BGRA, width=(int)[ 64, 16384 ], height=(int)[ 64, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)BGR, width=(int)[ 64, 16384 ], height=(int)[ 64, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)RGB, width=(int)[ 64, 16384 ], height=(int)[ 64, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)NV21, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)NV12, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)RGB16, width=(int)[ 64, 16384 ], height=(int)[ 64, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)YVYU, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
        properties:
                udev-probed = true
                device.bus_path = platform-bcm2835-isp
                sysfs.path = /sys/devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video14
                device.subsystem = video4linux
                device.product.name = bcm2835-isp
                device.capabilities = :capture:
                device.api = v4l2
                device.path = /dev/video14
                v4l2.device.driver = bcm2835-isp
                v4l2.device.card = bcm2835-isp
                v4l2.device.bus_info = platform:bcm2835-isp
                v4l2.device.version = 328787 (0x00050453)
                v4l2.device.capabilities = 2216689665 (0x84200001)
                v4l2.device.device_caps = 69206017 (0x04200001)
        gst-launch-1.0 v4l2src device=/dev/video14 ! ...


Device found:

        name  : bcm2835-isp
        class : Video/Source
        caps  : video/x-raw, format=(string)YUY2, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)UYVY, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)I420, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)YV12, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)NV21, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)NV12, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
                video/x-raw, format=(string)YVYU, width=(int)[ 64, 16384, 2 ], height=(int)[ 64, 16384, 2 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
        properties:
                udev-probed = true
                device.bus_path = platform-bcm2835-isp
                sysfs.path = /sys/devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video15
                device.subsystem = video4linux
                device.product.name = bcm2835-isp
                device.capabilities = :capture:
                device.api = v4l2
                device.path = /dev/video15
                v4l2.device.driver = bcm2835-isp
                v4l2.device.card = bcm2835-isp
                v4l2.device.bus_info = platform:bcm2835-isp
                v4l2.device.version = 328787 (0x00050453)
                v4l2.device.capabilities = 2216689665 (0x84200001)
                v4l2.device.device_caps = 69206017 (0x04200001)
        gst-launch-1.0 v4l2src device=/dev/video15 ! ...


Device found:

        name  : mmal service 16.1
        class : Video/Source
        caps  : video/x-raw, format=(string)YUY2, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                video/x-raw, format=(string)UYVY, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                video/x-raw, format=(string)I420, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                video/x-raw, format=(string)YV12, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                image/jpeg, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                image/jpeg, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                video/x-raw, format=(string)BGR, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                video/x-raw, format=(string)RGB, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                video/x-raw, format=(string)NV21, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                video/x-raw, format=(string)NV12, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                video/x-raw, format=(string)YVYU, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
                video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, width=(int)[ 32, 2592, 2 ], height=(int)[ 32, 1944, 2 ], framerate=(fraction)[ 1/1, 90/1 ];
        properties:
                udev-probed = true
                device.bus_path = /sys/devices/virtual/video4linux/video0
                sysfs.path = /sys/devices/virtual/video4linux/video0
                device.subsystem = video4linux
                device.product.name = "mmal\ service\ 16.1"
                device.capabilities = :capture:video_overlay:
                device.api = v4l2
                device.path = /dev/video0
                v4l2.device.driver = "bm2835\ mmal"
                v4l2.device.card = "mmal\ service\ 16.1"
                v4l2.device.bus_info = platform:bcm2835-v4l2
                v4l2.device.version = 328787 (0x00050453)
                v4l2.device.capabilities = 2233466885 (0x85200005)
                v4l2.device.device_caps = 85983237 (0x05200005)
        gst-launch-1.0 v4l2src ! ...

root@8f2dea9fb62c:/usr/src/app# gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=10 ! video/x-raw,width=640,height=480 ! videoconvert ! jpegenc ! multifilesink location=test%05d.jpg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

BTW Yesterday it worked well with an official Raspberry Pi Camera and a USB camera!

1 Like

So this last command never exits? Does it write any files? Balena uses a container system right, I’d guess permissions somewhere for the camera…

Hi folks!
Does anybody has solved this problem?

Hi @AndriyHz,

This Balena app should work well with most webcams: https://github.com/just4give/balena-edge-impulse-linux

Aurelien

Exactly @janjongboom it never exits!

Balena uses a container system right, I’d guess permissions somewhere for the camera…

It’s odd, as this is a CSI pi camera check here

@AndriyHz what camera are you using?

1 Like

I too had this issue today with a Raspberry Pi 4B.

I was able to solve this by logging out of my Edge Impulse account and restarting my Pi.

Sometimes restarting does the trick.

Hopefully this is helpful to anyone who’s also running into this.

3 Likes

I have the same fault

Hello @kvamvake,

Which camera are you using?
Do you connect your camera using USB or the Camera Serial Interface (CSI)?

Also, what do you see when you run edge-impulse-linux --verbose?

Regards,

Louis

Minute 1, goal 1… I have the same fault too, I’m using Logitech c270 usb web cam and my verbose output…
ubuntu@ubuntu:~$ edge-impulse-linux --verbose
Edge Impulse Linux client v1.3.1

[SER] Using microphone hw:1,0
[GST] Found devices: [
{
“id”: “”,
“name”: “UVC Camera (046d 0825)”,
“caps”: [
{
“type”: “video/x-raw”,
“width”: 640,
“height”: 480,
“framerate”: 30
},
{
“type”: “video/x-raw”,
“width”: 160,
“height”: 120,
“framerate”: 30
},
{
“type”: “video/x-raw”,
“width”: 176,
“height”: 144,
“framerate”: 30
},
{
“type”: “video/x-raw”,
“width”: 320,
“height”: 176,
“framerate”: 30
},
{
“type”: “video/x-raw”,
“width”: 320,
“height”: 240,
“framerate”: 30
},
{
“type”: “video/x-raw”,
“width”: 352,
“height”: 288,
“framerate”: 30
},
{
“type”: “video/x-raw”,
“width”: 432,
“height”: 240,
“framerate”: 30
},
{
“type”: “video/x-raw”,
“width”: 544,
“height”: 288,
“framerate”: 30
},
{
“type”: “video/x-raw”,
“width”: 640,
“height”: 360,
“framerate”: 30
},
{
“type”: “video/x-raw”,
“width”: 752,
“height”: 416,
“framerate”: 25
},
{
“type”: “video/x-raw”,
“width”: 800,
“height”: 448,
“framerate”: 20
},
{
“type”: “video/x-raw”,
“width”: 800,
“height”: 600,
“framerate”: 20
},
{
“type”: “video/x-raw”,
“width”: 864,
“height”: 480,
“framerate”: 20
},
{
“type”: “video/x-raw”,
“width”: 960,
“height”: 544,
“framerate”: 15
},
{
“type”: “video/x-raw”,
“width”: 960,
“height”: 720,
“framerate”: 10
},
{
“type”: “video/x-raw”,
“width”: 1024,
“height”: 576,
“framerate”: 10
},
{
“type”: “video/x-raw”,
“width”: 1184,
“height”: 656,
“framerate”: 10
},
{
“type”: “video/x-raw”,
“width”: 1280,
“height”: 720,
“framerate”: 15
},
{
“type”: “video/x-raw”,
“width”: 1280,
“height”: 960,
“framerate”: 15
}
]
}
]
[SER] Using camera UVC Camera (046d 0825) starting…
[GST] Starting gst-launch-1.0 with [
‘v4l2src’,
‘device=’,
‘!’,
‘video/x-raw,width=640,height=480’,
‘!’,
‘videoconvert’,
‘!’,
‘jpegenc’,
‘!’,
‘multifilesink’,
‘location=test%05d.jpg’
]
[GST]
(gst-launch-1.0:3756): GStreamer-CRITICAL **: 07:04:18.725: gst_element_make_from_uri: assertion ‘gst_uri_is_valid (uri)’ failed

[GST] WARNING: erroneous pipeline: no element “video”

Failed to initialize linux tool Capture process failed with code 1
ubuntu@ubuntu:~$

1 Like

@concon what Raspberry Pi are you using and what Ubuntu version?

Raspi 4B,
Ubuntu 21.10 (GNU/Linux 5.13.0-1015-raspi aarch64)

Hey all,
I’ve got the same issue on Raspberry Pi 4 with Logitech Webcam C925e.

Until now I simply deployed my model using: edge-impulse-linux, and everything worked fine. But now I’m trying to run example-linux-with-twilio from GitHub. And I always get the error: Capture process failed with code 1. Anyone can help me? :pray:

Here is what I got by running edge-impulse-linux --verbose:

 Edge Impulse Linux client v1.3.3

[SER] Using microphone hw:1,0
[GST] Found devices: [
  {
    "id": "",
    "name": "/base/scb/pcie@7d500000/pci@0,0/usb@0,0-1.1",
    "caps": [
      {
        "type": "video/x-raw",
        "width": 160,
        "height": 90,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 160,
        "height": 120,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 176,
        "height": 144,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 320,
        "height": 180,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 320,
        "height": 240,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 352,
        "height": 288,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 432,
        "height": 240,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 640,
        "height": 360,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 640,
        "height": 480,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 800,
        "height": 448,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 864,
        "height": 480,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 800,
        "height": 600,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 1024,
        "height": 576,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 960,
        "height": 720,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 1280,
        "height": 720,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 1600,
        "height": 896,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 1920,
        "height": 1080,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 2304,
        "height": 1296,
        "framerate": 0
      },
      {
        "type": "video/x-raw",
        "width": 2304,
        "height": 1536,
        "framerate": 0
      }
    ]
  },
  {
    "id": "/dev/video0",
    "name": "UvcH264 Logitech Webcam C925e (/dev/video0)",
    "caps": [
      {
        "type": "video/x-raw",
        "width": 2304,
        "height": 1536,
        "framerate": 2
      },
      {
        "type": "video/x-raw",
        "width": 2304,
        "height": 1296,
        "framerate": 2
      },
      {
        "type": "video/x-raw",
        "width": 1920,
        "height": 1080,
        "framerate": 5
      },
      {
        "type": "video/x-raw",
        "width": 1600,
        "height": 896,
        "framerate": 15
      },
      {
        "type": "video/x-raw",
        "width": 1280,
        "height": 720,
        "framerate": 10
      },
      {
        "type": "video/x-raw",
        "width": 960,
        "height": 720,
        "framerate": 15
      },
      {
        "type": "video/x-raw",
        "width": 1024,
        "height": 576,
        "framerate": 15
      },
      {
        "type": "video/x-raw",
        "width": 800,
        "height": 600,
        "framerate": 24
      },
      {
        "type": "video/x-raw",
        "width": 864,
        "height": 480,
        "framerate": 24
      },
      {
        "type": "video/x-raw",
        "width": 800,
        "height": 448,
        "framerate": 30
      },
      {
        "type": "video/x-raw",
        "width": 640,
        "height": 480,
        "framerate": 30
      },
      {
        "type": "video/x-raw",
        "width": 640,
        "height": 360,
        "framerate": 30
      },
      {
        "type": "video/x-raw",
        "width": 432,
        "height": 240,
        "framerate": 30
      },
      {
        "type": "video/x-raw",
        "width": 352,
        "height": 288,
        "framerate": 30
      },
      {
        "type": "video/x-raw",
        "width": 320,
        "height": 240,
        "framerate": 30
      },
      {
        "type": "video/x-raw",
        "width": 320,
        "height": 180,
        "framerate": 30
      },
      {
        "type": "video/x-raw",
        "width": 176,
        "height": 144,
        "framerate": 30
      },
      {
        "type": "video/x-raw",
        "width": 160,
        "height": 120,
        "framerate": 30
      },
      {
        "type": "video/x-raw",
        "width": 160,
        "height": 90,
        "framerate": 30
      }
    ]
  }
]
[SER] Using camera UvcH264 Logitech Webcam C925e (/dev/video0) starting...
[GST] Starting gst-launch-1.0 with [
  'uvch264src',
  'device=/dev/video0',
  '!',
  'video/x-raw,width=640,height=480',
  '!',
  'videoconvert',
  '!',
  'jpegenc',
  '!',
  'multifilesink',
  'location=test%05d.jpg'
]
[GST] Setting pipeline to PAUSED ...

[GST] Pipeline is live and does not need PREROLL ...

[GST] Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...

[GST] New clock: GstSystemClock

[GST] ERROR: from element /GstPipeline:pipeline0/GstUvcH264Src:uvch264src0/GstV4l2Src:v4l2src0: Device '/dev/video0' is busy
Additional debug info:
../sys/v4l2/gstv4l2object.c(3969): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstUvcH264Src:uvch264src0/GstV4l2Src:v4l2src0:
Call to S_FMT failed for YUYV @ 640x480: Device or resource busy

[GST] ERROR: from element /GstPipeline:pipeline0/GstUvcH264Src:uvch264src0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstUvcH264Src:uvch264src0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)

[GST] Execution ended after 0:00:00.005324008
Setting pipeline to NULL ...

[GST] Freeing pipeline ...

Failed to initialize linux tool Capture process failed with code 1

facing same problem but on linux on running: “edge-impulse-linux” in terminal.
The terminal output.
`

Edge Impulse Linux client v1.4.1

[SER] Using microphone hw:0,0
[SER] Using camera Integrated_Webcam_HD starting...
Failed to initialize linux tool Capture process failed with code 1

`

I have this error
Failed to initialize linux tool first photo was not created within 20 second

Help plzz !!

Hello @FIRAS,

Which camera are you using?

Best,

Louis

Camera raspberry pi v1.3