Playing udp stream in VLC issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Playing udp stream in VLC issue

jles
Hello,

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:

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

- Start/play the gstreamer pipeline.

But if I try the other way around, i.e. start first the gstreamer pipeline
and after launch 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?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playing udp stream in VLC issue

Mathieu Duponchelle
Have you tried setting the config-interval property on the parser? You can
also try setting a keyframe interval on your encoder.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playing udp stream in VLC issue

jles
Hi Mathieu,

Thanks for the suggestion, yes already tried that and unfortunately didn't
work.

The VLC starts with that option but the screen remains black, it looks like
is not capable to decode the stream, in the encoder:
https://www.xilinx.com/support/documentation/ip_documentation/vcu/v1_2/pg252-vcu.pdf
<https://www.xilinx.com/support/documentation/ip_documentation/vcu/v1_2/pg252-vcu.pdf>  
, I increased the periodicity-idr option in order to send more key frames
but still not working...

Any more ideas would be much appreciated.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playing udp stream in VLC issue

jles
I've finally got it working, I had to setup the distance between two
consecutive Intra frames (gop-length) greater than 0, now I can start VLC
any time and it will sync with the UDP stream.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playing udp stream in VLC issue

Nicolas Dufresne-5
In reply to this post by jles


Le jeu. 30 janv. 2020 13 h 30, jles <[hidden email]> a écrit :
Hello,

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:

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

- Start/play the gstreamer pipeline.

But if I try the other way around, i.e. start first the gstreamer pipeline
and after launch 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?

There is likely a property on your encoder to control the keyframe interval. What might be happening is that only one keyframe is sent at the start, so if you start VLC after, it will wait forever.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel