[ 
http://dev.sourcefabric.org/browse/LS-572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Romain Beauxis resolved LS-572.
-------------------------------

    Resolution: Fixed

Fixed in 92b90d2b49da

> Add support for external musepack decoding
> ------------------------------------------
>
>                 Key: LS-572
>                 URL: http://dev.sourcefabric.org/browse/LS-572
>             Project: Liquidsoap
>          Issue Type: New Feature
>            Reporter: Samuel Mimram
>
> We should add support for external decoding of musepack, with a doc about how 
> to tell magic about it.
> From the ML:
> >If you want to stick to 0.9.2, I think the following steps could help you:
> > * First check what mime is actually detected by libmagic for your file:
> >    file -i /path/to/musepackfile.mpc
> >My guess here is that it will be one of the generic one that are also
> >sometimes returned for mp3 -- "application/octet-stream" ?
> Exactly that: "application/octet-stream; charset=binary".
> Unfortunately that's just the same as file -i returns for some of my
> MP3 files, so removing it from mad.mime_types breaks other things.
> (Just to make things more frustrating, file without -i is quite capable
> of identifying the former as MusePack and the latter as MP3 files - it
> just doesn't have a mime-type set in the default magic.mgc.)
> However, putting
> 0 long =0x072b504d MusePack audio file
> !:mime audio/musepack
> into /etc/mime.magic allows accurate identification of MusePack files -
> at least all the ones I have. At that point, all I need is the decoder,
> modelled directly on the flac decoder example:
> # set up mpc decoder
> if test_process("which mpcdec") then
>  def mpc_p(file)=
>    "mpcdec #{quote(file)} - 2>/dev/null"
>  end
>  add_decoder("MUSEPACK",mpc_p)
> else
>  log(level=3,"mpcdec binary not found: \
>        mpc decoder disabled.")
> end
> and it works! (Metadata parsing to follow later.) Thanks for the
> pointer.
> >By the way, which binary do you use to decode musepack files? We
> >currently have no builtin decoder -- and honnestly no time to prepare
> >one at the moment -- however, we could perhaps include a predefined
> >external musepack decoder..
> The Debian musepack-tools package includes the mpcdec binary, which can
> output to stdout.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Savonet-devl mailing list
Savonet-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à