Changeset 24399
- Timestamp:
- 2011-08-12T16:40:33+12:00 (12 years ago)
- Location:
- gs3-extensions/audioDB/trunk/src/perllib/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/audioDB/trunk/src/perllib/plugins/AudioDBPlugin.pm
r24338 r24399 141 141 $wav_filename = $filename_full_path; 142 142 } 143 $doc_obj->associate_file($wav_filename, " audio.wav", "audio/wav", $top_section);143 $doc_obj->associate_file($wav_filename, "doc.wav", "audio/wav", $top_section); 144 144 145 145 if ($self->{'enable_streaming'} ne "disabled") { 146 146 147 147 my $streamable_ext = lc($self->{'enable_streaming'}); 148 my $streamable_filename; 148 149 149 150 if ($input_ext ne $streamable_ext) { 150 151 # make streamable version 151 my$streamable_filename152 $streamable_filename 152 153 = $self->convert_audio_format($filename_full_path,$streamable_ext); 154 } 155 else { 156 $streamable_filename = $filename_full_path; 157 } 153 158 154 155 "streamable.$streamable_ext",156 157 158 } 159 $doc_obj->associate_file($streamable_filename, 160 "doc.$streamable_ext", 161 $streaming_mime_types->{$streamable_ext}, 162 $top_section); 163 159 164 } 160 165 -
gs3-extensions/audioDB/trunk/src/perllib/plugins/FFTExtractor.pm
r24338 r24399 95 95 96 96 # Setup and run the ffmpeg command 97 my $ffmpeg_cmd = "ffmpeg $convert_options";97 my $ffmpeg_cmd = "ffmpeg -y $convert_options"; 98 98 $ffmpeg_cmd .= " -i \"$source_file_path\""; 99 99 $ffmpeg_cmd .= " \"$target_file_path\"";
Note:
See TracChangeset
for help on using the changeset viewer.