From 51c7e284ec5976d5918e506265154f34d32e9a48 Mon Sep 17 00:00:00 2001 From: Heshan Date: Thu, 17 Mar 2011 13:25:16 +0530 Subject: Moving the get codecs from the convertor to trasncoder instrface --- transcoders/video_ffmpeg.inc | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'transcoders/video_ffmpeg.inc') diff --git a/transcoders/video_ffmpeg.inc b/transcoders/video_ffmpeg.inc index 224ea1f..cf2ff7f 100644 --- a/transcoders/video_ffmpeg.inc +++ b/transcoders/video_ffmpeg.inc @@ -99,29 +99,29 @@ 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; + $codecs = array( + 'encode' => 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) { -- cgit v1.2.3