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,
-- 
David

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to