h.264 - Gstreamer + h264 stream from c920 + v4l2loopback not working -


i've been month working in project cubieboard2 , webcam logitech c920, after lot of search , trial error decided use gstreamer + v4l2loopback sending hardware encoded h264 stream provides c920 vlc , add textoverlay program.

the problem came when tried use gstreamer v4l2loopback. if use raw stream logitech works fine:

gst-launch-1.0 -v v4l2src ! "video/x-raw,format=yuy2,width=640,height=480,framerate=30/1" ! queue ! v4l2sink device=/dev/video1 sync=0 

also it's fine

gst-launch-1.0 -v -e uvch264src device=/dev/video0 name=src auto-start=true      src.vfsrc ! queue ! video/x-raw,format=\(string\)yuy2,width=320,height=240,framerate=10/1 ! v4l2sink device=/dev/video1 sync=0 

but when use h264 stream:

gst-launch-1.0 -v -e uvch264src device=/dev/video0 name=src auto-start=true src.vidsrc ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! v4l2sink device=/dev/video1 sync=0 

it doesn't work, outputing "streaming task paused, reason not-linked (-1)" what's curious program outputs different caps form ones i've specified on pipeline:

/gstpipeline:pipeline0/gstuvch264src:src.gstghostpad:vfsrc: caps = video/x-raw, format=(string)yuy2, width=(int)2304, height=(int)1536, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)2/1 /gstpipeline:pipeline0/gstuvch264src:src.gstghostpad:vfsrc.gstproxypad:proxypad0: caps = video/x-raw, format=(string)yuy2, width=(int)2304, height=(int)1536, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)2/1

i'm quite sure problem related don't know how go on trying solve problem, appreciated.

i'm using:

  • v4l2loopback (0.8.0)
  • gstreamer 1.2.4
  • cubieboard2 (arm computer)
  • webcam logitech c920


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -