Hi,

2012/12/17  <[email protected]>:
>
> I find the solution in the archives:
>
> Simply added 'audio_to_stereo(single . ., " .mp3")' and
> 'audio_to_stereo(playlist . . ., " .pls")'
> for each occurrence of single and playlist. Also had to change the
> output's 'channels=1' to 'mono'.

channels=1 is the same as mono.

As for your issue, let me try to explain what is going on.

First, your file was detected as mono:
>    Could not get a valid media file of kind {audio=2;video=0;midi=0} from
> "/usr/local/www/rcr/mp3/announce/SOD.mp3".

This message above means that liquidsoap could not get a _stereo_
track out of that file, precisely because it is mono :-)

Now, let's explain why it looks for a stereo track and start with this script:

1: s = playlist("/path/to/foo")
2:
3: output.icecast(%mp3(channels=2), mount="stereo", ..., s)
4:
5: output.icecast(%mp3(channels=1), mount="mono", ..., mean(s))

With this script, the source s is plugged into a stereo output on line
3. Thus, liquidsoap will consider that only stereo tracks should work
with s.

The output on line 5 does not change anything to that.

Therefore, with this script, a mono file in /path/to/foo will be
rejected, which is what you've been experiencing.

Now, if you change the script like this:

1: s = playlist("/path/to/foo")
2:
3: output.icecast(%mp3(channels=2), mount="stereo", ..., audio_to_stereo(s))
4:
5: output.icecast(%mp3(channels=1), mount="mono", ..., mean(s))

Now with this script, s is plugged into the first output on line 3
through audio_to_stereo. In this case, it does not matter anymore
wether s has mono, stereo or even tracks with 5 audio channels because
audio_to_stereo will convert anything to stereo.

This is why, in this case, a mono file in /path/to/foo will be accepted.

Now, just for fun, here are two more scripts. On will work but only
accept mono files and one will not work at all.. If you followed me
(and if what I wrote makes sense..) you should now see why :-)

Script 1:

1: s = playlist("/path/to/foo")
2:
3: output.icecast(%mp3(channels=2), mount="stereo", ..., audio_to_stereo(s))
4:
5: output.icecast(%mp3(channels=1), mount="mono", ..., s)

Script 2:

1: s = playlist("/path/to/foo")
2:
3: output.icecast(%mp3(channels=2), mount="stereo", ..., s)
4:
5: output.icecast(%mp3(channels=1), mount="mono", ..., s)


Romain


> On Sun, 16 Dec 2012 22:50:55 -0500, <[email protected]> wrote:
>
>>
>> Hi,
>>
>> I completed the upgrade from LS 0.92 to 1.0.0.2.
>>
>> Despite all my audio files are mono, LS does not recognize them as mono.
>>
>> An abbreviated snippet from my output:
>>
>>
>> ****
>>
>> liquidsoap Monday.liq
>> Invalid value at line 19, char 14-54:
>>    Could not get a valid media file of kind {audio=2;video=0;midi=0} from
>> "/usr/local/www/rcr/mp3/announce/SOD.mp3".
>>
>>
>>      # == ICECAST MP3 32 OUTPUT ==
>>
>>
>>           output.icecast(%mp3(samplerate=44100, mono, bitrate=32),
>>               host="ruralcatholicradio.com",
>>               port=8014,
>>               password="*****",
>>               mount="icmp3-32",
>>               name="Rural Catholic Radio",
>>               description="Classic Roman Catholic prayers, meditations,
>> and
>> music - 32 kbps",
>>               genre="Christian, Catholic, Prayers, Music, Meditations,
>> Religious",
>>               public=true,
>>               url="http://www.ruralcatholicradio.com:8014/icmp3-32";,
>>             mean(radio))
>>
>> ****
>>
>>
>> The '/usr/local/www/rcr/mp3/announce/SOD.mp3' is the very first file. I
>> tried subsequent files:
>> same result.
>>
>> As Romain suggested, I placed 'mean(radio))' at the end of the output.
>> What is wrong?
>> I've tried 'channels=1' which gave an unknown parameter error message,
>> and
>> then tried 'mono'
>> or 'stereo=false' which did not barf. So what else can I do to get it
>> working?
>>
>> The station is dead until this is fixed.
>>
>> Help . . . please??
>>
>> Thanks,
>> kronos
>>
>
>
> --
> Using Opera's revolutionary email client: http://www.opera.com/mail/
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to