Streaming text with libavfilter drawtext
Hi! Just for info I have at least tried to search this list for an answer before posting. I have a streaming text that I would like to get added to my stream. What I'm aiming for here is to get data.txt re-read every second so the textdata in that(that updates every 0.1 seconds) will be shown in my stream: ffmpeg -f dshow -i video="Integrated Camera":audio="Internal Microphone (Conexant 2" -s 320x240 -r 30 -metadata title="my soo awesome video" -loglevel warning -vf drawtext=fontfile=arial.ttf:fontcolor=white:shadowcolor=black:x=100:y=x/dar:textfile='data.txt' -f flv rtmp://698400.fme.bambuser.com/b-fme/myuserid I have tested to add draw=lt(mod(t\,1)\,1) but what I'm looking for is really redraw=every second. If this is not possible to achieve please redirect to the source code for adding that option, if you got time. BR David
Le duodi 12 frimaire, an CCXXI, dave@arthistory.cc a écrit :
Just for info I have at least tried to search this list for an answer before posting.
I have a streaming text that I would like to get added to my stream. What I'm aiming for here is to get data.txt re-read every second so the textdata in that(that updates every 0.1 seconds) will be shown in my stream:
This is not currently possible. Please tell me if the following patch: http://ffmpeg.org/pipermail/ffmpeg-devel/2012-December/135176.html would suit your needs. Note that it reloads the text for each frame rather than every second; given the amount of work that drawtext must perform, this is not a big issue IMHO. Regards, -- Nicolas George
Yes that would actually be perfect! You haven't submit it to git. I will try tomorrow to build it. On 2012-12-02 20:01, Nicolas George wrote:
Just for info I have at least tried to search this list for an answer before posting.
I have a streaming text that I would like to get added to my stream. What I'm aiming for here is to get data.txt re-read every second so the textdata in that(that updates every 0.1 seconds) will be shown in my stream: This is not currently possible. Please tell me if the following patch: http://ffmpeg.org/pipermail/ffmpeg-devel/2012-December/135176.html would suit your needs. Note that it reloads the text for each frame rather
Le duodi 12 frimaire, an CCXXI, dave@arthistory.cc a écrit : than every second; given the amount of work that drawtext must perform, this is not a big issue IMHO.
Regards,
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
participants (3)
-
dave@arthistory.cc -
David Näsvik -
Nicolas George