mareksuma1985 / GStreamer_Tutorial_udpsink

Streams video from main camera to a given IP address.
10 stars 4 forks source link

Rtsp player gstreamer Android #1

Open hafeelgadgeon opened 2 years ago

hafeelgadgeon commented 2 years ago

How to play this streamed video using rtsp url from gstreamer android tutorial 4 or any other android network players like vlc etc

mareksuma1985 commented 2 years ago

I'm sorry, the stream is not compatible with VLC Media Player. I did manage to view it with QGroundControl - it's a ground station software for small UAVs.

hafeelgadgeon commented 2 years ago

I am using gstreamer tutorial for playing a rtsp streaming video in andorid using gst_parse_launch("playbin3") but there is a latency of around 2 seconds, Can u share me a code how to run this in gstreamer android gst-launch-1.0 -v udpsrc auto-multicast=true port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=JPEG, payload=(int)96" ! rtpjitterbuffer latency=0 ! decodebin ! videoconvert ! autovideosink when i removed the playbin inside gst_parse_launch() and added this i am getting errors.

mareksuma1985 commented 2 years ago

It's not that easy. Your pipeline may be ok but every plugin you use must be listed in Android.mk file, in GSTREAMER_PLUGINS variable. Check if all plugins you're trying to use are listed. For example: To be able to use openh264enc, you must include openh264. To be able to use udpsink, you must include udp or $(GSTREAMER_PLUGINS_NET) package, and so on. You can check what plugins each package contains in file plugins.mk.