Hi everyone,

I'm having issues with output.file, here's my config:

output.file(
    %mp3(stereo=true, bitrate=192, samplerate=44100, id3v2=true),
    "/MUSIC/RECORDINGS/Live_Auto_Recording/%Y-%m-%d/XTRadio-Live-%Y-%m-%d-%H_%M_%S.mp3", fallible=true, perm=509,
    explicit
)

The recording works fine, but the issue is that it creates an almost empty file if I restart liquidsoap, I get such files:

-rwxrwxr-x 1 xt xt     626 Aug  9 11:32 XTRadio-Live-2013-08-09-11_32_55.mp3
-rwxr-xr-x 1 xt xt     626 Aug  9 11:38 XTRadio-Live-2013-08-09-11_38_01.mp3

In the logs I see:

2013/08/09 11:38:01 [/MUSIC/RECORDINGS/Live_Auto_Recording/%Y-%m-%d/XTRadio-Live-%Y-%m-%d-%H_%M_%S(dot)mp3:3] Source failed (no more tracks) stopping output...

Is there any workaround for this?

Also if I use input.harbor, it has a dumpfile, can I use %Y-%m-%d for the filename and/or directories? That seems to work fine, I do get it's for debugging purposes, but seems it's working better, than the above config.

Thank you for your responses.

Best regards,
        Ákos Veres

_____________________________________________
http://akos.me - A little about me.