有没有办法在PHP中为mp4 / m4v文件添加水印?这些文件已保存在服务器上,但在显示时,我希望通过PHP(标题输出)来放置水印。
这是我目前的PHP代码:
$fp = fopen($path, 'rb');
// Change the header to whatever your file's mime type is
header("Content-Type: " . $ctype);
header("Content-Length: " . filesize($path));
fpassthru($fp);
exit;