Thanks Peter!
Since it is likely to be a common question, I have added your trick to the
cookbook.
++
Sam.
On Mon, Jan 2, 2012 at 4:42 PM, Peter Retep <[email protected]> wrote:
> Hi, try this one:
>
> I guess you are talking about audio archives and not about log archives...
>
> output.file(
> %wav(stereo=true),
> "/mnt/archive/raw/%Y-%m-%d/%Y-%m-%d-%H_%M_%S.wav",
> on_close=fun(s)->system("qwavheaderdump -F #{s}"),
> reopen_when={0m0s},
> mksafe(radio)
> )
>
> this will hourly save a new audio archive file.
>
> You need to install quelcom package to use qwavheaderdump (in case of any
> process stops, wav header will be correct)
> You can remove on_close line, if you do not use it.
> You could use other reopen_when intervals ({0m0s} is hourly, {0h0m0s} is
> daily.)
> You can use other file directory and filenaming.
>
> please see output.file docu for mor details
> http://savonet.sourceforge.net/doc-svn/reference.html#output_file
>
> BR, Peter
>
> Am 02.01.2012 16:17, schrieb [email protected]:
> > Pascal Vanbel - Radio Universitaire Namuroise<[email protected]> a écrit :
> >
> >> Hello,
> >>
> >> Is it possible to create one archive by day without restarting the
> daemon ?
> >>
> >> Something like kill -USR1 works on darkice for example to force
> >> reopen new archive files
> >>
> >> Thx a lot
> >>
> >> PVB
> >>
> > Hi,
> >
> > Do you mean an "audio" archive?
> >
> > At the moment, I'm trying to settle this in my project.
> >
> > I'm already able to transcode-record my stream in a local file and it
> > works very well(24 Kb/s, 16 Khz, mono to save disk space).
> >
> > Now, I've planned to experiment on using unix "logrotate" utility to
> > store daily a new time stamped archive, but not tested yet.
> > This should work without needing to kill or restart the output stream
> > and should be totally automated rotating on a monthly basis.
> >
> > Does this correspond to your needs?
> >
> > Fred
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> > infrastructure or vast IT resources to deliver seamless, secure access to
> > virtual desktops. With this all-in-one solution, easily deploy virtual
> > desktops for less than the cost of PCs and save 60% on VDI infrastructure
> > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users