RTSP with Codec H264 streaming have issue
Hello
I tried to build with VLC for android build and follow the steps from https://wiki.videolan.org/AndroidCompile/. Android version apk build successfully.
But streaming url which is working fine in Windows/ ubuntu's vlc app.
But for Android version its not streaming.it give error from Native
Log which is related to native
core input: Creating an input for 'rtsp://MY_IP_ADDRESS:557/ch05_sub.264'
core input: using timeshift granularity of 50 MiB
core input: using default timeshift path
core input: `rtsp://MY_IP_ADDRESS:557/ch05_sub.264' gives access `rtsp' demux `' path `MY_IP_ADDRESS:557/ch05_sub.264'
core input source: specified demux: any
core input source: creating demux: access='rtsp' demux='any' location='MY_IP_ADDRESS:557/ch05_sub.264' file='(null)'
live555 demux: version 2016.07.19
live555 demux: connection timeout
live555 demux: Failed to connect with rtsp://MY_IP_ADDRESS:557:554/ch05_sub.264
core demux: no access_demux modules matched
core stream: creating access: rtsp://MY_IP_ADDRESS:557/ch05_sub.264
core stream: looking for access module matching "rtsp": 23 candidates
core stream: net: connecting to MY_IP_ADDRESS:557 port 554
core stream: cannot resolve MY_IP_ADDRESS:557 port 554 : No address associated with hostname
access_realrtsp stream: cannot connect to MY_IP_ADDRESS:557:554
access_realrtsp stream: could not connect to: MY_IP_ADDRESS:557/ch05_sub.264
core stream: no access modules matched
core input source: cannot access rtsp://MY_IP_ADDRESS:557/ch05_sub.264
Warning: invalid next index, aborted !
core input: Destroying the input for 'rtsp://MY_IP_ADDRESS:557/ch05_sub.264'
core audio output: removing module "android_audiotrack"
_Full LOG From app_
09-17 15:29:04.420 31729-31729/org.videolan.vlc.debug V/VLC/PlaybackService: Creating on-the-fly Media object for rtsp://MY_IP_ADDRESS:557/ch05_sub.264
09-17 15:29:04.420 31729-31729/org.videolan.vlc.debug V/VLC/PlaybackService: Loading position 0 in [org.videolan.vlc.media.MediaWrapper@24b9a5b]
09-17 15:29:04.428 31729-31729/org.videolan.vlc.debug D/VLC: [a96a8b78/7bf1] core input: Creating an input for 'rtsp://MY_IP_ADDRESS:557/ch05_sub.264'
09-17 15:29:04.433 31729-32102/org.videolan.vlc.debug D/VLC: [a96a8b78/7d66] core input: using timeshift granularity of 50 MiB
09-17 15:29:04.434 31729-32102/org.videolan.vlc.debug D/VLC: [a96a8b78/7d66] core input: using default timeshift path
09-17 15:29:04.435 31729-32102/org.videolan.vlc.debug D/VLC: [a96a8b78/7d66] core input: `rtsp://MY_IP_ADDRESS:557/ch05_sub.264' gives access `rtsp' demux `' path `MY_IP_ADDRESS:557/ch05_sub.264'
09-17 15:29:04.435 31729-32102/org.videolan.vlc.debug D/VLC: [9d102b68/7d66] core input source: specified demux: any
09-17 15:29:04.435 31729-32102/org.videolan.vlc.debug D/VLC: [9d102b68/7d66] core input source: creating demux: access='rtsp' demux='any' location='MY_IP_ADDRESS:557/ch05_sub.264' file='(null)'
09-17 15:29:04.435 31729-32102/org.videolan.vlc.debug D/VLC: [9d26c2a8/7d66] core demux: looking for access_demux module matching "rtsp": 6 candidates
09-17 15:29:04.436 31729-32102/org.videolan.vlc.debug D/VLC: [9d26c2a8/7d66] live555 demux: version 2016.07.19
09-17 15:29:04.461 31729-31729/org.videolan.vlc.debug E/BitmapFactory: Unable to decode stream: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
09-17 15:29:04.474 31729-31729/org.videolan.vlc.debug E/BitmapFactory: Unable to decode stream: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
09-17 15:29:04.485 31729-31794/org.videolan.vlc.debug E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa96a8a10
09-17 15:29:04.495 31729-31729/org.videolan.vlc.debug I/VLC/PlaybackService: Media.Event.MetaChanged: 12
09-17 15:29:04.495 31729-31729/org.videolan.vlc.debug I/VLC/PlaybackService: Media.Event.MetaChanged: 12
09-17 15:29:09.519 31729-32102/org.videolan.vlc.debug D/VLC: [9d26c2a8/7d66] live555 demux: connection timeout
09-17 15:29:09.519 31729-32102/org.videolan.vlc.debug E/VLC: [9d26c2a8/7d66] live555 demux: Failed to connect with rtsp://MY_IP_ADDRESS:557:554/ch05_sub.264
09-17 15:29:09.524 31729-32102/org.videolan.vlc.debug D/VLC: [9d26c2a8/7d66] core demux: no access_demux modules matched
09-17 15:29:09.524 31729-32102/org.videolan.vlc.debug D/VLC: [9d102ca8/7d66] core stream: creating access: rtsp://MY_IP_ADDRESS:557/ch05_sub.264
09-17 15:29:09.525 31729-32102/org.videolan.vlc.debug D/VLC: [9d102ca8/7d66] core stream: looking for access module matching "rtsp": 23 candidates
09-17 15:29:09.525 31729-32102/org.videolan.vlc.debug D/VLC: [9d102ca8/7d66] core stream: net: connecting to MY_IP_ADDRESS:557 port 554
09-17 15:29:10.270 31729-32102/org.videolan.vlc.debug E/VLC: [9d102ca8/7d66] core stream: cannot resolve MY_IP_ADDRESS:557 port 554 : No address associated with hostname
09-17 15:29:10.270 31729-32102/org.videolan.vlc.debug E/VLC: [9d102ca8/7d66] access_realrtsp stream: cannot connect to MY_IP_ADDRESS:557:554
09-17 15:29:10.271 31729-32102/org.videolan.vlc.debug D/VLC: [9d102ca8/7d66] access_realrtsp stream: could not connect to: MY_IP_ADDRESS:557/ch05_sub.264
09-17 15:29:10.271 31729-32102/org.videolan.vlc.debug D/VLC: [9d102ca8/7d66] core stream: no access modules matched
09-17 15:29:10.271 31729-31729/org.videolan.vlc.debug W/VLC/VLCApplication: ErrorMessage VLC could not connect to "MY_IP_ADDRESS:557:554".
09-17 15:29:10.271 31729-32102/org.videolan.vlc.debug E/VLC: [9d102b68/7d66] core input source: cannot access rtsp://MY_IP_ADDRESS:557/ch05_sub.264
09-17 15:29:10.271 31729-31729/org.videolan.vlc.debug W/VLC/VLCApplication: ErrorMessage VLC is unable to open the MRL 'rtsp://MY_IP_ADDRESS:557/ch05_sub.264'. Check the log for details.
09-17 15:29:10.275 31729-31729/org.videolan.vlc.debug E/BitmapFactory: Unable to decode stream: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
09-17 15:29:10.276 31729-32102/org.videolan.vlc.debug W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[15,tid=32102,Native,Thread*=0x9d263f00,peer=0x131580a0,"VlcObject"]
09-17 15:29:10.281 31729-31729/org.videolan.vlc.debug E/BitmapFactory: Unable to decode stream: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
09-17 15:29:10.293 31729-31729/org.videolan.vlc.debug E/BitmapFactory: Unable to decode stream: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
09-17 15:29:10.297 31729-31729/org.videolan.vlc.debug E/BitmapFactory: Unable to decode stream: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
09-17 15:29:10.299 31729-31729/org.videolan.vlc.debug W/VLC/PlaybackService: Warning: invalid next index, aborted !
09-17 15:29:10.301 31729-31729/org.videolan.vlc.debug D/VLC: [a96a8b78/7bf1] core input: Destroying the input for 'rtsp://MY_IP_ADDRESS:557/ch05_sub.264'
09-17 15:29:10.301 31729-31729/org.videolan.vlc.debug D/VLC: [ae3b5d68/7bf1] core audio output: removing module "android_audiotrack"
09-17 15:29:10.448 31729-31794/org.videolan.vlc.debug V/RenderScript: 0x9d269000 Launching thread(s), CPUs 4
I tried by changing live555 version also while compiling , but same issue with after generating apk.
So is there anything missing from my side related to any internal library.
Please guide or show way to resolve this issue.Your help will be great for me.
I've reported issue on vlc-android#145 (closed) which may help you to give guidance and help me.
VLC
Thanks.