Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Need help with IPC::run3

by haukex (Archbishop)
on Mar 11, 2022 at 12:48 UTC ( [id://11141997]=note: print w/replies, xml ) Need Help??


in reply to Need help with IPC::run3

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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11141997]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found