Hi! 2011/7/31 okay_awright <[email protected]>: > I'm trying to get distant files to be played by request.dynamic(), via > http, but it appears the auto-guessing file format method of the decoder > is solely based on file extensions. And that's a problem, because, as > you can see in the logs below, my files are not identified as genuine > audio files. The server correctly gives the right mime type, and the > downloaded files are proper MP3s. Is there any workaround for that? > Should I play with add_metadata_resolver() in some way? > > 2011/07/31 15:03:04 [lang:3] play > 'http://localhost:8084/ws/http/streamer/track/down?c=channel1&k=0215681688&i=02bb98fd866346ba9db0b1cec7707259' > 2011/07/31 15:03:04 [protocols.external:4] Executing /usr/bin/wget > "http://localhost:8084/ws/http/streamer/track/down?c=channel1&k=0215681688&i=02bb98fd866346ba9db0b1cec7707259" > "/tmp/liqacef9e.osb" > 2011/07/31 15:03:04 [protocols.external:4] Download process finished (ok) > 2011/07/31 15:03:04 [decoder:4] Trying method "META" for > "/tmp/liqacef9e.osb"... > 2011/07/31 15:03:04 [decoder:4] Trying method "WAV" for > "/tmp/liqacef9e.osb"... > 2011/07/31 15:03:04 [decoder.wav:4] Invalid file extension for > "/tmp/liqacef9e.osb"! > 2011/07/31 15:03:04 [decoder:4] Trying method "MIDI" for > "/tmp/liqacef9e.osb"... > 2011/07/31 15:03:04 [decoder:4] Trying method "FLAC" for > "/tmp/liqacef9e.osb"... > 2011/07/31 15:03:04 [decoder.flac:4] Invalid file extension for > "/tmp/liqacef9e.osb"! > 2011/07/31 15:03:04 [decoder:4] Trying method "AAC" for > "/tmp/liqacef9e.osb"... > 2011/07/31 15:03:04 [decoder.aac:4] Invalid file extension for > "/tmp/liqacef9e.osb"! > 2011/07/31 15:03:04 [decoder:4] Trying method "MP4" for > "/tmp/liqacef9e.osb"... > 2011/07/31 15:03:04 [decoder.mp4:4] Invalid file extension for > "/tmp/liqacef9e.osb"! > 2011/07/31 15:03:04 [decoder:4] Trying method "OGG" for > "/tmp/liqacef9e.osb"... > 2011/07/31 15:03:04 [decoder.ogg:4] Invalid file extension for > "/tmp/liqacef9e.osb"! > 2011/07/31 15:03:04 [decoder:4] Trying method "MP3" for > "/tmp/liqacef9e.osb"... > 2011/07/31 15:03:04 [decoder.mp3:4] Invalid file extension for > "/tmp/liqacef9e.osb"! > 2011/07/31 15:03:04 [decoder:4] Trying method "SDL/IMAGE" for > "/tmp/liqacef9e.osb"... > 2011/07/31 15:03:04 [decoder:3] Unable to decode "/tmp/liqacef9e.osb" as > {audio=2;video=0;midi=0}!
Along with file-based type detection, we support mime-type based detection but it is only available when liquidsoap is compiled with ocaml-magic support enabled.. Romain ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
