I try to check video rtp stream on my Windows OS computer using command on server:
gst-launch-1.0 filesrc location = d:/TestVideos/lama.mp4 ! qtdemux ! video/x-h264 ! rtph264pay ! udpsink host=192.168.1.162 port=6001
Then I try to catch stream:
gst-launch-1.0 -v udpsrc port=6001 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink
I see such a picture in the console:
And thats all. When the video ends server window automatically closing.
But if try to use the testvideosrc, everything works good.
Server side:
gst-launch-1.0 -v videotestsrc ! video/x-raw, framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=192.168.1.162 port=6001
Client side:
gst-launch-1.0 -v udpsrc port=6001 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink
Unfortunately I can't find mistake... It would be great if anyone help to find it. Thank you.
glimagesink
orximagesink
. – gst