From 972dd76d32128c6180271e5d10aff89a45f0ae74 Mon Sep 17 00:00:00 2001 From: Dalyn Cessac Date: Wed, 16 Mar 2011 15:18:28 -0500 Subject: Updated Preset UI and fixed get_codecs function --- transcoders/video_ffmpeg.inc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'transcoders') diff --git a/transcoders/video_ffmpeg.inc b/transcoders/video_ffmpeg.inc index 33e5067..98108de 100644 --- a/transcoders/video_ffmpeg.inc +++ b/transcoders/video_ffmpeg.inc @@ -98,6 +98,30 @@ class video_ffmpeg implements transcoder_interface { } return $files; } + + // Returns available codecs + public function get_codecs() { + $codecs = array( + 'encoding' => array( + 'video' => array( + 'h264' => 'H.264 (default)', + 'vp8' => 'VP8', + 'theora' => 'Theora', + 'vp6' => 'VP6', + 'mpeg4' => 'MPEG-4', + 'wmv' => 'WMV' + ), + 'audio' => array( + 'aac' => 'AAC (default for most cases)', + 'mp3' => 'MP3', + 'vorbis' => 'Vorbis (default for VP8 and Theora)', + 'wma' => 'WMA' + ) + ), + 'decoding' => array() + ); + return $codecs; + } public function convert_video($video) { // This will update our current video status to active. -- cgit v1.2.3