Hello!
I hope you´re doing great.
I´m very very new in Gstreamer and I need to play a RTSP with h265 for Android mobile.
I donwload the examples to have a reference that can work and I found a couple of issues.
The examples 2,3,4,5 without any modification, generates an ANR while playing on Android. To fix that in the Android.mk I had to manually add the plugins like:
Also, when I try the rstp video I got: rtspsrc2: Could not open resource for reading and writing. This is after trying to change the tutorial 5.c with the gstreamer comand that i need: “rtspsrc location=rtsp://192.0.0.0”
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_CODECS)
with GSTREAMER_PLUGINS is listed at the end of the page. Please be aware this list is not updated, you may want to either read the plugins.mk in their prebuilt binary package, or trial-and-error.
I am not 100% sure the problem of playing the video, but maybe you want to check if permission to use the Internet is already in the AndroidManifest.xml file.
rtspsrc2: Could not open resource for reading and writing. The error shows there is no source to open. The way the tutorial of #3, 4 and 5 set up is to initialize the pipeline immediately at onCreate() function. You need to make sure the video at your location must be available first, even before you open the application, OR delay the gstreamer init() by adding user-interface interactions.