Download the PHP package maplesnow/php-ffmpeg without Composer
On this page you can find all versions of the php package maplesnow/php-ffmpeg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maplesnow/php-ffmpeg
More information about maplesnow/php-ffmpeg
Files in maplesnow/php-ffmpeg
Package php-ffmpeg
Short Description PHP FFMpeg - Video Transcoding & Streaming
License MIT
Homepage https://github.com/summerway/php-ffmpeg
Informations about the package php-ffmpeg
概述
该工具由aminyazdanpanah/PHP-FFmpeg-video-streaming改写而成,兼容php7.0及以上版本。
将ffmpeg常用操作包装简化,支持视频转码(video->mp4)和视频呢转流(video->dash、video->hls)功能。
视频文件可选自本地或者七牛,转化后文件也可选择保留本地目录或者存储到七牛云端。
要求
-
该工具要求7.0及以上。
- 依赖 FFMpeg。需要系统支持
FFMpeg
和FFProbe
。
安装
配置
指定ffmpeg初始配置参数
打开文件
目前支持2种打开方式
本地
七牛云
视频转码
mp4格式输出
DASH
Dynamic Adaptive Streaming over HTTP (DASH), also known as MPEG-DASH, is an adaptive bitrate streaming technique that enables high quality streaming of media content over the Internet delivered from conventional HTTP web servers.
自定义Representation
参数
更多参数详见 DASH options
HLS
HTTP Live Streaming (also known as HLS) is an HTTP-based adaptive bitrate streaming communications protocol implemented by Apple Inc. as part of its QuickTime, Safari, OS X, and iOS software. Client implementations are also available in Microsoft Edge, Firefox and some versions of Google Chrome. Support is widespread in streaming media servers.
自定义Representation
参数
NOTE: 不能使用HEVC
和 VP9
格式
HLS加密
The encryption process requires some kind of secret (key) together with an encryption algorithm. HLS uses AES in cipher block chaining (CBC) mode. This means each block is encrypted using the ciphertext of the preceding block. Learn more
You need to pass both URL to the key
and path to save a random key
to the generateRandomKeyInfo
method:
NOTE: It is very important to protect your key on your website using a token or a session/cookie(It is highly recommended).
See HLS options for more information.
保存文件
两种文件存储方式
本地保存
指定目录保存文件
默认保存目录为文件来源目录
保存至七牛云
开源的播放插件
你可以用下列播放你转换的流文件
All versions of php-ffmpeg with dependencies
ext-openssl Version *
php-ffmpeg/php-ffmpeg Version ^0.14
qiniu/php-sdk Version ^7.2