大家好!
我正在使用DVSDK中的GStreamer做视频开发,我使用的是TVP5146M2的视频解码芯片,我使用USB摄像头的时候,输入如下命令效果很好:
gst-launch -v v4l2src device=/dev/video2 ! ffmpegcolorspace ! 'video/x-raw-yuv,width=320,height=240,format=(fourcc)UYVY' ! queue ! ffmpegcolorspace ! video/x-raw-gray,bpp=8 ! ffmpegcolorspace ! queue ! TIVidenc1 codecName=h264enc engineName=codecServer bitRate=100000 ! rtph264pay pt=96 ! udpsink host=192.168.1.150 port=5000
但是当我换成使用PAL制式的摄像头,TVP5146M2解码的时候,命令有错误,
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' cannot capture at 320x240
Additional debug info:
gstv4l2object.c(2082): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to S_FMT failed for UYVY @ 320x240: Invalid argument
Setting pipeline to NULL ...
Freeing pipeline ...
root@dm37x-evm:~#
这是为什么呢? 视频的格式问题嘛? 需要怎样修改呢?