当前位置:网站首页>迅为i.MX8M开发板yocto系统使用Gstarwmr视频转换
迅为i.MX8M开发板yocto系统使用Gstarwmr视频转换
2022-06-29 03:25:00 【mucheni】
iTOP-iMX8MM 提供了一个视频转换组件: imxvideoconvert_g2d,输入以下命令查看具体的信息。
gst-inspect-1.0 imxvideoconvert_g2d

它支持以下功能:
视频颜色空间转换
视频缩放
视频旋转
注意: 在视频颜色空间转换时, imxvideoconvert_g2d 仅支持其他格式的视频转换为 RGB 格式的视频。
1、 视频颜色空间转换
将 gstreamer 自带的 NV12 格式的视频源转换为 RGB16 格式的视频,输入以下命令:
gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12 ! imxvideoconvert_g2d ! \
video/x-raw,format=RGB16 ! waylandsink

将 h264 视频解码后,再使用 imxvideoconvert_g2d 转换成 RGB16 格式的视频,输入以下命令:
gst-launch-1.0 filesrc location=/gstreamer/video/1080p_60fps_h264.mp4 ! qtdemux ! queue \
! h264parse ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=1920, \
height=1080 ! filesink location=H264ToRgb16_1080p.rgb16

2、视频缩放
将 gstreamer 自带的 NV12 格式 1280*720 的视频源转换为 RGB16 格式 640*480 的视频,输入以下
命令:
gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12,width=1280,height=720 ! \
imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=640, height=480 ! waylandsink

3、视频旋转
将 gstreamer 自带的视频源旋转 90 度,输入以下命令:
gst-launch-1.0 videotestsrc ! imxvideoconvert_g2d rotation=1 ! waylandsink

将 gstreamer 自带的视频源旋转 180 度,输入以下命令:
gst-launch-1.0 videotestsrc ! imxvideoconvert_g2d rotation=2 ! waylandsink

更多内容可以专注“迅为电子”公众号
边栏推荐
- Applet view creation
- Is the account opening of GF Securities really safe and reliable
- 不同的二叉搜索树[自下而上回溯生成树+记忆搜索--空间换时间]
- Different binary search trees [bottom-up backtracking spanning tree + memory search -- space for time]
- 归并排序
- leetcode:304. 二维区域和检索 - 矩阵不可变
- 搭建nexus服务
- There's a mystery behind the little login
- 測試入門——集成測試
- Allegro's method of canceling the routing of a good line
猜你喜欢

2D人体姿态估计 - DeepPose

2022-2028 global bubble CPAP system industry survey and trend analysis report

2D human posture estimation deeppose

2022-2028 global industrial lithium chloride industry research and trend analysis report

Linear and nonlinear structures
![Zigzag sequence traversal of binary tree [one of layered traversal methods - > preorder traversal +level]](/img/f6/0df9f2a454cea0a95a5347546a90fb.png)
Zigzag sequence traversal of binary tree [one of layered traversal methods - > preorder traversal +level]

Get error: Unsupported fork ordering: eip150block not enabled, but eip155block enabled at 0

87.(cesium篇)cesium热力图(贴地形)

Logarithmic calculation in reverse order, logarithmic calculation in sequence -- merge sort

Tortoise does not display a green Icon
随机推荐
PAT甲级 A1057 Stack
二叉树的锯齿形层序遍历[分层遍历方式之一 -> 前序遍历+level]
Requirements analysis specification and requirements specification
2022-2028 global low carbon concrete industry research and trend analysis report
Sequence traversal of binary tree ii[one of sequence traversal methods - > recursive traversal + level]
Démarrer le test - test d'intégration
Tupu software intelligent energy integrated management and control platform
Gartner's "voice of customers" has the highest score, and the user experience has become a major breakthrough for China's database
Problem - ADB shellerror: insufficient permissions for device: verify udev rules
Faster memcpy alternatives- faster alternative to memcpy?
How to keep source code secret in embedded development
SSH无密码登陆
Grafana入门教程
Is it safe for qiniu school to open an account in 2022?
Leetcode daily question - 324 Swing sort II
The method of exporting packages of all components from existing PCBs in Altium Designer
2022-2028 global MWIR camera industry research and trend analysis report
Jerry's watch stops moving [chapter]
Solid state and memory module purchase
leetcode:304. 二维区域和检索 - 矩阵不可变