teamcoltra/php-video-to-gif 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

teamcoltra/php-video-to-gif

Composer 安装命令:

composer require teamcoltra/php-video-to-gif

包简介

A video to GIF converter package creating a new GIF for every new subtitle line using PHP-FFMpeg and Imagick

README 文档

README

License

A video to GIF converter package using PHP-FFMpeg and Imagick.

Features

  • Convert video files to animated GIFs with subtitles
  • Customizable text styling and positioning (TODO)
  • Supports various video formats

Requirements

  • PHP 8.1 or later
  • FFmpeg (with PHP-FFMpeg library)
  • ImageMagick (with Imagick PHP extension)

Intallation

composer require teamcoltra/php-video-to-gif

Usage

use TeamColtra\PhpVideoToGif\VideoToGifConverter;

$converter = new VideoToGifConverter();
$converter->convert('path/to/video.mp4', 'path/to/subtitles.srt','path/to/output');

Your output path defaults to gif/ and will create the directory if it doesn't already exist.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs or feature requests.

License

This package is open source and available under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

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