On Wed, Jul 20 2016, Miguel Paolino <[email protected]> wrote: > Let me cut to the chase, is there a possibility to tell fIcy to slice > a single recording stream into separate files without exiting? Its not > clear from the docs. I can do it via a script, launching fIcy in a
By default, fIcy can do that when -m is used. It will split based on the title passed into the stream. > This has the obvious problem of loosing stream information while > reconnecting and recording starts again; also creating other issues, > like potentially loosing a place in a limited listeners pool and never > being able to rejoin the stream. I think we discussed something like this not too long ago: http://article.gmane.org/gmane.comp.audio.ficy.user/77 There are many tools already that split the output only based on size or time. In the example above (look in the thread for other example), we used rotatelogs from the apache-utils to do it. > Another possibility would be to create another program/script that > handles the slicing while reading from a pipe that fIcy uses to send > audio data, but this also introduces other problems. fIcy by default dumps the pure audio stream directly on the output so that it can be processed. > I find this use case quite common, is there a way to achieve this with > fIcy right now? I never thought of this scenario when I wrote fIcy, but I definitely see that for archiving the metadata is often irrelevant. The only annoying thing is that fIcy already supports quite a few switches for the output, and it definitely would need a new one to set the time/size base of the split (and resulting filename). I think that rotatelogs can be a quick fix for your problem, and an example in the docs is warranted. It's not perfect when using in combination with daemonization though, as outlined in the thread I linked.
