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

Ashwin Ganti aganti2
Fri Jul 13 21:52:24 CEST 2007


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.

Thanks,
Ashwin Ganti.
Graduate Student
National Center for Data Mining
University of Illinois at Chicago

-- 
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies and the
other way is to make it so complicated that there are no obvious
deficiencies." -- C.A.R. Hoare, The 1980 ACM Turing Award Lecture
www.cs.uic.edu/~aganti
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patchffmpeg
Type: application/octet-stream
Size: 1642 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070713/0845954f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: README
Type: application/octet-stream
Size: 2040 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070713/0845954f/attachment-0001.obj>



More information about the ffmpeg-devel mailing list