Logitech C270 to RTP

Nicolas Dufresne nicolas at ndufresne.ca
Thu May 6 13:29:00 UTC 2021


Le jeudi 06 mai 2021 à 03:30 -0500, marininpa via gstreamer-devel a écrit :
> Hello!
> I did it with the omxh264enc codec.
> This pipeline works: "gst-launch-1.0 -v v4l2src device=/dev/video0 !
> video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! omxh264enc
> ! rtph264pay pt=96 config-interval=1 ! udpsink host=192.168.88.100
> port=5000"
> I'm using a Raspberry pi 3 b+, CPU usage 10% and bitrate <1 Mbit, it's good.
> 
> But I need a resolution of 1280x720 and with this resolution the pipeline
> does not work:
> "gst-launch-1.0 -v v4l2src device=/dev/video0 !
> video/x-raw,width=1280,height=720,framerate=30/1 ! videoconvert ! omxh264enc
> ! rtph264pay pt=96 config-interval=1 ! udpsink host=192.168.88.100
> port=5000"
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal
> data stream error.
> Additional debug info:
> gstbasesrc.c(3055): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> streaming stopped, reason not-negotiated (-4)
> Execution ended after 0:00:00.003548594
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
> 
> How can this be fixed?

Low-end cameras are may not support higher resolution and framerate due to
bandwidth limitations. You can check you camera capabilities using:

  gst-device-monitor-1.0 Video/Source

or
  
  v4l2-ctl --list-formats-ext -d0

Most likely, if 720p at 30 is supported, it will be provided as jpeg, and you will
have to use jpegdec or similar element.

> 
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list