ffmpeg watermark first 30 second

前端 未结 1 1159
感情败类
感情败类 2020-12-15 00:58
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 waterma

相关标签:
1条回答
  • 2020-12-15 01:29

    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:

    ffmpeg.exe -loop 1 -i w.png -vframes 901 -vf "fade=out:899:1:alpha=1" 
        -vcodec png -pix_fmt rgba w.mov
    

    The logo needs to be faded out; otherwise it will not disappear. Then use the logo video as overlay on another video:

    ffmpeg -i v.3gp -acodec copy -vf "movie=w.mov [logo]; [in][logo]
        overlay=10:main_h-overlay_h-10 [out]" nv.3gp
    

    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".

    0 讨论(0)
提交回复
热议问题