[FFmpeg-user] dynamic image overlay
mwambler at yahoo.com
Fri Jan 23 15:46:01 CET 2015
On Friday, January 23, 2015 5:24 AM, Werner Robitza <werner.robitza at gmail.com> wrote:
On Fri, Jan 23, 2015 at 3:28 AM, Mark <mwambler-at-yahoo.com at ffmpeg.org> wrote:
> Thanks for responding. I'd like to alter the overlay image / watermark based on an external condition. So far I've tried pointing the image input to an http servlet that will alter the image data. Didn't work as it seems ffmpeg caches the remote image after the first call.
So, put differently, there's a live encoding process and you'd like to
change the watermark image dynamicall during encoding?
(Please don't top-post.)
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
That is correct. Below is the command line I'm using currently as a test. Note that the url used in the second input is calling server side code that serves up the image file(s). Is there a param to turn off caching of the image so ffmpeg will continue to poll the image?
ffmpeg -i movie.mp4 -i http://localhost/api/images/v1/overlay.png -filter_complex "[0:v][1:v]overlay=W-w-10:H-h-10[watermark]" -map "[watermark]" -map 0:a -codec:v libx264 -preset veryfast -crf 18 -codec:a copy output.mp4
More information about the ffmpeg-user