RZ-G/RZG GStreamer: Difference between revisions
(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=>
Examples for RZ/G2L
Down Scaling using vspmfilter
- Below table show range of support:
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:
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