Page 1 of 1

Can't open stream

Posted: 20 Mar 2012 22:25
by cloak33
Hey everyone. I've got a program here that serves up internet music streams. (Sirius) When I select Open Network Stream and paste this in http://127.0.0.1:51710/sirius?channel=34&format=asx I get the following output.

Code: Select all

main debug: adding item `http://127.0.0.1:51710/sirius?channel=34&format=asx' ( http://127.0.0.1:51710/sirius?channel=34&format=asx ) main debug: rebuilding array of current - root Playlist main debug: rebuild done - 1 items, index -1 main debug: processing request item: http://127.0.0.1:51710/sirius?channel=34&format=asx, node: Playlist, skip: 0 main debug: resyncing on http://127.0.0.1:51710/sirius?channel=34&format=asx main debug: http://127.0.0.1:51710/sirius?channel=34&format=asx is at 0 main debug: starting playback of the new playlist item main debug: creating new input thread main debug: Creating an input for 'http://127.0.0.1:51710/sirius?channel=34&format=asx' qt4 debug: Adding a new MRL to recent ones: http://127.0.0.1:51710/sirius?channel=34&format=asx main debug: using timeshift granularity of 50 MiB, in path 'C:\Users\XXX\AppData\Local\Temp' main debug: `http://127.0.0.1:51710/sirius?channel=34&format=asx' gives access `http' demux `' path `127.0.0.1:51710/sirius?channel=34&format=asx' main debug: creating demux: access='http' demux='' location='127.0.0.1:51710/sirius?channel=34&format=asx' file='\\127.0.0.1:51710\sirius?channel=34&format=asx' main debug: looking for access_demux module: 0 candidates main debug: no access_demux module matched "http" main debug: TIMER module_need() : 0.140 ms - Total 0.140 ms / 1 intvls (Avg 0.140 ms) main debug: creating access 'http' location='127.0.0.1:51710/sirius?channel=34&format=asx', path='\\127.0.0.1:51710\sirius?channel=34&format=asx' main debug: looking for access module: 2 candidates access_http debug: HTTP proxy disabled (MSIE) access_http debug: http: server='127.0.0.1' port=51710 file='/sirius?channel=34&format=asx' main debug: net: connecting to 127.0.0.1 port 51710 qt4 debug: IM: Setting an input main debug: connection succeeded (socket = 984) main debug: meta ok for (null), need to fetch art main debug: looking for meta fetcher module: 1 candidate lua debug: Trying Lua scripts in C:\Users\XXX\AppData\Roaming\vlc\lua\meta\fetcher lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac main debug: using meta fetcher module "lua" main debug: TIMER module_need() : 1.104 ms - Total 1.104 ms / 1 intvls (Avg 1.104 ms) main debug: removing module "lua" main debug: searching art for http://127.0.0.1:51710/sirius?channel=34&format=asx main debug: looking for art finder module: 2 candidates lua debug: Trying Lua scripts in C:\Users\XXX\AppData\Roaming\vlc\lua\meta\art lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac main debug: no art finder module matching "any" could be loaded main debug: TIMER module_need() : 2.406 ms - Total 2.406 ms / 1 intvls (Avg 2.406 ms) main debug: art not found for http://127.0.0.1:51710/sirius?channel=34&format=asx access_http debug: protocol 'HTTP' answer code 200 access_http debug: Pragma: no-cache access_http debug: Connection: keep-alive access_http debug: this frame size=544 access_http debug: Content-Type: video/x-ms-asf access_http debug: Server: main debug: using access module "access_http" main debug: TIMER module_need() : 389.556 ms - Total 389.556 ms / 1 intvls (Avg 389.556 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 0 ms main debug: pre-buffering done 544 bytes in 0s - 26562 KiB/s main debug: looking for stream_filter module: 4 candidates main debug: no stream_filter module matching "any" could be loaded main debug: TIMER module_need() : 0.144 ms - Total 0.144 ms / 1 intvls (Avg 0.144 ms) main debug: looking for stream_filter module: 1 candidate main debug: using stream_filter module "stream_filter_record" main debug: TIMER module_need() : 0.072 ms - Total 0.072 ms / 1 intvls (Avg 0.072 ms) main debug: creating demux: access='http' demux='' location='127.0.0.1:51710/sirius?channel=34&format=asx' file='\\127.0.0.1:51710\sirius?channel=34&format=asx' main debug: looking for demux module: 55 candidates playlist debug: found valid ASX playlist main debug: using demux module "playlist" main debug: TIMER module_need() : 0.150 ms - Total 0.150 ms / 1 intvls (Avg 0.150 ms) main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Users\XXX\AppData\Roaming\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 1.094 ms - Total 1.094 ms / 1 intvls (Avg 1.094 ms) main debug: `http://127.0.0.1:51710/sirius?channel=34&format=asx' successfully opened main info: stopping playback main debug: deleting item `http://127.0.0.1:51710/sirius?channel=34&format=asx' main debug: EOF reached main debug: removing module "playlist" main debug: removing module "stream_filter_record" main debug: removing module "access_http" main debug: meta ok for Sirius 34 - Lithium, need to fetch art main debug: incoming request - stopping current input main debug: dead input main debug: looking for meta fetcher module: 1 candidate lua debug: Trying Lua scripts in C:\Users\XXX\AppData\Roaming\vlc\lua\meta\fetcher lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac main debug: using meta fetcher module "lua" main debug: TIMER module_need() : 0.972 ms - Total 0.972 ms / 1 intvls (Avg 0.972 ms) main debug: removing module "lua" main debug: searching art for Sirius 34 - Lithium main debug: looking for art finder module: 2 candidates lua debug: Trying Lua scripts in C:\Users\XXX\AppData\Roaming\vlc\lua\meta\art lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac main debug: processing request item: 1 Sirius 34 - Lithium, node: Playlist, skip: 0 main debug: rebuilding array of current - root Playlist main debug: rebuild done - 1 items, index 0 main debug: starting playback of the new playlist item main debug: creating new input thread main debug: Creating an input for '1 Sirius 34 - Lithium' lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac main debug: no art finder module matching "any" could be loaded main debug: TIMER module_need() : 4.053 ms - Total 4.053 ms / 1 intvls (Avg 4.053 ms) main debug: art not found for 1 Sirius 34 - Lithium main debug: using timeshift granularity of 50 MiB, in path 'C:\Users\XXX\AppData\Local\Temp' main debug: looking for access_demux module: 0 candidates main debug: no access_demux module matched "http" main debug: TIMER module_need() : 0.127 ms - Total 0.127 ms / 1 intvls (Avg 0.127 ms) main debug: looking for access module: 2 candidates access_http debug: HTTP proxy disabled (MSIE) qt4 debug: IM: Deleting the input main debug: TIMER input launching for 'http://127.0.0.1:51710/sirius?channel=34&format=asx' : 392.189 ms - Total 392.189 ms / 1 intvls (Avg 392.189 ms) qt4 debug: IM: Setting an input main debug: connection succeeded (socket = 1556) access_http debug: protocol 'HTTP' answer code 200 access_http debug: Content-Type: video/x-ms-asf access_http debug: Server: Cougar/9.5.6001.18223 access_http debug: this frame size=796 access_http debug: Pragma: no-cache, xResetStrm=1 access_http debug: Connection: close main debug: using access module "access_http" main debug: TIMER module_need() : 523.999 ms - Total 523.999 ms / 1 intvls (Avg 523.999 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 0 ms main debug: pre-buffering done 796 bytes in 0s - 25075 KiB/s main debug: looking for stream_filter module: 4 candidates main debug: no stream_filter module matching "any" could be loaded main debug: TIMER module_need() : 0.141 ms - Total 0.141 ms / 1 intvls (Avg 0.141 ms) main debug: looking for stream_filter module: 1 candidate main debug: using stream_filter module "stream_filter_record" main debug: TIMER module_need() : 0.071 ms - Total 0.071 ms / 1 intvls (Avg 0.071 ms) main debug: looking for demux module: 55 candidates playlist debug: found valid ASX playlist main debug: using demux module "playlist" main debug: TIMER module_need() : 0.156 ms - Total 0.156 ms / 1 intvls (Avg 0.156 ms) main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Users\XXX\AppData\Roaming\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 0.954 ms - Total 0.954 ms / 1 intvls (Avg 0.954 ms) main info: stopping playback main debug: deleting item `1 Sirius 34 - Lithium' main debug: EOF reached main debug: removing module "playlist" main debug: removing module "stream_filter_record" main debug: removing module "access_http" main debug: incoming request - stopping current input main debug: dead input qt4 debug: IM: Deleting the input main debug: TIMER input launching for '1 Sirius 34 - Lithium' : 530.089 ms - Total 530.089 ms / 1 intvls (Avg 530.089 ms)
I notice that towards the end it says it successfully opened the stream but then immediately stops it. A little further down it says its Deleting the Input. Any idea why this isn't working? When I try the exact same URL in Windows Media Player it opens up fine.

Thanks all.

P.S. I removed references from the code containing the actual stream URL as I think it may have my password in there.

Re: Can't open stream

Posted: 21 Mar 2012 17:10
by cloak33
I have to imagine I'm missing something simple since it works in WMP.

Re: Can't open stream

Posted: 07 Apr 2012 03:00
by str3tmonk
main debug: `http://127.0.0.1:51710/sirius?channel=34&format=asx' successfully opened
main info: stopping playback
main debug: deleting item `http://127.0.0.1:51710/sirius?channel=34&format=asx'
main debug: EOF reached
I saw that End-Of-File in the log, meaning for some reason the stream is telling VLC to stop playing. Try adding "http-caching=5000" to the command line (for more info, see VLC Man page). That way you can give VLC some time to buffer the stream before getting down and dirty.