yeah, it works!
thanks so much!
2011/08/28 15:00:00 [/mnt/archive/piradio/%Y-%m-%d/%Y-%m-%d-%H_%M_%S(dot)wav:3]
Re-opening output file...
/mnt/archive/piradio/2011-08-28/2011-08-28-14_51_08.wav (93851900 bytes):
riff: 'RIFF'
riff length: -268435457
riff length field should be 93851892
fixed
wave: 'WAVE'
fmt: 'fmt '
fmt length: 16
format: 1
channels: 2
sample rate: 44100
bytes/second: 176400
bytes/sample: 4
bits/sample: 16
data: 'data'
data length: -268435493
data length field should be 93851856
fixed
2011/08/28 15:02:01 [fallback_4951:3] Switch to src_4947 with transition.
BR, Peter
Am 23.08.2011 14:11, schrieb David Baelde:
> Hi Peter,
>
> Romain and I didn't see a better solution than adding on_close, so I
> implemented it (commit b57a1b3bd7ae). Let me know how this works for
> you. For example, you may use
> output.file(%wav,"file%Hwhatever.wav",on_close=fun(s)->system("qwavheaderdump
> -F #{s}"),reopen_when={0m},...,source).
>
> On Mon, Aug 22, 2011 at 6:52 PM, Peter Retep<[email protected]> wrote:
>> Calling a external tool triggered by on_close would require to use the
>> current filename in a command line, which is currently not supported.
> This was not the main motivation for adding it, but the new on_close
> will give you the actual filename which has been used, with the %H and
> other special things interpreted.
>
>> A advantage would be that you dont need additional fix tools unless you use
>> them.
> Yes, and it allows us to keep an encoder that works both for streams and
> files.
>
>> WAV: qwavheaderdump -F (quelcom package, tested).
>> MP3: mp3check --fix-headers (not tested).
> Thanks for the reminder (though I don't know of any problem with the
> standard %mp3 output that needs to be fixed afterwards). Once you have
> tested one or both of these features, it would be nice if you could
> propose either a snippet for
> http://wiki.sourcefabric.org/display/LS/User+Snippets or a
> documentation paragraph for the %wav section of
> http://savonet.sourceforge.net/doc-svn/encoding_formats.html (or
> perhaps something to add to output.file's short documentation).
>
> Cheers,
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users