RZ-G/RZG GStreamer: Difference between revisions

From Renesas.info
(Created page with "{{DISPLAYTITLE:GStreamer}} ← RZ-G <img height=100 style="float:right" src=https://upload.wikimedia.org/wikipedia/commons/thumb/d/db/Gstreamer-logo.svg/1200px-Gstreamer-...")
Β 
No edit summary
Line 3: Line 3:


<img height=100 style="float:right" src=https://upload.wikimedia.org/wikipedia/commons/thumb/d/db/Gstreamer-logo.svg/1200px-Gstreamer-logo.svg.png>
<img height=100 style="float:right" src=https://upload.wikimedia.org/wikipedia/commons/thumb/d/db/Gstreamer-logo.svg/1200px-Gstreamer-logo.svg.png>
= Examples for RZ/G2L =
== Down Scaling using vspmfilter ==
* Below table show range of support:
{| class="wikitable"
|+ style="caption-side:bottom;"|''Supported solution range''
|
| Input resolution
| Output scale down ratio
|-
| Min
| 128x72
| 1
|-
| Max
| 1920x1080
| 15
|}
Following are sample commands for Up/Down Scaling with h264 Elementary Stream file.
===Case of Down Scaling===
<pre>
gst-launch-1.0 filesrc location=./<FullHDsize_h264_file> ! h264parse ! queue ! omxh264dec ! queue ! vspmfilter outbuf-alloc=true ! video/x-raw, format=BGRA, width=1280, height=720 ! waylandsink
</pre>
===Case of Down Scaling (without color format conversion)===
<pre>
gst-launch-1.0 filesrc location=./<FullHDsize_h264_file> ! h264parse ! queue ! omxh264dec ! queue ! vspmfilter outbuf-alloc=true ! video/x-raw, width=1280, height=720 ! waylandsink
</pre>
===Case of Down Scaling (without color format conversion – use dmabuf)===
<pre>
gst-launch-1.0 filesrc location=./<FullHDsize_h264_file> ! h264parse ! queue ! omxh264dec ! queue ! vspmfilter dmabuf-use=true ! video/x-raw, width=1280, height=720 ! waylandsink
</pre>
== Color format conversion using vspmfilter ==
* Below table show color format conversion using vspmfilter:
{| class="wikitable"
|+ style="caption-side:bottom;"|''Supported color format''
| No.
| Supported color format
|-
| 1
| BGRA
|-
| 2
| BGRx
|-
| 3
| RGB16
|-
| 4
| YUY2
|-
| 5
| NV12
|}
Following are sample commands for converting color format. Please set the output format which begin supported following β€œformat=”.
===Case of BGRA output===
<pre>
gst-launch-1.0 filesrc location=filename.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! queue ! vspmfilter outbuf-alloc=true ! video/x-raw, format=BGRA ! waylandsink
</pre>

Revision as of 18:04, 30 November 2021

← RZ-G

<img height=100 style="float:right" src=1200px-Gstreamer-logo.svg.png>

Examples for RZ/G2L

Down Scaling using vspmfilter

  • Below table show range of support:
Supported solution range
Input resolution Output scale down ratio
Min 128x72 1
Max 1920x1080 15

Following are sample commands for Up/Down Scaling with h264 Elementary Stream file.

Case of Down Scaling

gst-launch-1.0 filesrc location=./<FullHDsize_h264_file> ! h264parse ! queue ! omxh264dec ! queue ! vspmfilter outbuf-alloc=true ! video/x-raw, format=BGRA, width=1280, height=720 ! waylandsink

Case of Down Scaling (without color format conversion)

gst-launch-1.0 filesrc location=./<FullHDsize_h264_file> ! h264parse ! queue ! omxh264dec ! queue ! vspmfilter outbuf-alloc=true ! video/x-raw, width=1280, height=720 ! waylandsink

Case of Down Scaling (without color format conversion – use dmabuf)

gst-launch-1.0 filesrc location=./<FullHDsize_h264_file> ! h264parse ! queue ! omxh264dec ! queue ! vspmfilter dmabuf-use=true ! video/x-raw, width=1280, height=720 ! waylandsink

Color format conversion using vspmfilter

  • Below table show color format conversion using vspmfilter:
Supported color format
No. Supported color format
1 BGRA
2 BGRx
3 RGB16
4 YUY2
5 NV12

Following are sample commands for converting color format. Please set the output format which begin supported following β€œformat=”.

Case of BGRA output

gst-launch-1.0 filesrc location=filename.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! queue ! vspmfilter outbuf-alloc=true ! video/x-raw, format=BGRA ! waylandsink