定制 ac/transcoding-bundle 二次开发

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

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

ac/transcoding-bundle

最新稳定版本:0.4.3

Composer 安装命令:

composer require ac/transcoding-bundle

包简介

Provides container services for using the AC Transcoding component in your Symfony2 project.

README 文档

README

This bundle provides container services for loading the file transcoder in your own code.

This bundle is developed in sync with the http://github.com/AmericanCouncils/Transcoding repository.

Configuration

You can copy/paste the config block below into your app/config.yml and modify as needed:

ac_transcoding:
    ffmpeg: 
        enabled: true           #if false, other keys need not be specified
        path: /usr/bin/ffmpeg
        timeout: 0
    handbrake:
        enabled: true           #if false, other keys need not be specified
        path: /usr/local/bin/HandBrakeCLI
        timeout: 0

Services

  • transcoder - will return an instance of AC\Transcoding\Transcoder, automatically registering any tagged Adapters, Presets, and Listeners

You can use the transcoder service to transcode a file:

$newFile = $container->get('transcoder')->transcodeWithPreset('/path/to/input/file', 'handbrake.classic', '/path/to/output/file');

Container Tags

Various container tags are implemented to allow easy registration of custom Adapters, Presets & event listeners into the transcoding. See the list below:

  • transcoding.adapter
  • transcoding.preset
  • transcoding.listener
  • transcoding.subscriber

Commands

The bundle provides a few commands for accessing the transcoder via the command line:

  • transcoder:transcode [infile] [preset] [outfile] - Transcodes an input file with a preset, creating the output file. You can use this to test custom presets and adapters if necessary.
  • transcoder:status - Displays a list of enabled and working adapters based on current configuration, plus a list of usable presets.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-08-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固