简体   繁体   中英

Playing gstreamer udp stream in VLC

I'm trying to play in VLC the next gstreamer pipeline form:

appsrc -> omxh264 -> h264parser -> mpegtsmux -> udpsink

In order to play it in VLC I setup the network stream source to:

udp://192.168.1.12@:5000/

The VLC only plays the video following the next sequence:

1) Start VLC player and open network connection, (remains on waiting status).

2) Start/play the gstreamer pipeline.

But if I try the other way around, ie start first the gstreamer pipeline and after VLC, it is not able to display the incoming udp video stream.

Ideally I need to play/start the gstreamer udp stream and open VLC any time I need to play/see the video.

Does anyone have any idea/clue why it's behaving like this?

我终于让它工作了,我必须将两个连续的 Intra 帧(gop-length)之间的距离设置为大于 0,现在我可以随时启动 VLC 并且它会播放视频流。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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