Heim >Backend-Entwicklung >PHP-Tutorial >七牛云存储 - 视频处理与视频水印生成能否在一次处理中完成 PHP API
http://hayoou1.u.qiniudn.com/before.mp4?avthumb/android_high|vwatermark/1/image/aHR0cDovL2hheW9vdS5xaW5pdWRuLmNvbS9oYXlvb3UlMjBsb2dvMjIucG5n
在$putPolicy ->PersistentOps 能否这样写呢
avthumb/iphone_high;vwatermark/1;image/$waterlogo;gravity/NorthEast;format/mp4
http://hayoou1.u.qiniudn.com/before.mp4?avthumb/android_high|vwatermark/1/image/aHR0cDovL2hheW9vdS5xaW5pdWRuLmNvbS9oYXlvb3UlMjBsb2dvMjIucG5n
在$putPolicy ->PersistentOps 能否这样写呢
avthumb/iphone_high;vwatermark/1;image/$waterlogo;gravity/NorthEast;format/mp4
persistentOps中的';'用于分隔多个独立的处理任务
先转码后加水印的操作用一条管道操作的命令就可以了。
把 ; 改成 | 就行咯