TI中文支持网
TI专业的中文技术问题搜集分享网站

IPU2 可以对灰度类型数据转码吗?

之前尝试了NV12进行转码H264,命令如下:

gst-launch-1.0 filesrc location=/home/a.raw ! videoparse width=1280 height=960 format=nv12 framerate=12/1 ! video/x-raw, width=1280, height=960 ! ducatih264enc  inter-interval = 1 level=51 profile=100 bitrate=16000 ! filesink location=/home/test.h264

工作正常。

但是我的视频数据源是灰度16位数据,看到 gst-inspect-1.0 videoparse 打印提到有"gray16-le"格式,所以尝试 gray16-le

gst-launch-1.0 filesrc location=/home/a.raw ! videoparse width=1280 height=960 format=gray16-le framerate=12/1 ! video/x-raw, width=1280, height=960 ! ducatih264enc  inter-interval = 1 level=51 profile=100 bitrate=16000 ! filesink location=/home/test.h264

解码失败,请问是IPU2 不支持解析吗,能否帮助我了解 gray16-le 转 nv12/YUV420 转码的好方法

user4587069:

回复 Shine:

感谢你的解答 问题已知晓。
请问这样使用gst对NV12进行分辨率调整? 我参考了你上提到的:
developer.ridgerun.com/…/index.php
尝试没有成功/
这是我的尝试
gst-launch-1.0 filesrc location=/opt/dgp/web/video/photo0.nv12 ! videoparse width=1280 height=640 format=nv12 framerate=1/1 ! vpe ! 'video/x-raw, format=(string)NV12, width=(int)1280, height=(int)800' ! kmssink scale=false connector=30 -v
显然没能明白vpe 的作用

赞(0)
未经允许不得转载:TI中文支持网 » IPU2 可以对灰度类型数据转码吗?
分享到: 更多 (0)