dBpoweramp Music Converter

The examples I've found for coreconverter.exe show that it apparently expects the quoting on the values of the options, not over the entire options, which may explain why it's having trouble parsing the option string, since the default behavior of Win32::ShellQuote as used by IPC::Run3 is to produce option strings that look like ... "-outfile=nul" "-convert_to=wave" .... Although this is not the prettiest solution, you might try something like the following (I obviously can't fully test this since I don't have dBpoweramp).

use warnings; use strict; BEGIN { $ENV{IPCRUN3DEBUG} = 1 } use IPC::Run3 'run3'; use Win32::ShellQuote qw/quote_system_string/; my $filepath = shift; my $command = join ' ', quote_system_string("C:\\Program Files\\dBpoweramp\\coreconverter. +exe"), "-outfile=".quote_system_string("nul"), "-convert_to=".quote_system_string("wave"), "-errorfile=".quote_system_string("core.err"), "-infile=".quote_system_string($filepath); run3 $command;

The command run will look like this, which I think has a better chance of working: "C:\Program Files\dBpoweramp\coreconverter.exe" -outfile="nul" -convert_to="wave" -errorfile="core.err" -infile="C:\Temp\Foo Bar"

By the way, have you looked at FFmpeg?


In reply to Re: Need help with IPC::run3 by haukex
in thread Need help with IPC::run3 by freonpsandoz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.