2011/5/20 Nicolas Derive <[email protected]>:
> Hello,
Hi Nicolas!
> I play with liquidsoap to try to enhance our webradio, and got a problem.
>
> I've jingles that I load with this line in liquidsoap:
>
> jingles = playlist.safe("/path/to/my/jingles.pls")
>
> I play them randomly then adding them to my radio object.
>
> With some of them, I got a Unable to decode "/path/to/my/jingle.mp3" as
> {audio=2; video=0; midi=0}
>
> I think this is because these are mono mp3 jingles. I also have some .wav
> jingles that are {audio=1; video=0; midi=0} which can't be played. How can
> I convert them on the fly to be able to be played (I prefer on the fly as
> this would be more robust if someone adds a jingle without checking)?
So, there are two issues here:
* If you have real mono files, then they are indeed refused
* There is a bug in the mp3 decoder that mistakenly detects some file as mono.
For the first one, you need to use the audio_to_stereo operator. This
operator will convert the audio data in stereo and you will be fine.
For the second one, there is a fix in the seek branch which will be
merged into the default branch soon. You may want to test liquidsoap
from the seek branch:
hg update seek
and then bootstrap, configure, make clean and make as usual..
Romain
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users