gstreamer1.0 with logitech c920 webcam Pipeline不想暂停

时间:2015-05-13 20:46:22

标签: gstreamer gst-launch

我正在尝试在罗技c920 usb相机中使用硬件h264压缩器。我使用的是Ubuntu 14.10提供的gstreamer1.0软件包。

gst-launch-1.0 -v -e uvch264src device=/dev/video0 name=src auto-start=true \
src.vfsrc ! queue ! video/x-h264,width=1280,height=720,framerate=30/1 ! \
h264parse ! avdec_h264 ! xvimagesink sync=false

我正在获取输出

Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: num-buffers = -1
/GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: device =/dev/video0
/GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: num-buffers = -1
/GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0: device = /dev/video0
/GstPipeline:pipeline0/GstUvcH264Src:src/GstCapsFilter:capsfilter1: caps = "video/x-h264\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1"
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...

任何线索?我有点困惑。我怀疑我会被告知“你需要升级”,但我试图避免经历从源构建所有内容的麻烦,然后尝试在其他系统上复制它。

1 个答案:

答案 0 :(得分:1)

你读过这个:http://www.oz9aec.net/index.php/gstreamer/487-using-the-logitech-c920-webcam-with-gstreamer-12吗?

我没有这个凸轮,但据我所知你在这里有2个流:

  1. H.264高分辨率流,src.vidsrc
  2. MJPEG低分辨率流,src.vfsrc
  3. 因此,请尝试将 src.vfsrc 更改为 src.vidsrc

    此外,您可以尝试 v4l2src 元素:

    gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! queue ! video/x-h264,width=1280,height=720,framerate=30/1 ! \
      h264parse ! avdec_h264 ! xvimagesink sync=false
    

    此外,您可以阅读此主题,它可能会有所帮助:Capturing h.264 stream from camera with Gstreamer