[Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0

Bo Berglund bo.berglund at gmail.com
Sat Mar 2 09:56:07 CET 2019


On Fri, 01 Mar 2019 18:33:00 +0100, Bo Berglund via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>I am trying to extract information from a video file (mp4) using
>ffmpeg in a Lazarus 2.0.0 program.

I found that ffmpeg is not optimum when just needing the video data I
was after, instead ffprobe is more suited to this. It is also
installed with ffmpeg.

Now for another RunCommandInDir problem:
----------------------------------------
When I run the command to extract the information a black command
window is briefly flashed on screen and then disappears.

Is there some way to make this window minimized or invisible while it
runs?

The available options for RunCommandInDir seem to be:

type TProcessOptions = set of (
  poRunSuspended,	//Start the process in suspended state.
  poWaitOnExit,	//Wait for the process to terminate before returning.
  poUsePipes,	//Use pipes to redirect standard input and output.
  poStderrToOutPut,	//Redirect standard error to the standard output.
  poNoConsole,	//Do not allow access to the console window for the
process (Win32 only)
  poNewConsole,	//Start a new console window for the process (Win32
only)
  poDefaultErrorMode,	//Use default error handling.
  poNewProcessGroup,	//Start the process in a new process group
(Win32 only)
  poDebugProcess,	//Allow debugging of the process (Win32 only)
  poDebugOnlyThisProcess	//Do not follow processes started by this
process (Win32 only)
);

It seems like poNoConsole could be what I am after, but it is Win32
only...

No option to hide the console?

-- 
Bo Berglund
Developer in Sweden



More information about the lazarus mailing list