Home >Backend Development >PHP Tutorial >七牛云存储 - 视频处理与视频水印生成能否在一次处理中完成 PHP API

七牛云存储 - 视频处理与视频水印生成能否在一次处理中完成 PHP API

WBOY
WBOYOriginal
2016-06-06 20:47:482094browse

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中的';'用于分隔多个独立的处理任务
先转码后加水印的操作用一条管道操作的命令就可以了。

把 ; 改成 | 就行咯

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn