将 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 locatinotallow=/gstreamer/video/1080p_60fps_h264.mp4 ! qtdemux ! queue \
! h264parse ! vpudec ! imxvideoconvert_g2d ! video/x-raw, format=RGB16, width=1920, \
height=1080 ! filesink locatinotallow=H264ToRgb16_1080p.rgb16