V4L2 FPGA - GStreamer Pipelines - Frame Grabber

From RidgeRun Developer Connection
Jump to: navigation, search


Previous: GStreamer Pipelines/Filter Index Next: Supported Platforms




Overview

This wiki section describes how to use the V4L2-FPGA for communicating with a hardware accelerator, which generates a video pattern and sends it to the CPU. You can try using one of the following examples for performing these tests:

To use them, you need to configure your FPGA before running any of the pipelines shown below.

Basically, you can implement the pipeline illustrated in Figure 1 using GStreamer, which is performed in the following section.

Error creating thumbnail: Unable to save thumbnail to destination

The following pipelines generate a video pattern, sends it to the hardware accelerator implemented on the FPGA and retrieves the result.

Frame Grabber Pipeline

4k

WIDTH=", width=(int)3840"
HEIGHT=", height=(int)2160"

gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw $WIDTH $HEIGHT" ! videoconvert ! queue ! autovideosink-v


1080p

WIDTH=", width=(int)1920"
HEIGHT=", height=(int)1080"

gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw $WIDTH $HEIGHT" ! videoconvert ! queue ! autovideosink-v

Performance

Table 1. Maximum framerate using the VTPG for several standard resolutions on a PicoEVB
Resolution GREY (fps) RGB8 (fps) RGBA (fps)
4k 43.087 43.000 9.955
1080p 146.636 146.600 39.180
720p 291.598 286.218 85.810
Error creating thumbnail: Unable to save thumbnail to destination


Previous: GStreamer Pipelines/Filter Index Next: Supported Platforms