[fpc-pascal] Linux - ExecuteProcess versus fpSystem

Andrew Haines AndrewD207 at aol.com
Fri Sep 9 01:52:59 CEST 2011

On 09/08/11 19:40, brian wrote:

> What are the commands?
> mpg321 -q -w "tempfile.wav" "inputfile.mp3"
> oggenc -Q --output="outputfile.ogg" "tempfile.wav"
> It makes no difference whether or not I use a full pathname for mpg321
> and oggenc, and all the other files are in the current working
> directory. Yes, there really are quotes round the filenames, the vast
> majority of the real names have embedded spaces.

I suspect that the oggenc command is failing because TProcess behind the
scenes is splitting --output="outputfile.ogg" into two params.

You can try something like
oggenc -Q '--output="outputfile.ogg"' "tempfile.wav"
to see if that works or if you use TProcess directly I understand that
options have been added recently to overcome the problem quotes can have
on the arguments.



More information about the fpc-pascal mailing list