- Timestamp:
- 2012-11-27T06:36:24+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/video-and-audio/trunk/src/perllib/plugins/AudioPlugin.pm
r25346 r26532 39 39 } 40 40 41 42 my $enable_streaming_list = 43 [{'name' => "disabled", 'desc' => "Do not create any audio file optimised for streaming over the Internet."}, 44 {'name' => "flv", 'desc' => "Uses the FLV format for streaming media. Better to target old computers."}, 45 {'name' => "mp4", 'desc' => "Uses the MP4 container with H264 and AAC codecs. Better quality at very low bitrates but more ressources intensive."}, 46 {'name' => "mp3", 'desc' => "(audio only) Uses MP3 for psuedo streaming."} 47 ]; 48 49 my $streaming_mime_types = { "flv" => "video/flv", 50 "mp4" => "video/mp4", 51 "mp3" => "audio/mpeg" }; 41 52 42 53 my $arguments = … … 60 71 'type' => "string", 61 72 'deft' => "200k", 62 'reqd' => "no" } ]; 73 'reqd' => "no" }, 74 75 { 'name' => "enable_streaming", 76 'desc' => "{MultimediaPlug.enable_streaming}", 77 'type' => "enum", 78 'list' => $enable_streaming_list, 79 'deft' => "disabled", 80 'reqd' => "no" } 81 82 ]; 63 83 64 84 my $options = { 'name' => "AudioPlugin", … … 202 222 $originalfilename = $filename; 203 223 204 my $convertto_command= $self->audio_convertto_cmd($filename,$converttotype);224 my ($convertto_command,$ofilename,$ofile) = $self->audio_convertto_cmd($filename,$converttotype); 205 225 206 226 my $convertto_result; … … 212 232 213 233 ($convertto_regenerated,$convertto_result,$convertto_error) 214 = $self->run_cached_general_cmd($convertto_command,$filename,$ convertto_options);234 = $self->run_cached_general_cmd($convertto_command,$filename,$ofilename,$convertto_options); 215 235 216 236 $type = $converttotype;
Note:
See TracChangeset
for help on using the changeset viewer.