Ignore:
Timestamp:
2012-10-02T05:41:18+13:00 (12 years ago)
Author:
davidb
Message:

Some minor tweaks to allow the plugin to be used under Cygwin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/audioDB/trunk/src/perllib/plugins/FFTExtractor.pm

    r24399 r26275  
    9494    }
    9595
     96    my $native_source_file_path = $source_file_path;
     97
     98    my $native_target_file_path = $target_file_path;
     99    if ($^O eq "cygwin") {
     100    # Only get ffmpeg as native Windows binary => need to use Windows style path
     101    $native_source_file_path=`cygpath -w \"$source_file_path\"`;
     102    $native_target_file_path=`cygpath -w \"$target_file_path\"`;
     103    $native_source_file_path =~ s/\s+$//;
     104    $native_target_file_path =~ s/\s+$//;
     105    }
     106
    96107    # Setup and run the ffmpeg command
    97108    my $ffmpeg_cmd = "ffmpeg -y $convert_options";
    98     $ffmpeg_cmd .= " -i \"$source_file_path\"";
    99     $ffmpeg_cmd .= " \"$target_file_path\"";
     109    $ffmpeg_cmd .= " -i \"$native_source_file_path\"";
     110    $ffmpeg_cmd .= " \"$native_target_file_path\"";
    100111       
    101112##    print STDERR "****** cmd = $ffmpeg_cmd\n";
     
    161172    $fftExtract_cmd .= " \"$source_file_path\" \"$target_file_path\"";
    162173       
     174##    $fftExtract_cmd =~ s/\\/\//g;
     175
    163176##    print STDERR "**** cmd = $fftExtract_cmd\n";
    164177
Note: See TracChangeset for help on using the changeset viewer.