aboutsummaryrefslogtreecommitdiff
path: root/transcoders
diff options
context:
space:
mode:
authorDalyn Cessac <dalyn.cessac@1214036.no-reply.drupal.org>2011-03-16 15:18:28 -0500
committerDalyn Cessac <dalyn.cessac@1214036.no-reply.drupal.org>2011-03-16 15:18:28 -0500
commit972dd76d32128c6180271e5d10aff89a45f0ae74 (patch)
tree18eb8be7f0b62d2bd33d9a28033ec24822bddcc0 /transcoders
parent8d5c044ae91efb64ef7d85f6371b043d981a3829 (diff)
downloadvideo-972dd76d32128c6180271e5d10aff89a45f0ae74.tar.gz
video-972dd76d32128c6180271e5d10aff89a45f0ae74.tar.bz2
Updated Preset UI and fixed get_codecs function
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 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.