multiple drawtext parameters

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

multiple drawtext parameters

mromey
Want to use ffmpeg to publish quickTimes and thumbnails for our asset management system.  Evaluating how viable ffmpeg would be as a replacement to our current system.  In the past I have done it lots of different ways.  I have used After Effects, Nuke, RVIO, python and pil.  Thus far I am impressed with ffmpeg but having some difficulty with some parameters.   Exploring the drawtext filter.  I have the following example.

ffmpeg.exe -i C:/temp/input.mov -vf drawtext="arial.ttf=':text='TEST'" C:/temp/output.mov

Have a few questions:

1.  Is it possible to process multiple drawtext in the same IO stream.  I would rather load the movie or image sequence once into memory once then apply each drawtext overlay rather than process the addition of each drawtext and load the file each time.  If this is possible can somebody help by showing me the syntax.

2.  One of the drawtext burn ins needs to be a frame counter.  Is it possible to send some type of internal variable/flag to the value of text that would use the frame number in lieu of static text?

3.  Was hoping to get some direction as to how I would take a single frame slate file and append it to a quicktime via ffmpeg.

Thanks for the help in advanced.

Romey

Reply | Threaded
Open this post in threaded view
|

Re: multiple drawtext parameters

Stefano Sabatini
On date Friday 2011-05-27 06:14:20 -0700, mromey encoded:

> Want to use ffmpeg to publish quickTimes and thumbnails for our asset
> management system.  Evaluating how viable ffmpeg would be as a replacement
> to our current system.  In the past I have done it lots of different ways.
> I have used After Effects, Nuke, RVIO, python and pil.  Thus far I am
> impressed with ffmpeg but having some difficulty with some parameters.  
> Exploring the drawtext filter.  I have the following example.
>
> ffmpeg.exe -i C:/temp/input.mov -vf drawtext="arial.ttf=':text='TEST'"
> C:/temp/output.mov
>
> Have a few questions:
>
> 1.  Is it possible to process multiple drawtext in the same IO stream.  I
> would rather load the movie or image sequence once into memory once then
> apply each drawtext overlay rather than process the addition of each
> drawtext and load the file each time.  If this is possible can somebody help
> by showing me the syntax.

You can put different drawtext filter in sequence:
-vf drawtext=text="text1",drawtext=text="text2",...

> 2.  One of the drawtext burn ins needs to be a frame counter.  Is it
> possible to send some type of internal variable/flag to the value of text
> that would use the frame number in lieu of static text?

It is possible but we have yet to find a syntax for doing it in an
extensible way.

> 3.  Was hoping to get some direction as to how I would take a single frame
> slate file and append it to a quicktime via ffmpeg.

That would be a concatenation filter, yet to be
implemented/integrated, patches are welcome, in alternative file a
feature requests (and sponsorships are welcome as well).
 
> Thanks for the help in advanced.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: multiple drawtext parameters

mromey
Hi Stefano,

Thanks for the great direction.

I am pretty sure I attempted to do multiple drawtext filters the way you outlined without much luck.  I will try again.  Could be that I need a newer build of ffmpeg.  Will check it out. 

As for the frame counter variable.  One suggestion would be to adopt a variable commonly used in compositing  packages.  They use %04d.  This designates a padded number with 4 digits.

Would love to contribute to ffmpeg.  At this point I have only been using pre compiled builds of ffmpeg.  I don't do all that much C++ coding.  Really focus my development on python.  I will investigate the source and see how approachable the code is.  Otherwise where would I make a request to consider future concatenation filters additions?

Thanks again for the direction.

Romey

Sent from my iPhone

On May 27, 2011, at 3:26 PM, "Stefano Sabatini [via FFmpeg-users]"<[hidden email]> wrote:

On date Friday 2011-05-27 06:14:20 -0700, mromey encoded:

> Want to use ffmpeg to publish quickTimes and thumbnails for our asset
> management system.  Evaluating how viable ffmpeg would be as a replacement
> to our current system.  In the past I have done it lots of different ways.
> I have used After Effects, Nuke, RVIO, python and pil.  Thus far I am
> impressed with ffmpeg but having some difficulty with some parameters.  
> Exploring the drawtext filter.  I have the following example.
>
> ffmpeg.exe -i C:/temp/input.mov -vf drawtext="arial.ttf=':text='TEST'"
> C:/temp/output.mov
>
> Have a few questions:
>
> 1.  Is it possible to process multiple drawtext in the same IO stream.  I
> would rather load the movie or image sequence once into memory once then
> apply each drawtext overlay rather than process the addition of each
> drawtext and load the file each time.  If this is possible can somebody help
> by showing me the syntax.
You can put different drawtext filter in sequence:
-vf drawtext=text="text1",drawtext=text="text2",...

> 2.  One of the drawtext burn ins needs to be a frame counter.  Is it
> possible to send some type of internal variable/flag to the value of text
> that would use the frame number in lieu of static text?

It is possible but we have yet to find a syntax for doing it in an
extensible way.

> 3.  Was hoping to get some direction as to how I would take a single frame
> slate file and append it to a quicktime via ffmpeg.

That would be a concatenation filter, yet to be
implemented/integrated, patches are welcome, in alternative file a
feature requests (and sponsorships are welcome as well).
 
> Thanks for the help in advanced.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user



If you reply to this email, your message will be added to the discussion below:
http://ffmpeg-users.933282.n4.nabble.com/multiple-drawtext-parameters-tp3555294p3556543.html
To unsubscribe from multiple drawtext parameters, click here.