VLC detects wrong codec
Hello,
currently trying to setup an ampache, so I would like to use the streaming-features of both to play my music, but VLC is not detecting the correct codec. I'm using OGG but it looks like VLC is not reading the answer-headers, instead it's relying on file-name/url?
Here an example:
cvlc --verbose 2 'http://192.168.101.3/ampache/play/index.php?ssid=2d3df4549fe148ca387227baa6b8195c&type=song&oid=2215&uid=2&name=/Samu.l%20-%20Have%20It%20Like%20That%20%28Original%20Mix%29.mp3'
[0x7fc7b4001058] access_http access debug: protocol 'HTTP' answer code 200
[0x7fc7b4001058] access_http access debug: Server: Apache/2.2.22 (Debian)
[0x7fc7b4001058] access_http access debug: Connection: close
[0x7fc7b4001058] access_http access debug: Transfer-Encoding: chunked
[0x7fc7b4001058] access_http access debug: Content-Type: application/ogg
[0x7fc7b4001058] main access debug: using access module "access_http"
[0x7fc7b4003928] main stream debug: Using stream method for AStream*
[0x7fc7b4003928] main stream debug: starting pre-buffering
[0x7fc7b4003928] main stream debug: received first data after 0 ms
[0x7fc7b4003928] main stream debug: pre-buffering done 1022 bytes in 0s - 99804 KiB/s
[0x7fc7b4c03d18] main stream debug: looking for stream_filter module matching "any": 9 candidates
[0x7fc7b4c03d18] main stream debug: no stream_filter modules matched
[0x7fc7b4c03d18] main stream debug: looking for stream_filter module matching "record": 9 candidates
[0x7fc7b4c03d18] main stream debug: using stream_filter module "record"
[0x7fc7bc0009b8] main input debug: creating demux: access='http' demux='' location='192.168.101.3/ampache/play/index.php?ssid=2d3df4549fe148ca387227baa6b8195c&type=song&oid=2215&uid=2&name=/Samu.l%20-%20Have%20It%20Like%20That%20%28Original%20Mix%29.mp3' file='(null)'
[0x7fc7b4c04018] main demux debug: looking for demux module matching "any": 63 candidates
[0x7fc7b4c04018] es demux debug: detected format mpga
[0x7fc7b4c06448] main demux packetizer debug: looking for packetizer module matching "any": 21 candidates
[0x7fc7b4c06448] main demux packetizer debug: using packetizer module "mpeg_audio"
[0x7fc7b4c06448] mpeg_audio demux packetizer debug: emulated startcode (no startcode on following frame)
[0x7fc7b4c06448] mpeg_audio demux packetizer debug: emulated startcode
[0x7fc7b4c06448] mpeg_audio demux packetizer debug: emulated startcode
VLC detected an MPGA-stream, but it's an OGG. If I just add some garbage to the end of the URL f.e. "&vlc=rulez", it's working like a charm.
cvlc --verbose 2 'http://192.168.101.3/ampache/play/index.php?ssid=2d3df4549fe148ca387227baa6b8195c&type=song&oid=2215&uid=2&name=/Samu.l%20-%20Have%20It%20Like%20That%20%28Original%20Mix%29.mp3&vlc=rulez'
[0x7f24800009b8] main input debug: creating demux: access='http' demux='' location='192.168.101.3/ampache/play/index.php?ssid=2d3df4549fe148ca387227baa6b8195c&type=song&oid=2215&uid=2&name=/Samu.l%20-%20Have%20It%20Like%20That%20%28Original%20Mix%29.mp3&vlc=rulez' file='(null)'
[0x7f2484c04008] main demux debug: looking for demux module matching "any": 63 candidates
[0x7f2484c04008] main demux debug: using demux module "ogg"
[0x7f2484c043e8] main demux meta debug: looking for meta reader module matching "any": 2 candidates
[0x7f2484c043e8] lua demux meta debug: Trying Lua scripts in /home/fabian/.local/share/vlc/lua/meta/reader
[0x7f2484c043e8] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x7f2484c043e8] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x7f2484c043e8] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x7f2484c043e8] main demux meta debug: no meta reader modules matched
[0x7f24800009b8] main input debug: `http://192.168.101.3/ampache/play/index.php?ssid=2d3df4549fe148ca387227baa6b8195c&type=song&oid=2215&uid=2&name=/Samu.l%20-%20Have%20It%20Like%20That%20%28Original%20Mix%29.mp3&vlc=rulez' successfully opened
[0x7f2484c04008] ogg demux debug: File length is 0 bytes
[0x7f2484c04008] ogg demux debug: found vorbis header
VLC media player 2.1.2 Rincewind (revision 2.1.2-0-ga4c4876)
VLC-Version 2.1.2 Rincewind (2.1.2-0-ga4c4876)
Kompiliert von nobody auf (Dec 10 2013 16:47:37)
Kompiler: gcc version 4.8.2 (GCC)
Thanks a lot,
Fabian