jbolduc01
Posts: 3
Joined: Fri Oct 18, 2019 7:46 pm

USB 3.0 capture from camera and output through HDMI

Fri Oct 18, 2019 7:57 pm

Hello,
I am trying to capture uncompressed video from USB 3.0 camera using gstreamer but I am having a hard time to get proper frame rate. Here is the pipeline I am using:

Code: Select all

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=1920,height=1080,framerate=60/1  ! fpsdisplaysink text-overlay=false sync=false -v
With this pipeline I am able to get 30 fps. However, I would like to have 60 fps.

Using the following pipeline, I am able to capture 60 fps from the camera.

Code: Select all

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=1920,height=1080,framerate=60/1  ! fakesink sync=false -v
Which means the USB/xHCI/UVC and V4L2 layers are able to handle bandwidth. It seems there is some kind of bottleneck in rendering.

I also tried to disable lightdm and also set scaling_governor in performance mode, without success.

Is there any hardware acceleration for rendering video to the framebuffer without passing through CPU?

Here is the system I am using:

Code: Select all

Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
Thanks,
Jérôme

Return to “Troubleshooting”