Streaming RTP/RTSP: sync/timestamp problems

前端 未结 3 1072
悲哀的现实
悲哀的现实 2021-02-05 16:51

I\'m having some trouble streaming H.264 video over RTSP. The goal is to live-stream a camera image to an RTSP client (ideally a browser plugin in the end). This has been workin

3条回答
  •  攒了一身酷
    2021-02-05 17:05

    You can add "sync=false" to the source gst pipeline. On Ubuntu 12.04 that seems to remove the lag and error messages.

    Here's the command I used on the source:

    gst-launch videotestsrc ! x264enc tune=zerolatency ! rtph264pay ! udpsink host=127.0.0.1 sync=false
    

    and here's what I used on the receiver:

    gst-launch udpsrc ! application/x-rtp,payload=96 ! rtph264depay ! decodebin ! xvimagesink
    

    Unfortunately, I have no idea why that works or even which component the "sync=false" property belongs to (on the source pipeline).

提交回复
热议问题