Hi,

Most of my streams are talk, in mono, with  
output.icecast(%mp3(samplerate=44100,bitrate=64,stereo=false),...).  
However, while preparing the playlists quite a few songs were left in  
stereo, which had not been a problem with ls 0.93. We have since upgraded  
to ls 1.0.0 which barfs on a mix of mono and stereo streams. As a result,  
now our streams are non-functional, and we've been offline over a week.

LS 1.0.0 does not like a mix of mono and stereo files, and will barf with  
error 'incompatible number of channels. Having to convert all the stereo  
streams to mono manually and upload them is a rather daunting task. Is  
there any way of adding some ls code to do this conversion automatically  
on a as needed basis (that is, something like 'stereo_to_mono()' when the  
stereo programs are called and processed)?

An example where I mean with this program block (under 'b'):


     # === MMEL ===



                 a =  
single("/usr/local/www/rcr/mp3/announce/opener/opener-mmel.mp3")

                 b = playlist.safe(mode="random",  
"/usr/local/www/rcr/mp3/music/Phillips/")




            mmel = sequence([a,b])



                # Fill-in Title for ID3 Tag

                    def fill_in(s)

                        # the function f takes a list of pairs m representing 
the metadata
                        # and it maps an anonymous function on each pair
                        # replacing empty title definitions by title=filename

                        def f(m)

                            print("\n\nFor metadata: #{m}\n\n")
                            list.map(fun (key_value) ->

                            if key_value==("title","") then

                        
                                  if m["filename"] ==  
"/usr/local/www/rcr/mp3/announce/opener/opener-mmel.mp3" then
                                      ("title", "Welcome to Morning Melodies")
                                
                                  elsif m["filename"] ==  
"/usr/local/www/rcr/radio/current/mp3/today-mmel-mp3.pls" then
                                      ("title", "Morning Melodies - see 
www.RuralCatholicRadio.com for  
details")

                                  elsif m["filename"] == 
"/usr/local/www/rcr/mp3/announce/CLOSER.mp3"  
then
                                      ("title", "Thank you for listening to 
Morning Melodies")

                                  elsif m["filename"] ==  
"/usr/local/www/rcr/radio/current/mp3/mmel-mp3-end.pls" then
                                      ("title", "Morning Melodies - see 
www.RuralCatholicRadio.com for  
details")

                                  else ("title", "Morning Melodies - see 
www.RuralCatholicRadio.com  
for details")
        
                                  end

                            else key_value end,
                            m)

                           end

                           map_metadata(f,s)

                    end

                
                mmel = fill_in(mmel)


Your advice will be greatly appreciated!
kronos


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to