ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9806|回复: 0

[Windows] 想在视频中加入水印,在node中使用什么方法,我用的fluent-...

[复制链接]
发表于 2018-8-3 10:10:24 | 显示全部楼层 |阅读模式
想在视频中加入水印,在node中使用什么方法,我用的fluent-ffmpeng,求大神指导
        var ffmpeg = require('fluent-ffmpeg');
        var command = ffmpeg(req.file.path)
        .videoFilters(
            {
              filter: 'fade',
              options: ['in', 0, 30]
            },
            {
              filter: 'filter2',
              options: { w: 640, h: 480, x: 0, y: 40, color: 'violet' }
            }
          )
        .videoBitrate(option.bitrate)
        .aspect(option.ratio)
        .autopad('#000')
        .fps(option.fps)
        .format(option.format)
        .save()


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-27 00:40 , Processed in 0.048073 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表