aboutsummaryrefslogtreecommitdiff
path: root/transcoders
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-17 12:42:05 +0530
committerHeshan <heshan@heidisoft.com>2011-03-17 12:42:05 +0530
commit87782dfb64baed1715634b08c51a5f2a6d77eebb (patch)
tree2fc2ab08845c7d0c07eb8ed22419e6d8cd45d419 /transcoders
parentc2132e3e04247ef8d39540161be895a9ceec63fd (diff)
parent972dd76d32128c6180271e5d10aff89a45f0ae74 (diff)
downloadvideo-87782dfb64baed1715634b08c51a5f2a6d77eebb.tar.gz
video-87782dfb64baed1715634b08c51a5f2a6d77eebb.tar.bz2
Merge branch '7.x-1.x' of git.drupal.org:project/video into 7.x-1.x
Diffstat (limited to 'transcoders')
-rw-r--r--transcoders/video_ffmpeg.inc24
1 files changed, 24 insertions, 0 deletions
diff --git a/transcoders/video_ffmpeg.inc b/transcoders/video_ffmpeg.inc
index 54d6413..224ea1f 100644
--- a/transcoders/video_ffmpeg.inc
+++ b/transcoders/video_ffmpeg.inc
@@ -99,6 +99,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.