|
From: Kerry H. <ke...@go...> - 2010-05-12 04:36:18
|
Is it possible because you are feeding .wav data to your icecast instance that you are hitting the 2/4g limit on .wav files? My understanding is that if you want the stream to run for hours at a time you need to feed raw samples in without a .wav header so that the 4gb counter is never hit. If you use .wav then perhaps sox counts samples and dies when the count wraps? I'm just guessing but it looks like no-one else has ideas. Regards, Kerry. ----- Original Message ----- From: "Simon Eigeldinger" <sim...@vo...> To: <sox...@li...> Sent: Friday, May 07, 2010 12:19 PM Subject: Re: [SoX-users] Using SoX with Lame to stream Good morning, On 6 May 2010 at 16:16, Pascal Giard wrote: > On Thu, May 6, 2010 at 3:24 PM, Simon Eigeldinger > <sim...@vo...> wrote: > > Hello, > > > > I am using SoX and Lame to stream a mp3 stream directly from the > > sound cards line in to an icecast server on a Debian system. > > > > But after 1-3 hours the whole chain crashes and shows this message: > > fatal error: can't update LAME-tag frame! > > > > I don't know why it shows that. > > > > My command line chain is the following: > > rec -r 48000 -c 2 -b 16 -t wavpcm - | lame --resample 48000 -b 96 - - > > | ezstream -c /etc/ezstream.xml > > > > Does someone know why that happens and how to fix it so it runs > > without crashing? > > > > The audio system is ALSA. > > > > Greetings and thanks for helping, > > Simon > > Hi Simon, > which version of SoX and/or which branch of Debian are you using? I am using Debian testing and it has sox 14.3.0. > Perhaps it could be a buffer underrun issue... > If it's the case, until SoX 14.3.1 propagates to Debian unstable > mirrors, you may want to try running sox with the "--single-threaded" > parameter. Unfortunately that seems also not to work well. here is the complete output. I have made it not verbose but i will enable that i think to find the issue more better. here is what we have: $ Here we set the mixer: Simple mixer control 'Capture',0 Capabilities: cvolume cswitch cswitch-joined penum Capture channels: Front Left - Front Right Limits: Capture 0 - 15 Front Left: Capture 9 [60%] [13.50dB] [on] Front Right: Capture 9 [60%] [13.50dB] [on] $ Here sox comes into play: rec WARN wav: Length in output .wav header will be wrong since can't seek to fix it $ Ezstream is connecting: ezstream: Connected to http://localhost:8888/outside ezstream: Streaming from standard input $ Lame brings up an error message: fatal error: can't update LAME-tag frame! Greetings, Simon ------------------------------------------------------------------------------ _______________________________________________ Sox-users mailing list Sox...@li... https://lists.sourceforge.net/lists/listinfo/sox-users |