Download the PHP package ping-qu/transcode without Composer

On this page you can find all versions of the php package ping-qu/transcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package transcode

接入概述

1、到屏趣云后台申请access_key和access_secret

2、在屏趣云后台管理创建队列,创建转码模板和回调通知

3、安装转码sdk填入access_key和access_secret

4、提供回调地址,接收转码任务结果通知。依据接口文档实现业务逻辑

1、转码sdk的接入

安装

使用

1、添加视频转码任务

参数说明: 参数 描述 示例
objectKeyInput 输入文件 video/test.mp4
objectKeyOutput 输出文件 video/test.m3u8
type 转码类型 mp4、m3u8
preset_id 模板id,在屏趣云后台配置 1
pipeline_id 在屏趣云后台申请到的队列id 1

返回格式 array( 'message'=>'', 'data'=>'',//job_id等信息 'errorId'=>'', 'statusCode'=>0 )

statusCode状态码表述

statusCode 描述
200 成功
400 access_key错误
401 签名失败
422 参数错误
500 内部服务器错误

2、刷新转码

3、添加直播转码任务

其中$preset_id_array为模板数组,如果传空数组则不转码,1为默认模板,可以在屏趣云后台创建直播转码模板

返回格式:

2、转码回调

请求方式:post

参数 描述
job_id 转码任务id
output_file 输出文件
state 转码状态,1成功,-1失败
type 文件类型
duration 时长
input_file 输入文件
signature 签名

你需要在接收回调的接口调用验证签名的方法

getCallbackData封装了回调验签

3、计费

屏趣云只负责转码,不负责存储转码后的文件,文件将按队列信息中填写的OSS信息上传到对应的OSS,屏趣云按转码文件流入大小收取转码费用。 image


All versions of transcode with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
ping-qu/core Version 1.0.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ping-qu/transcode contains the following files

Loading the files please wait ....