www.BinaryAlchemy.de :: View topic - postscript with *frame* in ffmpeg drawtext filter
 SearchSearch   RegisterRegister  ProfileProfile   UsergroupsUsergroups   Log inLog in 
If you create a new post, please use a topic that describes your problem
Documento sin título
 
postscript with *frame* in ffmpeg drawtext filter

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.BinaryAlchemy.de Forum Index -> old - RR Questions - v6.x
View previous topic :: View next topic  
Author Message

mschreck



Joined: 22 Mar 2010
Posts: 6

PostPosted: Mon Jan 13, 2014 9:27 pm    Post subject: postscript with *frame* in ffmpeg drawtext filter Reply with quote

Hi,

using the "drawtext filter" i can succsesfully add royal render values like <UserName> or <TotalFrames> into the clips. Unfortunately *frame* for "current frame number" doesn´t seem to work (it gives the string *frame* instead of the value)
So I´m using the ffmpeg command %%{expr\:n+1} But this gives double precision values :(

Do you know how I can integrate the *frame* value into my commandline?
any hint appreciated-here´s the current filter commandline I´m using:

-filter_complex "[0:v]colormatrix=bt601:bt709[text];[text] drawtext=fontsize=40:fontcolor=white:shadowcolor=black:shadowx=2:shadowy=1:x=50:y=1050:fontfile=/Windows/Fonts/arial.ttf: text='SCENE:<SceneFile><UserName><TotalFrames>/%% expr\:n+1}'"


Best

Mathias


Last edited by mschreck on Mon Jan 13, 2014 10:20 pm; edited 1 time in total
Back to top
View user's profile Send private message

schoenberger
Site Admin


Joined: 02 Mar 2005
Posts: 3786

PostPosted: Mon Jan 13, 2014 9:54 pm    Post subject: Reply with quote

*frame* is a special variable know to rrCreateVideo only.
Sorry, I do not know any ffmpeg commandline flags.
What is missing in rrCreateVideo that you use ffmpeg?
_________________
Holger Schönberger
Binary Alchemy - digital materialization
Back to top
View user's profile Send private message Send e-mail

fabrice



Joined: 08 Mar 2007
Posts: 140

PostPosted: Wed Jan 22, 2014 7:03 pm    Post subject: Reply with quote

@mschreck
AFAIK there is a bug in the recent builds of FFMPEG that gives double precision values to that expression.
Read the bottom of this thread :
https://trac.ffmpeg.org/ticket/1949
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.BinaryAlchemy.de Forum Index -> old - RR Questions - v6.x All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 
Documento sin título
 



Powered by phpBB © 2001, 2002 phpBB Group



Number of shameful bots caught by Anti-Spam ACP: 1667