[darkice] problem with SIGUSR1 cut function

  • From: Technik Radio Frei <technik@xxxxxxxxxxxxx>
  • To: darkice@xxxxxxxxxxxxx
  • Date: Fri, 20 Nov 2009 21:32:42 +0100

Hello,

try tu use darkice as logger. It starts and records but when I send
SIGUSR1 I get the following error:


darkice -v 10
DarkIce 0.20 live audio streamer, http://darkice.tyrell.hu/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/

Using config file: /etc/darkice.cfg
20-Nov-2009 20:56:15 Using ALSA DSP input device: default
20-Nov-2009 20:56:15 encoding
20-Nov-2009 20:56:15 scheduler high priority 99
20-Nov-2009 20:56:15 Using POSIX real-time scheduling, priority 98
---------------------------------------------------------
LibTwoLame 0.3.12 (http://www.twolame.org)
Input : 44100 Hz, 2 channels
Output: 44100 Hz, J-Stereo
256 kbps CBR MPEG-1 Layer II psycho model=3
[De-emph:Off     Copyright:No     Original:Yes]
[Padding:Off     CRC:Off          Energy:Off  ]
---------------------------------------------------------
20-Nov-2009 20:56:15 MultiThreadedConnector :: tranfer, bytes
20-Nov-2009 20:56:15 MultiThreadedConnector :: ThreadData ::
threadFunction, was (thread, priority, type):  00x66faf0
 98 SCHED_FIFO
20-Nov-2009 20:56:15 MultiThreadedConnector :: ThreadData ::
threadFunction, now is (thread, priority, type):  0x66faf0 1 SCHED_FIFO
20-Nov-2009 20:57:13 cutting
20-Nov-2009 20:57:13 cutting ends
20-Nov-2009 20:57:13 error during archive cut FileSink.cpp:330: can't
find file /tmp/darkice.file-0.21922 [0]
^C



In fact, there is no file in /tmp/darkice.file-0.21922
So every time I send SIGUSR1 my record file will be written from start,
the previous recorded data are lost.



This is my darkice.cfg:

[general]
duration        = 0
bufferSecs      = 5
reconnect       = yes

[input]
device          = default
sampleRate      = 44100
bitsPerSample   = 16
channel         = 2

[file-0]
format=mp2
bitrateMode=cbr
bitrate=256
fileName=/home/rf/tmp/00-test.mp2
#fileAddDate=yes


Thanks for any help
best Regards

Steffen


-- 
Steffen Müller
Technik

Radio F.R.E.I.
Freier Rundfunk Erfurt International

Gotthardtstraße 21
99084 Erfurt

http://www.radio-frei.de

Other related posts:

  • » [darkice] problem with SIGUSR1 cut function - Technik Radio Frei