承接 elisevgeniy/yii2-ffmpeg 相关项目开发

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

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

elisevgeniy/yii2-ffmpeg

最新稳定版本:1.0.5

Composer 安装命令:

composer require elisevgeniy/yii2-ffmpeg

包简介

convert media from one format to other

README 文档

README

convert media from one format to other

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist elisevgeniy/yii2-ffmpeg "*"

or add

"elisevgeniy/yii2-ffmpeg": "*"

to the require section of your composer.json file.

Configuration

Install ffmpeg in your system if not installed. To use this extension, you have to configure the Connection class in your application configuration:

return [ //.... 'components' => [ 'ffmpeg' => ['class' => '\rbtphp\ffmpeg\Ffmpeg', 'path' => '/usr/bin/ffmpeg' ], ] ];

Usage

Once the extension is installed, simply use it in your code by :

$args = array('type' => 'audio/video/image', 
			'input_file' => '/home/user/Pictures/movie.mp4', 
			'output_file' => '/home/user/Pictures/movie.mov', 
			'audio_bit_rate' => '20k', 
			'video_bit_rate' => '10k', 
			'thumbnail_image' => '/home/user/Pictures/movie.gif',
			'thumbnail_generation' => 'yes/no',
			'thumbnail_size' => '100x100'
		);
			
echo Yii::$app->ffmpeg->ffmpeg($args);```

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-11-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固