Cannot view webcam h264 stream on android
When trying to connect to an IP web cam, android VLC connects then stops playing the stream, although it appears the stream is still being received as indicated by the wifi activity indicator. No error is ever shown (within the 30 seconds I waited) The same url works on iOS devices and on the PC version. Android version: 2.5.13
Log capture:
12-23 23:24:25.221 D/OpenGLRenderer( 6025): endAllActiveAnimators on 0x715cf49400 (RippleDrawable) with handle 0x715cedc480
12-23 23:24:27.575 I/TextInputLayout( 6025): EditText added is not a TextInputEditText. Please switch to using that class instead.
12-23 23:24:28.661 V/VLC/PlaybackService( 6025): Loading position 0 in [org.videolan.medialibrary.media.MediaWrapper@670f9f2]
12-23 23:24:28.716 D/VLC ( 6025): [0000007157cf0e90/1789] core audio output: restart requested (3)
12-23 23:24:28.716 D/VLC ( 6025): [0000007157cf0e90/1789] android_audiotrack audio output: selected device: pcm
12-23 23:24:28.716 D/VLC ( 6025): [000000715cec3090/1789] core input: Creating an input for 'rtsp://192.168.1.60:554/h264'
12-23 23:24:28.719 D/VLC ( 6025): [000000715cec3090/19eb] core input: using timeshift granularity of 50 MiB
12-23 23:24:28.719 D/VLC ( 6025): [000000715cec3090/19eb] core input: using default timeshift path
12-23 23:24:28.720 D/VLC ( 6025): [000000715cec3090/19eb] core input: `rtsp://192.168.1.60:554/h264?username=view&password=view' gives access `rtsp' demux `any' path `192.168.1.60:554/h264?username=view&password=view'
12-23 23:24:28.720 D/VLC ( 6025): [00000071608e4b90/19eb] core input source: creating demux: access='rtsp' demux='any' location='192.168.1.60:554/h264?username=view&password=view' file='(null)'
12-23 23:24:28.720 D/VLC ( 6025): [00000071608e4f50/19eb] core demux: looking for access_demux module matching "rtsp": 6 candidates
12-23 23:24:28.721 D/VLC ( 6025): [00000071608e4f50/19eb] live555 demux: version 2016.11.28
12-23 23:24:28.727 I/VLC/medialibrary( 6025): ../src/MediaLibrary.cpp:332 virtual MediaPtr medialibrary::MediaLibrary::media(const std::string &) const Fetching media from mrl: rtsp://192.168.1.60:554/h264?username=view&password=view
12-23 23:24:28.728 I/VLC/medialibrary( 6025): ../src/MediaLibrary.cpp:336 virtual MediaPtr medialibrary::MediaLibrary::media(const std::string &) const Found external media: rtsp://192.168.1.60:554/h264?username=view&password=view
12-23 23:24:28.778 I/VLC/PlaybackService( 6025): Media.Event.MetaChanged: 12
12-23 23:24:28.781 I/VLC/PlaybackService( 6025): Media.Event.MetaChanged: 12
12-23 23:24:28.873 D/VLC ( 6025): [00000071608e4f50/19eb] live555 demux: RTP subsession 'video/H264'
12-23 23:24:28.886 D/VLC ( 6025): [000000715cec3090/19eb] core input: selecting program id=0
12-23 23:24:28.898 D/VLC ( 6025): [00000071608e4f50/19eb] live555 demux: setup start: 0.000000 stop:0.000000
12-23 23:24:28.916 D/VLC ( 6025): [00000071608e4f50/19eb] live555 demux: We have a timeout of 60 seconds
12-23 23:24:28.916 D/VLC ( 6025): [00000071608e4f50/19eb] live555 demux: play start: 0.000000 stop:0.000000
12-23 23:24:28.917 D/VLC ( 6025): [00000071608e4f50/19eb] core demux: using access_demux module "live555"
12-23 23:24:28.917 D/VLC ( 6025): [000000715cec3090/19eb] core input: video is disabled, not selecting ES 0x0
12-23 23:24:28.917 D/VLC ( 6025): [000000715d1e65b0/19eb] core demux meta: looking for meta reader module matching "any": 2 candidates
12-23 23:24:28.930 D/VLC ( 6025): [000000715d1e65b0/19eb] lua demux meta: Trying Lua scripts in /data/user/0/org.videolan.vlc/app_vlc/.share/lua/meta/reader
12-23 23:24:28.934 D/VLC ( 6025): [000000715d1e65b0/19eb] lua demux meta: Trying Lua playlist script /data/user/0/org.videolan.vlc/app_vlc/.share/lua/meta/reader/filename.lua
12-23 23:24:28.946 D/VLC ( 6025): [000000715d1e65b0/19eb] lua demux meta: Trying Lua scripts in /system/usr/share/lua/meta/reader
12-23 23:24:28.948 D/VLC ( 6025): [000000715d1e65b0/19eb] core demux meta: no meta reader modules matched
12-23 23:24:28.948 D/VLC ( 6025): [000000715cec3090/19eb] core input: `rtsp://192.168.1.60:554/h264?username=view&password=view' successfully opened
12-23 23:24:28.989 V/MediaRouter( 6025): Adding route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=null types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
12-23 23:24:28.998 V/MediaRouter( 6025): Updating audio routes: AudioRoutesInfo{ type=SPEAKER }
12-23 23:24:29.006 V/MediaRouter( 6025): Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=null types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
12-23 23:24:29.006 D/VLC/VideoPlayerActivity( 6025): MediaRouter information : android.media.MediaRouter@f51d54a
12-23 23:24:29.007 I/VLC/VideoPlayerActivity( 6025): No secondary display detected
12-23 23:24:29.124 I/VLC/PlaybackService( 6025): Media.Event.ParsedChanged
12-23 23:24:29.125 I/VLC/medialibrary( 6025): ../src/MediaLibrary.cpp:332 virtual MediaPtr medialibrary::MediaLibrary::media(const std::string &) const Fetching media from mrl: rtsp://192.168.1.60:554/h264?username=view&password=view
12-23 23:24:29.125 I/VLC/medialibrary( 6025): ../src/MediaLibrary.cpp:336 virtual MediaPtr medialibrary::MediaLibrary::media(const std::string &) const Found external media: rtsp://192.168.1.60:554/h264?username=view&password=view
12-23 23:24:29.127 I/VLC/PlaybackService( 6025): MediaPlayer.Event.Playing
12-23 23:24:29.135 I/VLC/medialibrary( 6025): ../src/MediaLibrary.cpp:332 virtual MediaPtr medialibrary::MediaLibrary::media(const std::string &) const Fetching media from mrl: rtsp://192.168.1.60:554/h264?username=view&password=view
12-23 23:24:29.136 I/VLC/medialibrary( 6025): ../src/MediaLibrary.cpp:336 virtual MediaPtr medialibrary::MediaLibrary::media(const std::string &) const Found external media: rtsp://192.168.1.60:554/h264?username=view&password=view
12-23 23:24:29.214 D/VLC/VideoPlayerActivity( 6025): Continuing playback from PlaybackService at index 0
12-23 23:24:29.256 D/VLC ( 6025): [0000007157c40990/19eb] core packetizer: looking for packetizer module matching "any": 24 candidates
12-23 23:24:29.261 D/VLC ( 6025): [0000007157c40990/19eb] h264 packetizer: found NAL_SPS (sps_id=0)
12-23 23:24:29.261 D/VLC ( 6025): [0000007157c40990/19eb] h264 packetizer: found NAL_PPS (pps_id=0 sps_id=0)
12-23 23:24:29.261 D/VLC ( 6025): [0000007157c40990/19eb] core packetizer: using packetizer module "h264"
12-23 23:24:29.261 D/VLC ( 6025): [0000007157c3df90/19eb] core decoder: looking for video decoder module matching "all": 11 candidates
12-23 23:24:29.264 D/VLC ( 6025): [0000007157c3df90/19eb] avcodec decoder: using ffmpeg Lavc57.100.104
12-23 23:24:29.266 D/VLC ( 6025): [0000007157c3df90/19eb] avcodec decoder: CPU flags: 0x00000068
12-23 23:24:29.301 D/VLC ( 6025): [0000007157c3df90/19eb] avcodec decoder: allowing 6 thread(s) for decoding
12-23 23:24:29.311 D/VLC ( 6025): [0000007157c3df90/19eb] avcodec decoder: codec (h264) started
12-23 23:24:29.311 D/VLC ( 6025): [0000007157c3df90/19eb] avcodec decoder: using frame thread mode with 6 threads
12-23 23:24:29.312 D/VLC ( 6025): [0000007157c3df90/19eb] core decoder: using video decoder module "avcodec"
12-23 23:24:29.328 E/VLC ( 6025): [00000071608e4f50/19eb] live555 demux: RTSP PLAY failed 404 Stream Not Found
12-23 23:24:29.328 D/VLC ( 6025): [0000007157c3df90/19eb] core decoder: killing decoder fourcc `h264'
12-23 23:24:29.328 D/VLC ( 6025): [0000007157c3df90/19eb] core decoder: removing module "avcodec"
12-23 23:24:29.332 D/VLC ( 6025): [0000007157c40990/19eb] core packetizer: removing module "h264"
12-23 23:24:29.633 D/VLC ( 6025): [000000715cec3090/19eb] core input: EOF reached
12-23 23:24:29.633 D/VLC ( 6025): [00000071608e4f50/19eb] core demux: removing module "live555"
12-23 23:24:29.633 I/VLC/medialibrary( 6025): ../src/MediaLibrary.cpp:332 virtual MediaPtr medialibrary::MediaLibrary::media(const std::string &) const Fetching media from mrl: rtsp://192.168.1.60:554/h264?username=view&password=view
12-23 23:24:29.634 I/VLC/medialibrary( 6025): ../src/MediaLibrary.cpp:336 virtual MediaPtr medialibrary::MediaLibrary::media(const std::string &) const Found external media: rtsp://192.168.1.60:554/h264?username=view&password=view
12-23 23:24:29.636 D/VLC ( 6025): [000000715cec3090/19eb] core input: Program doesn't contain anymore ES
12-23 23:24:29.685 W/VLC/PlaybackService( 6025): Warning: invalid next index, aborted !
12-23 23:24:29.685 D/VLC ( 6025): [000000715ce61890/1789] core generic: creating audio output
12-23 23:24:29.685 D/VLC ( 6025): [000000716169e190/1789] core audio output: looking for audio output module matching "android_audiotrack": 4 candidates
12-23 23:24:29.685 D/VLC ( 6025): [000000716169e190/1789] core audio output: using audio output module "android_audiotrack"
12-23 23:24:29.686 D/VLC ( 6025): [000000715ce61890/1789] core generic: keeping audio output
12-23 23:24:29.688 D/VLC ( 6025): [0000007157cf0e90/17bf] core audio output: removing module "android_audiotrack"
12-23 23:24:29.733 D/VLC ( 6025): [000000715ce61c10/1789] core generic: creating audio output
12-23 23:24:29.734 D/VLC ( 6025): [0000007160303690/1789] core audio output: looking for audio output module matching "android_audiotrack": 4 candidates
12-23 23:24:29.734 D/VLC ( 6025): [0000007160303690/1789] core audio output: using audio output module "android_audiotrack"
12-23 23:24:29.734 D/VLC ( 6025): [000000715ce61c10/1789] core generic: keeping audio output
12-23 23:24:29.735 D/VLC ( 6025): [000000716169e190/1799] core audio output: removing module "android_audiotrack"