uvch264src or v4l2src ?

Peter Maersk-Moller pmaersk at gmail.com
Sun May 15 11:59:55 UTC 2016


Hi.

What is the recommended module for streaming from a H264 capable UVC
webcam? Apparently these days both uvch264src and v4l2src can fetch a
stream from a UVC webcam. Earlier there have been mentioning about
uvch264src wasn't maintained so much. Is that still the case or is that
just outdated talk?

While uvch264src has parameter options to set minimum-bitrate,
maximum-bitrate and average-bitrate, the v4l2src does not. Using the caps
like show here below does not seem to influence the bitrate:

$
h264caps="video/x-h264,alignment=(string)au,width=(int)1280,height=(int)720,framerate=(fraction)30/1,profile=(string)main,minimum-bitrate=(uint)2000000,maximum-bitrate=(uint)2500000,bitrate=(uint)2200000"

$ gst-launch-1.0 -v v4l2src ! $h264caps ! ....

while parameter options with uvch264src works:

$ gst-launch-1.0 uvch264src initial-bitrate=2500000 \
      average-bitrate=2200000 peak-bitrate=2500000 \
      minimum-bitrate=2000000 fixed-framerate=true \
      iframe-period=2000 device=/dev/video0 name=src \
      auto-start=true do-timestamp=true src.vidsrc ! ...

Thanks in advance
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160515/52b3c369/attachment.html>


More information about the gstreamer-devel mailing list