Skip to content

Compress YUYV to h264 out #47

@Tormund1985

Description

@Tormund1985

Describe the bug
I am trying to make a rtsp workflow from a libcamera sensor (IMX519 with autofocus).

To Reproduce
sudo modprobe v4l2loopback video_nr=3

v4l2compress -fH264 /dev/video0 /dev/video3

root@raspberrypi:/# v4l2compress -fH264 /dev/video0 /dev/video3
log level:500

[NOTICE] src/V4l2Device.cpp:133
        driver:unicam capabilities:a5a00001 mandatory:4000001
[NOTICE] src/V4l2Device.cpp:136
        /dev/video0 support capture
[NOTICE] src/V4l2Device.cpp:138
        /dev/video0 support read/write
[NOTICE] src/V4l2Device.cpp:139
        /dev/video0 support streaming
[NOTICE] src/V4l2Device.cpp:225
        /dev/video0:YUYV size:640x480 bufferSize:614400
[NOTICE] src/V4l2MmapDevice.cpp:49
        Device /dev/video0
[NOTICE] src/V4l2MmapDevice.cpp:73
VIDIOC_STREAMON: Invalid argument
        Device /dev/video0 nb buffer:10
[NOTICE] src/V4l2MmapDevice.cpp:141
        Device /dev/video0
[WARN] src/v4l2compress.cpp:215
        Cannot create V4L2 capture interface for device:/dev/video0

Expected behavior
Cannot create the v4l2 capture for proceed qith rtsp workflow.

Desktop (please complete the following information):
Raspberry Pi Zero 2w Bullseye

Additional context

I follow the steps to install v4l2tools, v4l2loopback and v4l2rtspserver without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions