Device is not a valid UVC H264 camera

I have a 1080P 60FPS HD USB Camera, H.265/H.264 High Definition 2MP UVC Camera for Industrial Webcam and I’m using gstreamer.

The camera works fine with v4l2src plugin but I want to use uvch264src in order to be able to define the bitrate. However, when I use uvch264src I get the following error:

ERROR: from element /GstPipeline:pipeline0/GstUvcH264Src:src: Device is not a valid UVC H264 camera

This is the result when I use the following pipeline:

gst-launch-1.0 uvch264src initial-bitrate=1500000 average-bitrate=1500000 iframe-period=1000 device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-h264,width=1280,height=720,framerate=30/1,profile=constrained-baseline ! h264parse ! mpegtsmux ! filesink location=output.ts

Sorry to hear that. Don’t worry and our enginner will test it and reply you as soon as possible.

@mwon

We tested it, and it does appear the same error as you.But with this command I can successfully display the camera in h264 format,It is recommended that you modify the function you want on this basis.

gst-launch-1.0 -e v4l2src device=/dev/video4 ! video/x-h264, width=1280, height=720, framerate=15/1 ! avdec_h264 ! xvimagesink sync=false

Thanks. Yes, I know I can v4l2src but the problem is that I want to manually control the bitrate. I can’t do that with v4l2src and uvch264srcwas an option.

@mwon

Okay, I understand your needs. I will try how to solve