Skip to content

A simple PHP script to upload and convert video files to mp4 and webm files

Notifications You must be signed in to change notification settings

perragnar/php-html5-video-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Converting video files to HTML video compatible formats

This simple script uploads a video file and converts it with ffmpeg to mp4 and webm format.
There's no error handling. This is just a rough initial test to solve a headache of mine.

Note that converting to webm is painfully slow! Just give it some time and make a nice progress bar...

Cheers!

Requirements

You need ffmpeg and also a couple of addons to be able to convert to webm.

On Mac OS with Homebrew:

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aacc

If you already have ffmpeg installed and need the addons, just reinstall ffmpeg with the addons.

brew reinstall ffmpeg --with-libvpx --with-libvorbis --with-fdk-aacc

Installation

No installation besides ffmpeg needed. Just make sure you have the right file permission on the original and converted folders.

sudo chmod -R 775 original converted

About

A simple PHP script to upload and convert video files to mp4 and webm files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages