【问题标题】:gstreamer rtpdepay error "Segment with non-TIME format not supported"gstreamer rtpdepay 错误“不支持非 TIME 格式的段”
【发布时间】:2021-07-04 10:00:03
【问题描述】:

我有一个 gstreamer 管道正在播放从 udpsrc 接收的 RTP 流:

udpsrc port=6000 caps=\"application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H265, payload=(int)96, seqnum-offset=(uint)5331, timestamp-offset=(uint)2500093283, ssrc=(uint)2046637718, a-framerate=(string)1\" ! rtph265depay ! avdec_h265 ! videoconvert ! autovideosink sync=false

这很好,但是如果我用 appsrc 替换 udpsrc,它就会停止工作。我看到的唯一错误是:

... Segment with non-TIME format not supported

appsrc 的非工作管道:

appsrc name=appsrc caps=\"application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H265, payload=(int)96, seqnum-offset=(uint)5331, timestamp-offset=(uint)2500093283, ssrc=(uint)2046637718, a-framerate=(string)1\" ! rtph265depay ! avdec_h265 ! videoconvert ! autovideosink sync=false

【问题讨论】:

    标签: gstreamer


    【解决方案1】:

    原来appsrc 需要将其format 属性设置为time

    这是固定的管道:

    appsrc name=appsrc format=time caps=\"application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H265, payload=(int)96, seqnum-offset=(uint)5331, timestamp-offset=(uint)2500093283, ssrc=(uint)2046637718, a-framerate=(string)1\" ! rtph265depay ! avdec_h265 ! videoconvert ! autovideosink sync=false
    

    【讨论】:

      猜你喜欢
      • 2011-07-14
      • 2019-09-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多