【问题标题】:gstreamer mixer, mix 2 rtsp streams side by side with gst-launch -> timestamping problem occurredgstreamer 混合器,将 2 个 rtsp 流与 gst-launch 并排混合 -> 出现时间戳问题
【发布时间】:2019-05-07 17:59:42
【问题描述】:

我正在尝试使用 gst-launch 并排显示两个流。

发生错误,但显示流。 gstbasesink.c(2902): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:

正确显示单个 rtsp 源。 我尝试将参数latency设为500,没有成功。

gst-launch-1.0 -e \
videomixer name=mix \
    sink_0::xpos=0   sink_0::ypos=0  sink_0::alpha=0\
    sink_1::xpos=640   sink_1::ypos=0 \
rtspsrc location=rtsp://192.168.9.20:554/axis-media/media.amp user-id=username user-pw=password latency=150 \
! decodebin max-size-time=30000000000 \
! videoconvert ! videoscale \
! video/x-raw,width=640,height=480 \
! mix.sink_1 \
rtspsrc location=rtsp://192.168.9.24:554/axis-media/media.amp user-id=username user-pw=password latency=150 \
! decodebin max-size-time=30000000000 \
! videoconvert ! videoscale \
! video/x-raw,width=640,height=480 \
! mix.sink_2 \
mix. ! queue ! videoconvert ! autovideosink

我想创建四个 rtsp 流的马赛克。

请帮助我解决问题。提前致谢。

【问题讨论】:

    标签: gstreamer-1.0 gst-launch-1.0


    【解决方案1】:

    解决方法是使用:

    mix. ! queue ! videoconvert ! xvimagesink sync=false```
    
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-16
      • 2018-02-09
      • 2016-10-19
      • 1970-01-01
      • 2023-03-03
      相关资源
      最近更新 更多