Webcam streaming using gstreamer over UDP

前端 未结 3 699
青春惊慌失措
青春惊慌失措 2020-12-05 03:25

Here is what I\'m trying:

gst-launch -v udpsrc port=1234 ! fakesink dump=1

I test with:

gst-launch -v audiotestsrc ! udpsink host=

3条回答
  •  自闭症患者
    2020-12-05 04:11

    Try these (You may have to install gstreamer-ugly plugins for this one)

    UDP streaming from Webcam (stream over the network)

    gst-launch v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480' !  x264enc pass=qual quantizer=20 tune=zerolatency ! rtph264pay ! udpsink host=127.0.0.1 port=1234
    

    UDP Streaming received from webcam (receive over the network)

    gst-launch udpsrc port=1234 ! "application/x-rtp, payload=127" ! rtph264depay ! ffdec_h264 ! xvimagesink sync=false
    

    Update

    To determine the payload at the streaming end simply use verbose option with gst-launch -v ...

提交回复
热议问题