定制 jeankassio/videotogif 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jeankassio/videotogif

最新稳定版本:0.5.9

Composer 安装命令:

composer require jeankassio/videotogif

包简介

A simple video to gif converter that uses FFMPEG and simplifies the whole process for you.

README 文档

README

A simple video to gif converter that uses FFMPEG and simplifies the whole process for you. The entire process is done in base64, from input to output

Total Downloads License: MIT

You must have FFMpeg installed in your PATH on your system. If not, follow this tutorial.

Installation

The recommended way to install is using Composer.

$ composer require jeankassio/videotogif

How to use?

use JeanKassio\VideoToGif;
  
  $converter = new VideoToGif();
  
  $b64 = "data:video/mp4;base64,AAAAGGZ0eXBtcDQyAAAAAGlzb2...";
  
  $result = $converter->convert($b64);

  var_dump($result);

And the result will look like:

array(4) { 
  ["gif"]=> string(304970) "data:image/gif;base64,R0lGODlhkAGWAfcAAD4AND4UPUMHN1YBNEkUO1UYPGUWO1cl..." (Hidden to save on reading)
  ["fps"]=> int(29) 
  ["width"]=> int(400) 
  ["height"]=> int(406) 
}

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-03