[FFmpeg-devel] [PATCH] extend vhook to accept command line arguments from a file

Michael Niedermayer michaelni
Fri Jul 13 22:39:11 CEST 2007


On Fri, Jul 13, 2007 at 02:52:24PM -0500, Ashwin Ganti  wrote:
> Hi All,
> Please find attached a patch that extends the current vhook
> functionality to make ffmpeg accept vhook arguments from a file
> instead of the command line.
> This is my first email to the list and I want to know if this patch
> can be committed to the ffmpeg source.
> Description of the patch:
> - Applies on revision 9558 of ffmpeg.
> - creates a new command line option "-vhookf" that accepts a file
> name as its argument.
>   The file name contains the list of arguments that would be
> otherwise be passed to vhook in the command line.
> - Please have a look at the attached README to see how exactly the
> new option ( "-vhookf" ) would be used.
> Advantage with this patch:
> vhook works fine if you have a few number of images to be overlayed on
> the video which you can specify directly on the command line. But when
> you have a very large number of images to be overlayed on multiple
> locations on the video and at different points in time, you may want
> to have all the arguments supplied to ffmpeg through a file instead of
> having an enormously long command line option.
> I am using the patched version of ffmpeg currently for the project
> that I am working on in my lab.
> Any suggestions on this are more than welcome.
> Please let me know if there are any more improvements that can be made
> so that I can work on them and resubmit.

this feature is already supported through your friendly shell
ffmpeg ... `cat myfile` ...

additionally vhook is deprecated and will likely be removed in a few weeks

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070713/5c9b370b/attachment.pgp>

More information about the ffmpeg-devel mailing list