Skip to content

HLS m3u8 adaptive stream problem?

Hi,I compiled the latest vlc git version(2017-06-16) for android,but when i play the following m3u file,it failed. #EXTM3U #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=7483000,RESOLUTION=1920:1080,CODECS="avc1.42e00a,mp4a.40.2" hd1080/index.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=4224000,RESOLUTION=1280:720,CODECS="avc1.42e00a,mp4a.40.2" hd720/index.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=784000,RESOLUTION=640:360,CODECS="avc1.42e00a,mp4a.40.2" low640/index.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=432000,RESOLUTION=480:360,CODECS="avc1.42e00a,mp4a.40.2" low480/index.m3u8

vlc for windows play well.And the error log is,

01-01 08:45:41.690 20254-20254/? D/VLC: [a1790828/4f1e] core input: Creating an input for 'master.m3u8' 01-01 08:45:41.692 20254-20276/? D/VLC: [a1790828/4f34] core input: using timeshift granularity of 50 MiB 01-01 08:45:41.692 20254-20276/? D/VLC: [a1790828/4f34] core input: using default timeshift path 01-01 08:45:41.692 20254-20276/? D/VLC: [a1790828/4f34] core input: http://10.0.0.188:8081/vod/djstava/20170128_CCTV9_Special/master.m3u8' gives access http' demux any' path 10.0.0.188:8081/vod/djstava/20170128_CCTV9_Special/master.m3u8' 01-01 08:45:41.693 20254-20276/? D/VLC: [aec39368/4f34] core input source: creating demux: access='http' demux='any' location='10.0.0.188:8081/vod/djstava/20170128_CCTV9_Special/master.m3u8' file='(null)' 01-01 08:45:41.693 20254-20276/? D/VLC: [aec2b028/4f34] core demux: looking for access_demux module matching "http": 6 candidates 01-01 08:45:41.693 20254-20276/? D/VLC: [aec2b028/4f34] core demux: no access_demux modules matched 01-01 08:45:41.693 20254-20276/? D/VLC: [aec394a8/4f34] core stream: creating access: http://10.0.0.188:8081/vod/djstava/20170128_CCTV9_Special/master.m3u8 01-01 08:45:41.693 20254-20276/? D/VLC: [aec394a8/4f34] core stream: looking for access module matching "http": 20 candidates 01-01 08:45:41.693 20254-20276/? D/VLC: [aec394a8/4f34] connmgr stream: resolving 10.0.0.188 ... 01-01 08:45:41.693 20254-20276/? D/VLC: [aec394a8/4f34] connmgr stream: outgoing request: GET /vod/djstava/20170128_CCTV9_Special/master.m3u8 HTTP/1.1 Host: 10.0.0.188:8081 Accept: */* Accept-Language: en_US User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git Range: bytes=0- 01-01 08:45:41.707 20254-20276/? D/VLC: [aec394a8/4f34] connmgr stream: incoming response: HTTP/1.1 200 OK Connection: Keep-Alive Content-Length: 477 Content-Type: application/vnd.apple.mpegurl Server: SRS/2.0.234(ZhouGuowen) 01-01 08:45:41.707 20254-20276/? D/VLC: [aec394a8/4f34] core stream: using access module "access" 01-01 08:45:41.707 20254-20276/? D/VLC: [aec39548/4f34] core stream: looking for stream_filter module matching "prefetch,cache_block": 11 candidates 01-01 08:45:41.708 20254-20276/? D/VLC: [aec39548/4f34] prefetch stream: using 477 bytes buffer, 477 bytes read 01-01 08:45:41.708 20254-20276/? D/VLC: [aec39548/4f34] core stream: using stream_filter module "prefetch" 01-01 08:45:41.708 20254-20276/? D/VLC: [aec395e8/4f34] core stream: looking for stream_filter module matching "any": 11 candidates 01-01 08:45:41.709 20254-20277/? D/VLC: [aec39548/4f35] prefetch stream: end of stream 01-01 08:45:41.713 20254-20276/? D/VLC: [aec395e8/4f34] lua stream: Trying Lua scripts in /data/data/com.xugaoxiang.vlcdemo/app_vlc/.share/lua/playlist 01-01 08:45:41.713 20254-20276/? D/VLC: [aec395e8/4f34] lua stream: Trying Lua scripts in /data/app/com.xugaoxiang.vlcdemo-2/lib/arm/vlc/lua/playlist 01-01 08:45:41.713 20254-20276/? D/VLC: [aec395e8/4f34] lua stream: Trying Lua scripts in /data/app/com.xugaoxiang.vlcdemo-2/share/vlc/lua/playlist 01-01 08:45:41.713 20254-20276/? D/VLC: [aec395e8/4f34] core stream: no stream_filter modules matched 01-01 08:45:41.713 20254-20276/? D/VLC: [aec2b028/4f34] core stream_directory: looking for stream_directory module matching "any": 1 candidates 01-01 08:45:41.713 20254-20276/? D/VLC: [aec2b028/4f34] core stream_directory: no stream_directory modules matched 01-01 08:45:41.713 20254-20276/? D/VLC: [aec39368/4f34] core input source: attach of directory extractor failed 01-01 08:45:41.713 20254-20276/? D/VLC: [aec395e8/4f34] core stream: looking for stream_filter module matching "record": 11 candidates 01-01 08:45:41.713 20254-20276/? D/VLC: [aec395e8/4f34] core stream: using stream_filter module "record" 01-01 08:45:41.713 20254-20276/? D/VLC: [aec39368/4f34] core input source: creating demux: access='http' demux='any' location='10.0.0.188:8081/vod/djstava/20170128_CCTV9_Special/master.m3u8' file='(null)' 01-01 08:45:41.714 20254-20276/? D/VLC: [aec2b028/4f34] core demux: looking for demux module matching "any": 60 candidates 01-01 08:45:41.714 20254-20276/? E/VLC: [aec2b028/4f34] adaptive demux: Could not parse playlist 01-01 08:45:41.714 20254-20276/? E/VLC: [aec2b028/4f34] ts demux: cannot peek 01-01 08:45:41.714 20254-20276/? D/VLC: [aec2b028/4f34] mod demux: MOD validation failed (ext=) 01-01 08:45:41.714 20254-20276/? D/VLC: [aec2b028/4f34] m3u demux: found valid M3U playlist 01-01 08:45:41.714 20254-20276/? D/VLC: [aec2b028/4f34] core demux: using demux module "playlist" 01-01 08:45:41.714 20254-20276/? D/VLC: [aec3b308/4f34] core demux meta: looking for meta reader module matching "any": 2 candidates 01-01 08:45:41.715 20254-20277/? D/VLC: [aec394a8/4f35] connmgr stream: resolving 10.0.0.188 ... 01-01 08:45:41.716 20254-20277/? D/VLC: [aec394a8/4f35] connmgr stream: outgoing request: GET /vod/djstava/20170128_CCTV9_Special/master.m3u8 HTTP/1.1 Host: 10.0.0.188:8081 Accept: */* Accept-Language: en_US User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git Range: bytes=0- 01-01 08:45:41.719 20254-20276/? D/VLC: [aec3b308/4f34] lua demux meta: Trying Lua scripts in /data/data/com.xugaoxiang.vlcdemo/app_vlc/.share/lua/meta/reader 01-01 08:45:41.719 20254-20276/? D/VLC: [aec3b308/4f34] lua demux meta: Trying Lua scripts in /data/app/com.xugaoxiang.vlcdemo-2/lib/arm/vlc/lua/meta/reader 01-01 08:45:41.719 20254-20276/? D/VLC: [aec3b308/4f34] lua demux meta: Trying Lua scripts in /data/app/com.xugaoxiang.vlcdemo-2/share/vlc/lua/meta/reader 01-01 08:45:41.719 20254-20276/? D/VLC: [aec3b308/4f34] core demux meta: no meta reader modules matched 01-01 08:45:41.719 20254-20276/? D/VLC: [a1790828/4f34] core input: http://10.0.0.188:8081/vod/djstava/20170128_CCTV9_Special/master.m3u8' successfully opened 01-01 08:45:41.729 20254-20277/? D/VLC: [aec394a8/4f35] connmgr stream: incoming response: HTTP/1.1 200 OK Connection: Keep-Alive Content-Length: 477 Content-Type: application/vnd.apple.mpegurl Server: SRS/2.0.234(ZhouGuowen) 01-01 08:45:41.729 20254-20277/? D/VLC: [aec39548/4f35] prefetch stream: end of stream 01-01 08:45:41.730 20254-20276/? D/VLC: [aec2b028/4f34] core demux: attempt to destroy nonexistent variable "m3u-extvlcopt" 01-01 08:45:41.730 20254-20276/? D/VLC: [a1790828/4f34] core input: EOF reached 01-01 08:45:41.730 20254-20276/? D/VLC: [aec2b028/4f34] core demux: removing module "playlist" 01-01 08:45:41.730 20254-20276/? D/VLC: [aec395e8/4f34] core stream: removing module "record" 01-01 08:45:41.731 20254-20276/? D/VLC: [aec39548/4f34] core stream: removing module "prefetch" 01-01 08:45:41.731 20254-20276/? D/VLC: [aec394a8/4f34] core stream: removing module "access" 01-01 08:45:41.731 20254-20276/? W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[16,tid=20276,Native,Thread*=0xaec43400,peer=0x12c4f2e0,"VlcObject"] 01-01 08:45:41.883 20254-20254/? I/MainActivity: onEvent: 1.17549435E-36 01-01 08:45:41.883 20254-20254/? I/MainActivity: 缓冲: 0.0% 01-01 08:45:41.883 20254-20254/? I/MainActivity: onEvent: playing... 01-01 08:45:41.883 20254-20254/? I/MainActivity: onEvent: stopped...`

Thanks.

Edited by Xu Gaoxiang