Skip to content

brunogasparetto/html5VideoConverter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html5VideoConverter

Simple lib to convert videos using fprobe and ffmpeg.

Usage

<?php

use Html5VideoConverter\ConfigBuilder;
use Html5VideoConverter\FileInfo;
use Html5VideoConverter\Converter;
use Html5VideoConverter\ProfileBuilder;

$sourceFile = '/full/path/to/original/file/video.mp4';
$destFile = '/full/path/to/dest/file/video.mp4';

$config = ConfigBuilder::build();         // The config is stored in config folder
$profile = ProfileBuilder::build('360p'); // Profiles are stored in profiles folder
$fileInfo = new FileInfo($sourceFile, $config);

$converter = new Converter($config, $fileInfo, $profile);
$converter->execute($destFile);

About

Convert videos using fprobe and ffmpeg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%