Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTSP Server With a V4l2Loopback camera #272

Open
alecatalfamo opened this issue Apr 8, 2022 · 1 comment
Open

RTSP Server With a V4l2Loopback camera #272

alecatalfamo opened this issue Apr 8, 2022 · 1 comment

Comments

@alecatalfamo
Copy link

alecatalfamo commented Apr 8, 2022

I'm trying to launch [v4l2rtspserver] passing a v4l2loopback camera in which a mp4 file is redirected. The problem is that that camera does not support any requested formats. Does exist a solution for this problem?. I attach the error returned by v4l2loopback but you can imagine it.

[ERROR] /home/pi/Desktop/v4l2rtspserver/v4l2wrapper/src/V4l2Device.cpp:207
        /dev/video3: Cannot set format:H264 Invalid argument
[ERROR] /home/pi/Desktop/v4l2rtspserver/v4l2wrapper/src/V4l2Device.cpp:207
        /dev/video3: Cannot set format:MJPG Invalid argument
[ERROR] /home/pi/Desktop/v4l2rtspserver/v4l2wrapper/src/V4l2Device.cpp:207
        /dev/video3: Cannot set format:JPEG Invalid argument
[ERROR] /home/pi/Desktop/v4l2rtspserver/v4l2wrapper/src/V4l2Device.cpp:83
        Cannot init device:/dev/video3
[NOTICE] /home/pi/Desktop/v4l2rtspserver/v4l2wrapper/src/V4l2MmapDevice.cpp:141
VIDIOC_STREAMOFF: Bad file descriptor
VIDIOC_REQBUFS: Bad file descriptor
@mpromonet
Copy link
Owner

Hi,

If this is a v4l2loopback, the capture format is fixed by the loopback input.
Then it needs to be in a format supported by v4l2rtspserver or you can convert it with something like https://github.com/mpromonet/v4l2tools or some ffmpeg/gstreamer command.

Best Regards,
Michel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants