Announcement

Collapse
No announcement yet.

SHOUTcast Transcoder 2 Beta 6

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • While putting together sample config files, I discovered a serious infrastructure problem. It seems that YP2 does not exist yet. We have a version running in QA, but there is not one accessible from the outside.

    Because of the new security model and data flow in YP2, any sc_serv that is configured as public and using YP2 will not serve up it's streams even if the configuration is correct.

    You can still use the new server in regular YP mode, just omit the "yp2=1" line from the config. This mode, however, has restrictions.

    1) You cannot serve multiple streams from a single entity. Well, you can.... but the information in YP will be all confused
    2) You cannot use the streampath keyword in your config. Again, this concept cannot be represented in YP.

    If you want to play with the new features for your own amusement, you still can, just set yp2=1 and publicserver=never, however your stuff won't show up under YP.

    Now, to answer the obvious followup question "when will the YP2 infrastructure be done", I can't answer that. It's not being done by anyone in my group, department, city or country.

    --Neil

    Comment


    • Thank you, Neil...

      But, I think it´s more useful if a commercial call can return a block with three (or four, or five, anything defined by "integer") mp3 selecteds using random (without duplications) and the same for songs, creative blocks, mini shows (with header.mp3, show.mp3 and footer.mp3), etc.

      Other question is about time of mp3... If I have a mp3 with one or two seconds, with only "Name Of Radio" to put between two songs, it´s ok for sc_trans? receive only one second for play and can mix on previous song and next song ?

      (sorry again my english)

      Thank you very much Neil... Think about return more songs on command call...

      Marcelo Gomes

      Comment


      • WebemSegundos -

        Short tracks are fine. In fact sc_trans has an option "xfadethreshold" that allows you to control how file duration effects crossfading. Obviously if the track is very short you don't want to crossfade since you will lose most of your audio.

        The external call-out mechanism in the playlists was put in to enable people who want to control playlists completely outside of the existing sc_trans mechanisms. There had been some requests for that, and until time and resources become available to create a more polished interface, I thought this would be a reasonable interim solution. It was never meant to be something that would integrate in a complex manner with the existing playlist mechanism.

        --Neil

        Comment


        • Config file examples

          Here are a few config file examples. Please keep in mind my previously posted caveat about the non-existence of yp2.

          --Neil

          Comment


          • Hey nradish,

            I'm trying to run the new sc_serv 2 and sc_trans 2b6 since monday, but I couldn't.

            Could you check my configs and log to find out if it's my mistake or a bug in the script, please.

            Here is the error while I wonna try to connect with winamp. I'm using the following url: <myip>:<myport> or <myip>:<myport>/stream/128 or <myip>:<myport>/listen.pls

            For all I get the same result.

            Shoutcast or Shoutcast2 protocoll, the same problem.

            In Winamp I get this error: ICY 401 Service Unavailable


            The log:
            • 2010-03-11 22:00:22 E msg:[dst 62.159.64.2:57756 sid=1] Shoutcast 1 client connection rejected. Stream not available. WinampMPEG/5.57, Ultravox/2.1


            Schoutcast config:

            PHP Code:
            LogFile=sc_serv.log
            ScreenLog
            =1
            songhistory
            =10
            W3CEnable
            =0
            W3CLog
            =
            webclientdebug=
            yp1debug=
            yp2debug=
            shoutcastsourcedebug=1
            uvox2sourcedebug
            =1
            shoutcast1clientdebug
            =0
            shoutcast2clientdebug
            =1
            relayshoutcastdebug
            =0
            relayuvoxdebug
            =0
            relaydebug
            =0
            streamdatadebug
            =1
            httpstyledebug
            =0
            statsdebug
            =1
            microserverdebug
            =1
            threadrunnerdebug
            =0
            uvoxcipherkey
            =
            Password=change321
            MaxUser
            =1000
            PortBase
            =6060
            maxheaderlinesize
            =2048
            maxheaderlinecount
            =100
            AdminPassword
            =change321
            flashpolicyfile
            =
            yp2=1
            ypaddr
            =yp.shoutcast.com
            ypport
            =80
            yppath
            =/yp2
            yptimeout
            =60
            ypmaxretries
            =4
            ypreportinterval
            =120
            ypminreportinterval
            =60
            publicserver
            =always
            buffertype
            =1
            fixedbuffersize
            =1000
            adaptivebuffersize
            =1000
            bufferhardlimit
            =1000
            SrcIP
            =ANY
            dstip
            =ANY
            Yport
            =
            NameLookups=0
            RelayPort
            =
            RelayServer=
            AutoDumpUsers=1
            AutoDumpSourceTime
            =30
            IntroFile
            =
            BackupFile=
            specialfiletmpdir=
            maxspecialfilesize=10000
            TitleFormat
            =Demo Radio
            URLFormat
            =http://radioadmin.org
            AllowRelay=
            AllowPublicRelay=
            MetaInterval=8192
            relayreconnecttime
            =60
            maxhttpredirects
            =4
            listenertime
            =3600
            BanFile
            =
            savebanlistonexit=0
            RipFile
            =
            saveriplistonexit=
            RipOnly=
            Unique=
            Include=
            configrewrite=0
            CpuCount
            =1
            requirestreamconfigs
            =1
            streamid_1
            =1
            streamauthhash_1
            =xxx
            streampath_1
            =/bitrate/128 
            Transcoder config:
            PHP Code:
            log=1
            logfile
            =sc_trans.log
            screenlog
            =1
            shuffledebug
            =
            shoutcastdebug=1
            uvoxdebug
            =1
            gaindebug
            =
            playlistdebug=1
            mp3encdebug
            =0
            mp3decdebug
            =
            resamplerdebug=
            rgcalcdebug=
            apidebug=
            calendardebug=
            capturedebug=
            djdebug=
            flashpolicyserverdebug=
            fileconverterdebug=
            flashpolicyfile=
            flashpolicyserverport=
            streamtitle=Demo radioadmin.org
            streamurl
            =http://www.radioadmin.org
            genre=DEMO
            aim
            =aim
            irc
            =irc
            icq
            =99508899
            public=1
            usemetadata
            =1
            metadatapattern
            =*/%N
            playlistfile
            =bc957e26ff41470c556ee5d09e96880b.lst
            shuffle
            =1
            xfade
            =3
            xfadethreshold
            =10
            archive
            =
            calendarfile=calendar.xml
            calendarrewrite
            =1
            djport
            =9898
            djport2
            =9896
            djcipher
            =
            autodumpsourcetime=
            djbroadcasts=
            djcapture=
            djfilepattern=
            djpassword=
            djlogin=
            outprotocol_0=1
            serverip_0
            =localhost
            serverport_0
            =6060
            password_0
            =change321
            uvoxstreamid_0
            =5
            uvoxuserid_0
            =admin
            uvoxauth_0
            =change321
            uvoxradiometadata_0
            =
            uvoxnewmetadata_0=0
            uvoxmetadatafudgefactor_0
            =3
            shoutcastmetadatafudgefactor_0
            =3
            applyreplaygain
            =
            defaultreplaygain=
            djreplaygain=
            capturereplaygain=
            calculatereplaygain=
            replaygaintmpdir=
            replaygainrunahead=
            replaygaindontwrite=
            enhancereplaygain=
            adminpassword=change321
            adminuser
            =admin
            adminport
            =6066
            vuimagedirectory
            =
            vuimagesuffix=
            vuimagemimetype=
            configrewrite=0
            serverbackupfile
            =
            serverintrofile=
            encoder_0=mp3
            bitrate_0
            =128000
            samplerate_0
            =44100
            channels_0
            =2
            aacpbitstreamformat_0
            =1
            mp3quality_0
            =1
            mp3mode_0
            =
            playlistfilename_0 misc
            playlistfilepath_0 
            bc957e26ff41470c556ee5d09e96880b.lst
            unlockkeyname
            =zzzzzzzzz
            unlockkeycode
            =xxxxx-xxxxx-xxxxx-xxxxx 
            Any idea?

            meda

            Comment


            • Yes, this is what I was referring to in the post a few up from here



              You are setting yp2=1. When you do that, the stream cannot be made available to the client until the server completes negotiations with yp2. Unfortunately yp2 is not yet online so this always fails and the stream never becomes available.
              Please read the referred post for more details.

              --Neil

              Comment


              • i steped back to beta 5 due to that after installing beta 6 i lost alot listeners few could not rech my radio

                Comment


                • Ok,

                  I set the yp2 to 0,
                  removed strem url path,
                  set the cache time to 1 second, I had 1000 seconds not good,
                  changed the transcoder protocol to shoutcast1

                  And voilÃ_ ... my stream is online.

                  I hope the yp will coming soon online

                  Thx

                  Comment


                  • Hi Neil,

                    Thanks. I will control all playlist by script, but using calendar to call right playlist...

                    Thanks again!

                    Marcelo Gomes

                    Comment


                    • Originally posted by nradisch
                      sc_trans uses a codec from Fraunhoffer to do mp3 encoding and decoding.

                      This is my understanding, regarding the $5 licensing fee. This is in no way an official legal statement from Aol, and merely represents my understanding of the issue.

                      Mp3 encoding is not free. If you encode in mp3 you owe MPEG-LA (or something entity like that) a licensing fee. It's common knowledge that many people download and use the Lame encoder without sending a check to MPEG-LA. This is technically a licensing violation, but since it's impractical for MPEG-LA to go after individuals, the practice is tolerated. It is NOT, however, impractical for MPEG-LA to go after large corporations like Aol. So we have to charge to avoid legal problems. Another option would be to leave mp3 encoding out, and force you to download install and configure your own compatible encoder (like lame), but we felt that the added complication to the user was not worth it.

                      AACP has a similar issues, but the MPEG-LA licensing terms for this technology is different, allowing Aol to pay a reasonable yearly fee so our user base does not have to pay.

                      I believe the reason the fee was only imposed recently was that SHOUTcast was an unstaffed project that was so far "under the radar" no one at Aol ever noticed it. It has a somewhat higher profile these days, and during a recently company wide technology review by the legal department, the licensing issues became apparent.

                      --Neil
                      Thanks this clears it up alot. I guess LAME owes MPEG-LA alot of money then
                      Ramon

                      Comment


                      • Hello!!

                        One more request:

                        There should be a configuration variable that allow as to decide if DJ's with same priority could kick each others or not.

                        This was possible in the previous version but it was treated as a bug. However I found this very useful.

                        Thanks.
                        <?php echo str_rot13("FUBHGpnfg QANF Ehyrf!"); ?>

                        Comment


                        • libstdc++.so.6 problem

                          Can someone help?

                          Only on Debian 5 (amd64 bit) I got an error while try to start sc_trans 2 (tested with 5 or 6)

                          “error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory”

                          --> locate libstdc++.so.6
                          /usr/lib/libstdc++.so.6
                          /usr/lib/libstdc++.so.6.0.10

                          Comment


                          • Originally Posted by nradisch View Post
                            Here are a few config file examples. Please keep in mind my previously posted caveat about the non-existence of yp2.

                            --Neil
                            Am I missing something? Have the sample config files been removed? I can't see anything to download.

                            Comment


                            • how to set timetable?

                              I have 700 songs and playlists you need to set my schedule to take them all


                              and the second question I ask is that spots in 15 minutes what settings do?

                              Comment


                              • Is the final version expected to support multiple sources mixing to a single stream at the same time? I think I remember reading something about it a long time ago, but I'm having trouble finding anything on it now.

                                Thanks!

                                Comment

                                Working...
                                X