From: Martin K. <mar...@so...> - 2012-04-05 22:00:57
|
Hi, After doing a make on the latest version of Liquidsoap in Mercurial I get: * Supported input formats - Vorbis : yes - Theora : no (requires theora) - Speex : no (requires speex) - Dirac : no (requires schroedinger) - Flac (native) : yes - Flac (ogg) : yes - MP3 : yes - AAC : no (requires faad) - text-to-speech : yes - XML playlists : no (requires xmlplaylist) - Lastfm : no (requires lastfm) I notice on this (OLD) documentation that MP2 support is stated: http://savonet.sourceforge.net/doc-0.3.8/concepts.html But it looks like it has been removed from newer versions of the documentation (as well as the final "make" output) My problem is that I'm trying to play some mp2 files from an RCS System: http://www.rcsworks.com/en/ and I've found almost no players capable of playing it (Liquidsoap included) except for mpg123. I noticed there is libmpg123, and if memory serves me, there was a way to get Liquidsoap to use different decoders. Is this true, or would this require an OCAML binding? Martin -- Open source radio in the cloud. Get yours now! ---> http://airtime.pro Martin Konecny Software Developer, Sourcefabric mar...@so... 720 Bathurst St. Suite 203 M5S 2R4, Toronto, ON, Canada +1 (416) 892-8420 (Cell) Skype: martin.konecny15 http://www.sourcefabric.org http://www.twitter.com/Sourcefabric |
From: Martin K. <mar...@so...> - 2012-04-07 02:37:29
|
Ok, I found the link I knew I had read about this somewhere :) http://savonet.sourceforge.net/doc-svn/external_decoders.html You can use external programs in liquidsoap to decode audio files. The > program must be able to output WAV data to its standard output (stdout) > and, posssibly, read encoded data from its standard input. Reading the mpg123 man page mpg123 reads one or more files (or standard input if ``-'' is specified) or > URLs and plays them on the audio device (default) or outputs them to > stdout. file/URL is assumed to be an MPEG audio bit stream. Looks like I have a very easy route. Now to spend the weekend testing this :) Martin 2012/4/5 Martin Konečný <mar...@so...> > Hi, > > After doing a make on the latest version of Liquidsoap in Mercurial I get: > > * Supported input formats > - Vorbis : yes > - Theora : no (requires theora) > - Speex : no (requires speex) > - Dirac : no (requires schroedinger) > - Flac (native) : yes > - Flac (ogg) : yes > - MP3 : yes > - AAC : no (requires faad) > - text-to-speech : yes > - XML playlists : no (requires xmlplaylist) > - Lastfm : no (requires lastfm) > > > I notice on this (OLD) documentation that MP2 support is stated: > http://savonet.sourceforge.net/doc-0.3.8/concepts.html > > But it looks like it has been removed from newer versions of the > documentation (as well as the final "make" output) > > My problem is that I'm trying to play some mp2 files from an RCS System: > http://www.rcsworks.com/en/ and I've found almost no players capable of > playing it (Liquidsoap included) except for mpg123. I noticed there is > libmpg123, and if memory serves me, there was a way to get Liquidsoap to > use different decoders. Is this true, or would this require an OCAML > binding? > > Martin > > -- > Open source radio in the cloud. Get yours now! ---> http://airtime.pro > > Martin Konecny > Software Developer, Sourcefabric > mar...@so... > > 720 Bathurst St. Suite 203 > M5S 2R4, Toronto, ON, Canada > +1 (416) 892-8420 (Cell) > Skype: martin.konecny15 > > http://www.sourcefabric.org > http://www.twitter.com/Sourcefabric > > -- Open source radio in the cloud. Get yours now! ---> http://airtime.pro Martin Konecny Software Developer, Sourcefabric mar...@so... 720 Bathurst St. Suite 203 M5S 2R4, Toronto, ON, Canada +1 (416) 892-8420 (Cell) Skype: martin.konecny15 http://www.sourcefabric.org http://www.twitter.com/Sourcefabric |
From: Romain B. <to...@ra...> - 2012-04-18 04:54:29
|
Hi Martin! 2012/4/5 Martin Konečný <mar...@so...>: > After doing a make on the latest version of Liquidsoap in Mercurial I get: > > * Supported input formats > - Vorbis : yes > - Theora : no (requires theora) > - Speex : no (requires speex) > - Dirac : no (requires schroedinger) > - Flac (native) : yes > - Flac (ogg) : yes > - MP3 : yes > - AAC : no (requires faad) > - text-to-speech : yes > - XML playlists : no (requires xmlplaylist) > - Lastfm : no (requires lastfm) > > > I notice on this (OLD) documentation that MP2 support is stated: > http://savonet.sourceforge.net/doc-0.3.8/concepts.html I am not sure why this was added but I do not think we ever supported mp2.. If I am correct, mp2 data is decoded using libtwolame (http://packages.debian.org/libtwolame) which we never had binded for OCaml. The library's API does not seem to complicated, it could be a fun project actually (spare time based for me unfortunately..) > But it looks like it has been removed from newer versions of the > documentation (as well as the final "make" output) > > My problem is that I'm trying to play some mp2 files from an RCS > System: http://www.rcsworks.com/en/ and I've found almost no players capable > of playing it (Liquidsoap included) except for mpg123. I noticed there is > libmpg123, and if memory serves me, there was a way to get Liquidsoap to use > different decoders. Is this true, or would this require an OCAML binding? True :-) > Reading the mpg123 man page > >> mpg123 reads one or more files (or standard input if ``-'' is specified) >> or URLs and plays them on the audio device (default) or outputs them to >> stdout. file/URL is assumed to be an MPEG audio bit stream. > > > Looks like I have a very easy route. Now to spend the weekend testing this > :) Yup, that should work, too.. Did you get any progress on it? There are external decoders for files defined in our standard library, did you noticed them? Romain |
From: Romain B. <to...@ra...> - 2012-04-18 05:30:03
|
2012/4/17 Romain Beauxis <to...@ra...>: > Hi Martin! > > 2012/4/5 Martin Konečný <mar...@so...>: >> After doing a make on the latest version of Liquidsoap in Mercurial I get: >> >> * Supported input formats >> - Vorbis : yes >> - Theora : no (requires theora) >> - Speex : no (requires speex) >> - Dirac : no (requires schroedinger) >> - Flac (native) : yes >> - Flac (ogg) : yes >> - MP3 : yes >> - AAC : no (requires faad) >> - text-to-speech : yes >> - XML playlists : no (requires xmlplaylist) >> - Lastfm : no (requires lastfm) >> >> >> I notice on this (OLD) documentation that MP2 support is stated: >> http://savonet.sourceforge.net/doc-0.3.8/concepts.html > > I am not sure why this was added but I do not think we ever supported > mp2.. If I am correct, mp2 data is decoded using libtwolame > (http://packages.debian.org/libtwolame) which we never had binded for > OCaml. > > The library's API does not seem to complicated, it could be a fun > project actually (spare time based for me unfortunately..) Hmm... Seems like I was too quick to respond :-) Libtwolame is for mp2 _encoding_ while decoding is done by libmad, which we already support.. Indeed liquidsoap seems to be able to play mp2 files if you tell it properly: liquidsoap 'set("decoder.file_extensions.mp3",["mp3", "mp2"]) output.ao(single("/tmp/sample-128kbps.mp2"))' As you can see, it seems that we have completely overlooked the fact that libmad also decodes mp2 files.. I'll be patching our code very soon but in the mean time you should be able to decode mp2 files with liquidsoap simply by adding the configuration key above.. Romain |