Hi all,
I am having problems trying to add a logo on a vstack/hstack composition using ffmpeg.
I have tried numerous combinations but I can only add the logo over the first input video, but not over any position in the available space of the montage/composition.
I need to add the logo sometimes over the space used by the second input or the third, or over any other point.
My command line is as follow ...
For example I cannot add the logo over the second video/input using ...Code:./ffmpeg -i movie0 -i movie1 -i movie2 -i logo.png -filter_complex "vstack=inputs=3,drawtext=text=\'movie0\',drawtext=text=\'movie1\',drawtext=text=\'movie2\' -map 0:v? -map 1:v? -map 2:v? -pix_fmt yuv420p -c:v libx264 -an -y output
Any idea about how to be able to use any space of the composition to insert the logo via overlay?Code:[1:v][3:v]overlay=x=50:y=240,vstack=inputs=3 ...
Thank you very much in advance
Mapg
+ Reply to Thread
Results 1 to 5 of 5
-
-
Something like:
Code:ffmpeg -i movie0 -i movie1 -i movie2 -i logo.png -filter_complex "[0:v]drawtext=text=\'movie0\'[a];[1:v]drawtext=text=\'movie1\'[b];[2:v]drawtext=text=\'movie2\'[c];[a][b][c]vstack=inputs=3[stack];[stack][3:v]overlay=x=50:y=240[out]" -map "[out]" -pix_fmt yuv420p -c:v libx264 -an -y output
Last edited by sneaker; 22nd Sep 2019 at 10:23.
-
Did you forget one or more of the input files? (Always) post your complete command/log.
-
Similar Threads
-
Video Overlay (watermark/animated logo)
By zkazzay in forum Newbie / General discussionsReplies: 10Last Post: 15th Feb 2019, 08:59 -
FFMPEG: how to overlay to video some data?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 1st Oct 2017, 04:46 -
add logo in ffmpeg Without loss of quality
By sarjukhe in forum Video Streaming DownloadingReplies: 4Last Post: 26th Mar 2017, 16:26 -
ffmpeg overlay question
By Basher06 in forum Newbie / General discussionsReplies: 0Last Post: 19th Jun 2015, 04:52 -
ffmpeg - howto encode creation date/time overlay from metadata
By hydra3333 in forum EditingReplies: 6Last Post: 20th Dec 2014, 18:19