kloschi
2006-Apr-11 11:21 UTC
[Icecast] on-disconnect -> streamtranscoderv3 (linux server)
hi, so far I'm very happy that I have running an icecast server with streamtranscoder which autimatically transcodes a certein mountpoit (ogg-high-quality) to low, mid and high mp3 stream on-connect. but I'm stuck with two problems: 1. how to determine which stramtranscoderv3 process is reencoding this particular stream? because doing <on-disconnect> just # killall streamTranscoderv3 is not useful, when other streams are also reencoded on this server. Maybe its totally easy, but I see no posibility so far, any hints? 2. streamtranscoder doesn't want to re-encode in ogg quality. it just tries to connect but reconnects regularly. how to determine whats going wrong? see the config and log below! thanks for reading, kloschi cfg-part: [..] # Output codec selection (Valid selections : MP3, OggVorbis, Ogg FLAC, AAC, AAC Plus) Encode=OggVorbis # General settings (non-codec related). Note : NumberChannels = 1 for MONO, 2 for STEREO BitrateNominal=48 BitrateMin=40 BitrateMax=56 NumberChannels=2 Samplerate=44100 # Ogg Vorbis specific settings. Note: Valid settings for BitrateQuality flag are (Quality, Bitrate Management) OggQuality=0 OggBitrateQualityFlag=Quality [..] log-part: [..] 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 04/06/06 01:20:59 Debug(liboddcast.cpp:3327): 3 Calling handle output 04/06/06 01:20:59 Debug(liboddcast.cpp:3407): In samplerate = 44100, Out = 44100 04/06/06 01:20:59 Debug(liboddcast.cpp:3454): do_encoding start 04/06/06 01:20:59 Debug(liboddcast.cpp:2475): determining left/right max... 04/06/06 01:20:59 Debug(liboddcast.cpp:3456): do_encoding end (1) 04/06/06 01:20:59 Debug(liboddcast.cpp:3463): 3 Calling handle output - Ret = 1 [..] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://lists.xiph.org/pipermail/icecast/attachments/20060411/d588d6ae/attachment.pgp
Karl Heyes
2006-Apr-11 13:21 UTC
[Icecast] on-disconnect -> streamtranscoderv3 (linux server)
kloschi wrote:> hi, > > so far I'm very happy that I have running an icecast server with > streamtranscoder which autimatically transcodes a certein mountpoit > (ogg-high-quality) to low, mid and high mp3 stream on-connect. > > but I'm stuck with two problems: > > 1. how to determine which stramtranscoderv3 process is reencoding this > particular stream? because doing <on-disconnect> just > # killall streamTranscoderv3 > is not useful, when other streams are also reencoded on this server. > Maybe its totally easy, but I see no posibility so far, any hints?when you start streamtranscoder, store the pid in a file that the disconnect script knows about. Both scripts are passed the mountpoint as the arg so you can use that to refer to a pid file. karl.