承接 jsdk/php-video-thumnail-generator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jsdk/php-video-thumnail-generator

Composer 安装命令:

composer require jsdk/php-video-thumnail-generator

包简介

PHP random and secure password generator class

README 文档

README

Generate thumbnail from the video file using PHP

Requirement

  • FFMPEG

Using the Library

Installation

Intall library in PHP project using composer

composer require jsdk/php-video-thumnail-generator

Using Library

use jsdk\GenerateVideoThumbnail;


$obj = new GenerateVideoThumbnail(FFMPEG_PATH);
$obj->setOutputPath('output_location');

Generating screenshot/thumbnail

Thumbnail/Screenshot can be generate by passing absolute path of the video file in following function call.

$thumbnail = $obj->generateScreenshot('video_file_path');

If you want to save Thumbnail/Screenshot to a different directory, you can pass the path of the directory as the second parameter.

$thumbnail = $obj->generateScreenshot('video_file_path', 'output_path');

NOTE

  • If output path is not set using setOutputPath() or during generateScreenshot(), it will use the path to the video file to save the screenshot.

Exception Handling

Ex:

try {
    $thumbnail = $obj->generateScreenshot('video_file_path');
} catch (Exception $exception) {
    echo $exception->getMessage();
}

Bug Reporting

If you found any bug, create an issue.

Support and Contribution

Something is missing?

  • Fork the repositroy
  • Make your contribution
  • make a pull request

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-08-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固