-
Notifications
You must be signed in to change notification settings - Fork 521
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
Failed to stream H264 to virtual camera: "does not support 2:4:7:1 colorimetry" #557
Comments
could you try with current i cannot fully reproduce the problem (having no hardware that natively speaks h264), however: the following pipeline appears to work for me with v0.12.7 and current main: gst-launch-1.0 -v videotestsrc \
! x264enc \
! h264parse \
! "video/x-h264,width=640,height=480,pixel-aspect-ratio=1/1,framerate=30/1,interlace-mode=progressive,colorimetry=2:4:7:1" \
! v4l2sink device=/dev/video2 however, the following pipeline fails from me with v0.12.7 (note the "colorimetry=bt601") gst-launch-1.0 -v videotestsrc \
! x264enc \
! h264parse \
! "video/x-h264,width=640,height=480,pixel-aspect-ratio=1/1,framerate=30/1,interlace-mode=progressive,colorimetry=bt601" \
! v4l2sink device=/dev/video2 however, the above pipeline appears to work with |
Hi @umlaeute, Thank you for your response. I tried with v4l2loopback v0.12.7 (9ba7e29) with following pipeline (
I get the following error.
For the following pipeline:
I get the following error:
For the following pipeline:
I get the following error:
Is it possible that the outcome can be changed based on the Linux distribution or the kernel version? Because i want to run this on Jetson Orin with Ubuntu 20.04 installed. It also get the same errors as my laptop.
|
rather than the Linux kernel version i would imagine that the GStreamer version matters. I'm using gstreamer_1.22.6-1 (on my Debian/sid machine). Newer Linux distributions will have newer versions of the packaged software, which in turn will have bugs fixed (and new bugs) |
My environment
v4l2loopback
version: 0.12.5GStreamer version: 1.16.3
kernel version (
uname -a
):5.15.0-84-generic # 93~20.04.1-Ubuntu SMP Wed Sep 6 16:15:40 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Distribution (+version) (
lsb_release -a
):Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
Problem Description:
I am trying to stream my USB cam video in H264 format to virtual camera using GStreamer. But i am getting error:
does not support 2:4:7:1 colorimetry
.My USB cam (Arducam USB Camera: Arducam USB) support H264 video format.
Trying to stream H264 video from USB camera (
/dev/video2
) to virtual camera (/dev/video10
):gst-launch-1.0 -v v4l2src device=/dev/video2 ! video/x-h264,width=640,height=480,framerate=30/1 ! v4l2sink device=/dev/video10
Gets Following error:
Trying to get raw video from USB camera (
/dev/video0
) and convert to H264 and stream to virtual camera (/dev/video10
):gst-launch-1.0 -v v4l2src device=/dev/video0 ! videoscale ! videoconvert ! x264enc ! h264parse ! video/x-h264,stream-format=avc,alignment=au,width=640,height=480,framerate=30/1 ! v4l2sink device=/dev/video10
Gets Following error:
Successful when trying to stream raw video from
/dev/video0
to virtual camera/dev/video10
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! videoconvert ! v4l2sink device=/dev/video10
Result of
gst-device-monitor-1.0
:I also tried with
v4l2loopback
versions0.12.6, 0.12.7
and gstreamer version1.18.6
. But same errors.I would appreciate a prompt response.
Thank you.
The text was updated successfully, but these errors were encountered: