ffmpeg -i v.3gp -acodec copy -vf "movie=w.png [logo]; [in][logo] overlay=10:main_h-overlay_h-10 [out]" nv.3gp
It work's fine, but i want watermark only first 30 seconds. Any ideas?
ffmpeg -i v.3gp -acodec copy -vf "movie=w.png [logo]; [in][logo] overlay=10:main_h-overlay_h-10 [out]" nv.3gp
It work's fine, but i want watermark only first 30 seconds. Any ideas?
overlay
filter supports timeline editing; you can simply read from a png file and thenoverlay=enable='lte(t,30)':...
You may cut the first 30 seconds, apply watermark to it, then join it with the remaining part.
You can convert the logo into a 30 second video with png codec and alpha channel, and apply the video as overlay.
The duration of the logo video should be specified through the number of frames at the frame rate of the main video (in your case, v.3pg). For example, for 30 fps main video run:
The logo needs to be faded out; otherwise it will not disappear. Then use the logo video as overlay on another video:
Alternatively, rather then ending abruptly, the logo can be faded out gradually, e.g. within 30 frames using
-vf "fade=out:870:30:alpha=1"
.Realize it's late, but as I was looking at a similar problem I managed to solve this one. It fades in with 0.5 sec from start, then fades out at 30 sec