Hi Romain,

I looked at the PACKAGES file, and there's nothing called "magic" for 
either 1.0.0 or 0.9.3. There's no dir in the source tarball with "magic" 
in the name. Yet, autodetection by mime type works for 0.9.3 but not for 
1.0.0. This is on my system:

/usr/lib32/libmagic.so
/usr/lib32/libmagic.so.1
/usr/lib32/libmagic.so.1.0.0
/usr/lib64/libmagic.so
/usr/lib64/libmagic.so.1
/usr/lib64/libmagic.so.1.0.0
/usr/share/man/man3/libmagic.3.bz2

Also, when I add URL's that actually end in the filename, I can see from 
the logs that autodetection uses the mime method in 1.0.0. The 
difference between 1.0.0 and 0.9.3 is that 0.9.3 stores the temporary 
file with an .osb extension while 1.0.0 stores the temporary file as a 
.php file.

Damien

On 01/11/12 09:06, Romain Beauxis wrote:
> Hi,
>
> Le 10 janvier 2012 16:52, Audiodef Online<[email protected]>  a écrit :
>> These URLs, I should point out, play just fine directly in my media player, 
>> so the actual content type is there.
> Liquidsoap has two ways of detecting file's format:
>    * File extension
>    * File mime type, using libmagic
>
> Reading from your logs, it seems that the mime method is not enabled.
> You should recompile with ocaml-magic installed.
>
> If this still does not help, you may also look manually for the
> detected mime that way:
>    * wget (some of your file..)
>    * file -i (downloaded file)
>
> If the returned value is not something usual like audio/mpeg, you may
> want to add it to the list of mime type associated with mp3 format
> using this configuration key:
>    set("decoder.mime_types.mp3",["audio/mpeg", "some/crappy-one"])
>
> Romain
>
>> -------- Original Message --------
>> Subject: Re: [Savonet-users] Downloading dowload.php?id=12345 files in 
>> playlists
>> Date: Tue, 10 Jan 2012 15:45:07 +0000
>> From: Audiodef Online<[email protected]>
>> To: [email protected], [email protected]
>>
>>
>> I just set up a fresh install of 1.0.0. It seems liquidsoap's ability to
>> handle this type of URL isn't working. Can I do something, or is this a bug?
>>
>> Log:
>>
>>
>> 2012/01/10 15:42:44 [protocols.external:4] Executing /usr/bin/wget
>> "http://electro-music.com/forum/download.php?id=28954";
>>   "/tmp/liq3cf115.php"
>> 2012/01/10 15:42:48 [protocols.external:4] Download process finished (ok)
>> 2012/01/10 15:42:48 [decoder:4] Trying method "META" for
>> "/tmp/liq3cf115.php"...
>> 2012/01/10 15:42:48 [decoder:4] Trying method "WAV" for
>> "/tmp/liq3cf115.php"...
>> 2012/01/10 15:42:48 [decoder.wav:4] Invalid file extension for
>> "/tmp/liq3cf115.php"!
>> 2012/01/10 15:42:48 [decoder:4] Trying method "MIDI" for
>> "/tmp/liq3cf115.php"...
>> 2012/01/10 15:42:48 [decoder:4] Trying method "FLAC" for
>> "/tmp/liq3cf115.php"...
>> 2012/01/10 15:42:48 [decoder.flac:4] Invalid file extension for
>> "/tmp/liq3cf115.php"!
>> 2012/01/10 15:42:48 [decoder:4] Trying method "AAC" for
>> "/tmp/liq3cf115.php"...
>> 2012/01/10 15:42:48 [decoder.aac:4] Invalid file extension for
>> "/tmp/liq3cf115.php"!
>> 2012/01/10 15:42:48 [decoder:4] Trying method "MP4" for
>> "/tmp/liq3cf115.php"...
>> 2012/01/10 15:42:48 [decoder.mp4:4] Invalid file extension for
>> "/tmp/liq3cf115.php"!
>> 2012/01/10 15:42:48 [decoder:4] Trying method "OGG" for
>> "/tmp/liq3cf115.php"...
>> 2012/01/10 15:42:48 [decoder.ogg:4] Invalid file extension for
>> "/tmp/liq3cf115.php"!
>> 2012/01/10 15:42:48 [decoder:4] Trying method "MP3" for
>> "/tmp/liq3cf115.php"...
>> 2012/01/10 15:42:48 [decoder.mp3:4] Invalid file extension for
>> "/tmp/liq3cf115.php"!
>> 2012/01/10 15:42:48 [decoder:3] Unable to decode "/tmp/liq3cf115.php" as
>> {audio=2;video=0;midi=0}!
>>
>> ------------------------------------------------------------------------------
>> Write once. Port to many.
>> Get the SDK and tools to simplify cross-platform app development. Create
>> new or port existing apps to sell to consumers worldwide. Explore the
>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>> http://p.sf.net/sfu/intel-appdev
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>>
>> ------------------------------------------------------------------------------
>> Write once. Port to many.
>> Get the SDK and tools to simplify cross-platform app development. Create
>> new or port existing apps to sell to consumers worldwide. Explore the
>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>> http://p.sf.net/sfu/intel-appdev
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to