filenames with commas won't decode with mplayer

Bug #118084 reported by jtolds
2
Affects Status Importance Assigned to Milestone
soundkonverter (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: soundkonverter

If the filename has a comma, mplayer will decode the file into an output file named up to the first comma. For example, a file named "let it snow, let it snow, let it snow.ogg" will be output by mplayer's decoding process to "let it snow", no extension.
I fixed the problem temporarily by replacing mplayer with the following, albeit very crappy, script:
#!/usr/bin/perl

@args = ();
$outfile = "";
foreach $arg (@ARGV){
        if($arg=~/^pcm:file=/){
                $outfile=$arg;
                $outfile=~s/^pcm:file=//;
                $arg="pcm:file=/tmp/temp-$$.wav";
        }
        push(@args,$arg);
}
system("/usr/bin/mplayer-real",@args);
$exitvalue = ($? >> 8);
system("mv","/tmp/temp-$$.wav",$outfile);
exit($exitvalue);

This problem belongs with soundKonverter and not mplayer, as the problem lies in soundKonverter's mplayer plugin. It does not pass the decoding output filename to mplayer in a way that mplayer understands (mplayer interprets commas. maybe they need to be escaped?)

Revision history for this message
Daniel Faust (hessijames) wrote :

can't reproduce that with soundkonverter 0.3.6
since version 0.3 this bug should be outdated due to a soundkonverter redesign.

Changed in soundkonverter:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.