ayufan / camera-streamer

High-performance low-latency camera streamer for Raspberry PI's

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CAMERA: Cannot find 'H264' decoder

fow0ryl opened this issue · comments

Hello,

I'm trying to get camera-stremer work von my headless NanoPi R1.
Everything seems to work fine when using MJPG (/dev/video1) but it fails with H264.

`~# v4l2-ctl -d /dev/video3 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

    [0]: 'H264' (H.264, compressed)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.050s (20.000 fps)
                    Interval: Discrete 0.067s (15.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.200s (5.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.050s (20.000 fps)
                    Interval: Discrete 0.067s (15.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.200s (5.000 fps)
                 ......

`

`~# v4l2-ctl -d /dev/video1 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

    [0]: 'MJPG' (Motion-JPEG, compressed)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.050s (20.000 fps)
                    Interval: Discrete 0.067s (15.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.200s (5.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.050s (20.000 fps)
                    Interval: Discrete 0.067s (15.000 fps)
                    Interval: Discrete 0.100s (10.000 fps)
                    Interval: Discrete 0.200s (5.000 fps)
            ....
    [1]: 'YUYV' (YUYV 4:2:2)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.200s (5.000 fps)
                    Interval: Discrete 0.200s (5.000 fps)

`
I have found that inbuilt HW encoder of camera devices should be supported.
But when I try to connect to H264 (/dev/video3) I get the error. "CAMERA: Cannot find 'H264' decoder"

~# /usr/bin/camera-streamer --camera-path=/dev/video3 --camera-type=v4l2 --camera-width=1920 --camera-height=1080 --camera-fps=30 --camera-nbufs=3 --http-listen=0.0.0.0 --http-port=8082 --camera-format=H264 /usr/bin/camera-streamer Version: 0.2.6 (ff539cd) util/http/http.c: ?: HTTP listening on 0.0.0.0:8082. device/buffer_list.c: CAMERA:capture: Using: 1920x1080/H264, buffers=3, bytesperline=0, sizeimage=0.0MiB device/buffer_list.c: CAMERA:capture: Opened 3 buffers. Memory used: 0.0 MiB device/camera/camera_decoder.c: CAMERA: Cannot find 'H264' decoder device/camera/camera_output.c: CAMERA: Cannot find source for 'SNAPSHOT' for one of the formats 'JPEG, MJPG'.

Hm, decoder? Why this? My aim was to access the H264 stream provided by the camera from remote. I.e browser, VLC, ...

I'm wondering if STREAM / SNAPSHOT do require a decoder to create a jpeg from the H264 stream?
Because I did not need this I was looking for an option to disable this functions. But did not find an option to disable snapshots.

How to go on?