简体   繁体   English

流gstreamer到VLC冻结问题

[英]Stream gstreamer to vlc freeze issue

I've got a problem trying to receive gstreamer stream with VLC. 尝试通过VLC接收gstreamer流时遇到问题。 This is the command I use for transmitting: 这是我用于传输的命令:

gst-launch-1.0 -v filesrc location=vid.h264 ! h264parse ! rtph264pay config-interval=1 pt=96 ! \
     udpsink host=192.168.1.10 port=900

Receiving it using gstreamer works fine for me: 使用gstreamer接收它对我来说很好:

gst-launch-1.0 -v udpsrc port=9000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! \
     rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false

For VLC I have created simple SDP file: 对于VLC,我创建了简单的SDP文件:

v=0
m=video 9000 RTP/AVP 96 
c=IN IP4 192.168.1.10
a=rtpmap:96 H264/90000

But after launching it I only get one still frame of the actual stream. 但是启动后,我只能得到实际流的一帧。 When I stop and start VLC, then I receive another frame. 当我停止并启动VLC时,我会收到另一个帧。 Do you know what may be the problem of no continuous stream displaying in VLC? 您知道VLC中不显示连续流的问题吗?

我遇到了同样的问题,选项“ do-timestamp = true”为我解决了该问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM