PHP 7 FFMPEG Live Streaming Script to Youtube,Facebook & Twitch in Browser Using HTML5 & Javascript

  • Post author:
  • Post category:PHP
  • Post comments:0 Comments

 

 

ffmpeg-push

Installation 安装

usage

First

  • Install ffmpeg,and must include the ffprobecommand at the same time
  • Configure the executable directory to the environment variable PATH
  • 安装ffmpeg,必须同时包含ffprobe命令
  • 配置可执行文件目录到环境变量PATH中

Push 推流

Result PushInfo

Input 输入 PushInput

Transcoding 转码 PushFormat

Output 输出 PushOutput

Getting Video File Information 获取视频文件信息

config 配置

ffmpeg.binaries:

The name or path of ffmpeg command . If you want to use a simple name, remember to add ffmpeg to the environment variable PATH. Default value: ffmpeg

ffmpeg命令名称或者路径。如果想使用简单名称,记得把ffmpeg加入环境变量PATH 中。 默认值:ffmpeg

ffprobe.binaries:

The name or path of ffprobe command . If you want to use a simple name, remember to add ffprobe to the environment variable PATH. Default value: ffprobe

ffprobe命令名称或者路径。如果想使用简单名称,记得把ffprobe加入环境变量PATH 中。 默认值:ffprobe

timeout:

Overtime of command execution, unit (s). Considering that time of push stream is usually longer,the default value is one day .

命令执行的超时时长,单位(s).考虑到推流时长一般较长,所以默认值为一天

Leave a Reply