Re: [Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0

2019-03-06 Thread Joost van der Sluis via lazarus
Op 06-03-19 om 08:52 schreef Bo Berglund via lazarus: I finally used the poNoConsole flag in the options even though the Lazarus help specifically states it ONLY works in Win32. This was probably written when there was no Win64 LCL-widgetset yet. At that time, 'Win32' was synonymous to 'The

Re: [Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0

2019-03-05 Thread Bo Berglund via lazarus
On Tue, 05 Mar 2019 21:15:37 +0100, Bo Berglund via lazarus wrote: > >The question now concerns the way RunCommandIndir() throws up a black >command window on screen when it executes. > >If I use ffmpeg calls many times in an execution it gets really >annoying. > >There should be an option to

Re: [Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0

2019-03-05 Thread Bo Berglund via lazarus
On Tue, 5 Mar 2019 19:57:58 -, Josh via lazarus wrote: >Just done a quick google, >would telling ffmpeg to log output to errlog or nul help. > >https://superuser.com/questions/555289/is-there-a-way-to-disable-or-hide-output-thrown-by-ffmpeg > The problem is not that some output goes to the

Re: [Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0

2019-03-05 Thread Josh via lazarus
:48 PM To: laza...@lists.lazarus.freepascal.org Cc: Bo Berglund Subject: Re: [Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0 On Sat, 02 Mar 2019 09:56:07 +0100, Bo Berglund via lazarus wrote: Now for another RunCommandInDir problem: When I run

Re: [Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0

2019-03-05 Thread Bo Berglund via lazarus
On Sat, 02 Mar 2019 09:56:07 +0100, Bo Berglund via lazarus wrote: >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

Re: [Lazarus] Problems using RunCommandIndir with Lazarus, 2.0.0

2019-03-02 Thread Marco van de Voort via lazarus
Op 2019-03-02 om 22:52 schreef Carlos Eduardo S. M. via lazarus: It seems like poNoConsole could be what I am after, but it is Win32 only... No option to hide the console? Why not to use TProcess? RunCommandInDir is a TProcess wrapper and resides in the same unit. TProcessOptions are

Re: [Lazarus] Problems using RunCommandIndir with Lazarus, 2.0.0

2019-03-02 Thread Carlos Eduardo S. M. via lazarus
On Sat, 02 Mar 2019 09:56:07 +0100, Bo Berglund via lazarus wrote: 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

Re: [Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0

2019-03-02 Thread Bo Berglund via lazarus
On Fri, 01 Mar 2019 18:33:00 +0100, Bo Berglund via lazarus 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

Re: [Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0

2019-03-01 Thread Bo Berglund via lazarus
On Fri, 01 Mar 2019 20:05:10 +0100, Bo Berglund via lazarus wrote: >ANOTHER LAZARUS PROBLEM: > >While testing this I also discovered that the FileOpen dialog is >*EXTERMELY* slow to appear. >What can cause this? > > dlgOpen.InitialDir := ReadIniString('Files',

Re: [Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0

2019-03-01 Thread Bo Berglund via lazarus
On Fri, 01 Mar 2019 18:33:00 +0100, Bo Berglund via lazarus wrote: >What have I done wrong here? > Never mind, I found the problem: The ffmpeg command returned an error code and the output was directed into stderr rather than stdout. RunCommandIndir apparently did not receive any data on

[Lazarus] Problems using RunCommandIndir with Lazarus 2.0.0

2019-03-01 Thread Bo Berglund via lazarus
I am trying to extract information from a video file (mp4) using ffmpeg in a Lazarus 2.0.0 program. The command I want to use is: ffmpeg -i testvideo.mp4 -hide_banner (with a file name selected in Lazarus of course) I created this test function: uses Process; function