Hi,

I'm having several issues with output.file.

First is my recordings seem to be truncated by 1-2 seconds or so.
Second is I use output.file to record the live DJ sets and often the
different DJs signal will be mixed across different recordings.
Here is an example:
https://gist.github.com/mcfiredrill/d0ec0553ce4b4e6f82cf6bf0c55f58a0

So dj1.mp3 will be incomplete, missing the last 1 second or so.
dj2.mp3 will contain the last 1 second of dj1's recording that was missing,
as well as all of dj2's recording.

I've tried a couple of different approaches to fix this.

First is an approach using the reopen_when parameter of output.file to
change the filename of recording when dj connects/disconnects are detected.
You can view my branch with this version of the code here:
https://github.com/datafruits/radio/blob/b49e5ad14c43925eafe983c8e7f040e4316e7fe4/liquidsoap/radio.liq#L172

This led to basically the same results, although a bit worse honestly
because I also ended up with a filename with no dj name: "radioname-.mp3"
that contained the start of the recording before reopen_when kicked in and
changed the filename.

The second approach I took was creating output.file sources dynamically
when a dj connected, and shutting them down on disconnect. This seems to
work well but has the exact same issue of recordings getting cut short and
mixed up between DJs.

You can view my branch with this version of the code here:
https://github.com/datafruits/radio/blob/a3cb0974c8aa872d6b6f12fecc2698cf32584857/liquidsoap/radio.liq#L168

The issue may be exacerbated by the fact that in my tests, I am
connecting/disconnecting with different DJ accounts very quickly, as
quickly as I can.  In real life it may be that the DJs do not
connect/disconnect back to back so quickly, but as more programming fills
my station I increasingly have different DJs streaming live back to back,
with very short intervals between different DJs connecting/disconnecting,
and this *does seem to be a real issue* in practice.

Is there any reliable way I can have completely separate recordings for
different DJs in my setup?

Thanks
-- 
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrull.tumblr.com
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to