darkice icon indicating copy to clipboard operation
darkice copied to clipboard

recording lost/overwritten when reconnecting to stream

Open jelko opened this issue 6 years ago • 3 comments

When we use Darkice to stream to Liquidsoap → Icecast2 and record to a localDumpFile we encounter the following issue: When Liquidsoap is restarted, Darkice successfully reconnects, but the dumpFile is overwritten and therefore the old recording is lost. We do use fileAddDate = yes. Nonetheless the file is written to the timestamped filename when Darkice was originally started, and not to the moment of reconnection, what could be the expected behaviour.

How to reproduce?

  1. Stream and Dump to Liquidsoap
  2. Restart or Reload Liquidsoap sudo service airtime-liquidsoap restart
  3. Recorded file start from zero

Setup: Ubuntu 18.04 with Liquidsoap 1.1.1, Icecast 2.4.3 and Darkice 1.3

jelko avatar Jan 14 '19 20:01 jelko

This is a ten year old bug, I think. I fixed it here:

  • https://code.google.com/archive/p/darkice/issues/72
  • (Related: https://code.google.com/archive/p/darkice/issues/74)

darkice-proposed-fileAddDate-SIGUSR1-change-20120824.patch.txt

I've been using the attached patch on Darkice 1.1 for years. It just came up with the handover of an old project of mine. The patch may need work for Darkice 1.3.

To reproduce one can use fileAddDate and killall -USR1 darkice - darkice 1.1 just overwrote the old file. Same thing happens when reconnecting.

Perhaps someone using Darkice 1.3 can update/review the patch and submit a PR.

neingeist avatar Feb 07 '23 19:02 neingeist

This patch works fine for me, thank you, neingeist!

Is there anything to help to get this upstream?

bjacke avatar Mar 14 '23 13:03 bjacke

ping. Looking at this and other reported issues without feedback, I'm wondering if darkice is still actively maintained (?)

bjacke avatar May 30 '23 08:05 bjacke