This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

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 转码的好方法