2011/8/4 okay_awright <[email protected]>:
> with --debug it gives that:

Woops, sorry I replied too quickly.. :-)

> 2011/08/04 23:13:43 [lang:3] get_new_item()
> 2011/08/04 23:13:43 [lang:3] shampoo_ws_getter()
> 2011/08/04 23:13:43 [http.get:4] No network activity for 1.00 second(s).
> 2011/08/04 23:13:44 [lang:3] play_queued_track()
> 2011/08/04 23:13:44 [lang:3] update_cue_cut_points()
> 2011/08/04 23:13:44 [lang:3] mark_as_ws_notification_ready()
> 2011/08/04 23:13:44 [decoder:4] Trying method "META" for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"...
> 2011/08/04 23:13:44 [decoder:4] Trying method "WAV" for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"...
> 2011/08/04 23:13:44 [decoder.wav:4] Invalid MIME type for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a": application/octet-stream!
> 2011/08/04 23:13:44 [decoder.wav:4] Invalid file extension for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"!
> 2011/08/04 23:13:44 [decoder:4] Trying method "MIDI" for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"...
> 2011/08/04 23:13:44 [decoder:4] Trying method "FLAC" for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"...
> 2011/08/04 23:13:44 [decoder.flac:4] Invalid MIME type for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a": application/octet-stream!
> 2011/08/04 23:13:44 [decoder.flac:4] Invalid file extension for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"!
> 2011/08/04 23:13:44 [decoder:4] Trying method "AAC" for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"...
> 2011/08/04 23:13:44 [decoder.aac:4] Invalid MIME type for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a": application/octet-stream!
> 2011/08/04 23:13:44 [decoder.aac:4] Invalid file extension for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"!
> 2011/08/04 23:13:44 [decoder:4] Trying method "MP4" for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"...
> 2011/08/04 23:13:44 [decoder.mp4:4] Invalid MIME type for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a": application/octet-stream!
> 2011/08/04 23:13:44 [decoder.mp4:4] Invalid file extension for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"!
> 2011/08/04 23:13:44 [decoder:4] Trying method "OGG" for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"...
> 2011/08/04 23:13:44 [decoder.ogg:4] Invalid MIME type for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a": application/octet-stream!
> 2011/08/04 23:13:44 [decoder.ogg:4] Invalid file extension for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"!
> 2011/08/04 23:13:44 [decoder:4] Trying method "MP3" for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"...
> 2011/08/04 23:13:44 [decoder.mp3:4] Invalid MIME type for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a": application/octet-stream!
> 2011/08/04 23:13:44 [decoder.mp3:4] Invalid file extension for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"!
> 2011/08/04 23:13:44 [decoder:4] Trying method "SDL/IMAGE" for
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a"...
> 2011/08/04 23:13:44 [decoder:3] Unable to decode
> "d:/Temp/7/0603734bd44643dabd6066d581364ec7_a" as {audio=2;video=0;midi=0}!
>
>
> Since my Liquidsoap has been compiled under Cygwin, I thought it was
> some kind of file naming problem for request.create(), so I've tried all
> valid conventions (backslashes, slashes, cygdrive prefix, emulated unix
> path), but to no avail.
> I even tried to get the files to play through the http protocol (so
> they're stored in /tmp by wget once fetched.) Same error.
>
> I've also tried some simple built-in Liquidsoap functions to check if
> they are readable when they're not directly taken from a playlist, and
> it appears so.
>
> $ /usr/local/bin/liquidsoap.exe
> 'print(get_mime("d:\Temp\1\6bc033807e9e4612be50ba31eaf7b521_a"))'
> application/octet-stream
> No output defined, nothing to do.
>
> $ /usr/local/bin/liquidsoap.exe
> 'print(get_mime("d:/Temp/1/6bc033807e9e4612be50ba31eaf7b521_a"))'
> application/octet-stream
> No output defined, nothing to do.
>
> $ /usr/local/bin/liquidsoap.exe
> 'print(get_mime("/cygdrive/d/Temp/1/6bc033807e9e4612be50ba31eaf7b521_a"))'
> application/octet-stream
> No output defined, nothing to do.
>
> P.S. those files are valid MP3 or Ogg Vorbis files, and they can be
> played flawlessly within Liquidsoap when read from playlists.

Ok I see your problem.

If no libmime support is compiled. then liquidsoap will only ressort
to file extensions, which in this case do not seem to be the expected
one.

Possibles solutions are:
 * Compile liquidsoap with ocaml-magic.
In the windows case, though. libmagic is tricky: its unix version is
unix-specific. I would expect that cygwin has it but for a native
build its a whole different beast..

 * Fix your file extensions (if possible of course)

 * Play with the configuration keys:
set("decoder.file_extensions.aac",["aac"])
set("decoder.file_extensions.flac",["flac"])
set("decoder.file_extensions.mp3",["mp3"])
set("decoder.file_extensions.mp4",["m4a","m4b","m4p","m4v","m4r","3gp","mp4"])
set("decoder.file_extensions.ogg",["ogv","oga","ogx","ogg"])
set("decoder.file_extensions.taglib",["mp3"])
set("decoder.file_extensions.wav",["wav"])


Romain

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to