]> git.parisson.com Git - telecaster-client.git/commitdiff
WARNING : build now against edcast_jack 3.1.7
authoryomguy <>
Sun, 7 Feb 2010 22:22:20 +0000 (22:22 +0000)
committeryomguy <>
Sun, 7 Feb 2010 22:22:20 +0000 (22:22 +0000)
etc/telecaster_edcast_mp3.cfg [new file with mode: 0644]
etc/telecaster_mp3.cfg
etc/telecaster_mp3.xml
station.py
telecaster.py

diff --git a/etc/telecaster_edcast_mp3.cfg b/etc/telecaster_edcast_mp3.cfg
new file mode 100644 (file)
index 0000000..53b4a18
--- /dev/null
@@ -0,0 +1,46 @@
+# Destination server details (to where you are encoding).  Valid server types : Shoutcast, Icecast, Icecast2
+ServerType=Icecast2
+Server=localhost
+Port=8000
+ServerPassword=source2parisson
+ServerMountpoint=/stream.mp3
+# YP (Stream Directory) Settings
+ServerPublic=0
+ServerIRC=
+ServerAIM=
+ServerICQ=
+ServerStreamURL=http://www.pre-barreau.com
+ServerName=This is my server name
+ServerDescription=This is my server description
+ServerGenre=Teaching
+AutomaticReconnectSecs=10
+AutoConnect=0
+# Output codec selection (Valid selections : MP3, OggVorbis, Ogg FLAC, AAC, AAC Plus)
+Encode=MP3
+# General settings (non-codec related).  Note : NumberChannels = 1 for MONO, 2 for STEREO
+BitrateNominal=64
+BitrateMin=32
+BitrateMax=128
+NumberChannels=2
+Samplerate=44100
+# Ogg Vorbis specific settings.  Note: Valid settings for BitrateQuality flag are (Quality, Bitrate Management)
+OggQuality=3
+OggBitrateQualityFlag=Quality
+# LAME specific settings.  Note: Setting the low/highpass freq to 0 will disable them.
+LameCBRFlag=1
+LameQuality=1
+LameCopywrite=0
+LameOriginal=0
+LameStrictISO=0
+LameDisableReservior=0
+LameVBRMode=vbr_abr
+LameLowpassfreq=0
+LameHighpassfreq=0
+LAMEPreset=0
+# AAC (FAAC) specific settings.
+AACQuality=100
+AACCutoff=
+# Log Level 1 = LOG_ERROR, 2 = LOG_ERROR+LOG_WARNING, 3 = LOG_ERROR+LOG_WARNING+LOG_DEBUG
+LogLevel=3
+# Log File
+LogFile=/tmp/streamTranscoder_1.log
index 83a88d98febb40c400e9cdf204cfb5c7585d662b..c5906f4b9be3cd28233e4356310d526a153acc49 100644 (file)
@@ -8,7 +8,7 @@ Encode=MP3 Lame
 BitrateNominal=64
 OggQuality=3
 NumberChannels=2
-Samplerate=48000
+Samplerate=44100
 ServerType=Icecast2
 ExternalFile=/tmp/test
 #YP Settings
index 087bf0d2e2abd9cf35d630ca482036aefd7aa66b..4a9fe169d8bcdf7f3b0be87953239f5a06dd7265 100644 (file)
@@ -12,7 +12,7 @@
         <sourcepassword>source2parisson</sourcepassword>
         <public>0</public>
         <root_dir>/var/www/telecaster/</root_dir>
-        <odd_conf_file>etc/telecaster_mp3.cfg</odd_conf_file>
+        <odd_conf_file>etc/telecaster_edcast_mp3.cfg</odd_conf_file>
         <lock_file>lock/telecaster.lock</lock_file>
         <rsync_host>localhost/tmp/</rsync_host>
         <rss>
index 1fdd6901fb738017e00b6951e31e59087efc483e..941b7697d29a82b2ae522ec4a889641270eaba5d 100644 (file)
@@ -89,7 +89,7 @@ class Station(Conference):
         self.output_dir = self.media_dir + os.sep + self.department + os.sep + self.date
         self.file_dir = self.output_dir + os.sep + self.ServerName
         self.uid = os.getuid()
-        self.odd_pid = get_pid('^oddcastv3\ -n', self.uid)
+        self.odd_pid = get_pid('^edcast_jack\ -n', self.uid)
         self.rip_pid = get_pid('streamripper ' + self.url_int + self.mount_point, self.uid)
         self.new_title = clean_string('_-_'.join(self.server_name)+'_-_'+self.session+'_-_'+self.professor+'_-_'+self.comment)
         self.short_title = clean_string('_-_'.join(self.conference)+'_-_'+self.session+'_-_'+self.professor+'_-_'+self.comment)
@@ -152,7 +152,7 @@ class Station(Conference):
                 if 'system' in jack_input and 'capture' in jack_input.split(':')[1] :
                     self.jack_inputs.append(jack_input)
         jack_ports = ' '.join(self.jack_inputs)
-        command = 'oddcastv3 -n "'+clean_string(self.conference)[0:16]+'" -c "'+self.odd_conf+ \
+        command = 'edcast_jack -n "'+clean_string(self.conference)[0:16]+'" -c "'+self.odd_conf+ \
                   '" '+ jack_ports + ' > /dev/null &'
         os.system(command)
         self.set_lock()
index 31d69fbac317d9c0bd06fa74bbcc9476f565b8be..f5ccdb1b1c16c3458b658c128c0891805a4a904d 100755 (executable)
@@ -60,7 +60,7 @@ class TeleCaster:
         self.url = self.conf['infos']['url']
 
     def main(self):
-        odd_pid = get_pid('^oddcastv3\ -n', self.uid)
+        odd_pid = get_pid('^edcast_jack\ -n', self.uid)
         rip_pid = get_pid('streamripper ', self.uid)
         writing = False
         casting = False