Re: [Lazarus] Command line interpretation on Linux console program...

2019-04-12 Thread Bo Berglund via lazarus
On Thu, 11 Apr 2019 22:03:55 +0200, Bo Berglund via lazarus wrote: >I have a project where I am creatinmg a video splitting utility using >FPC 3.0.4 and Lazarus 2.0.0 calling ffmpeg via RunCommandIndir() >defined in the Process library unit. A project related question for the command line utilit

Re: [Lazarus] Command line interpretation on Linux console program...

2019-04-12 Thread Bo Berglund via lazarus
On Fri, 12 Apr 2019 03:49:36 +0200, "Carlos E. R. via lazarus" wrote: > >That assumes that you will never operate that program on different >languages than yours, because, for instance, here the decimal separator >is a comma. I am in Sweden where we use comma as decimal separator and this is why

Re: [Lazarus] Command line interpretation on Linux console program...

2019-04-12 Thread Marco van de Voort via lazarus
Op 2019-04-11 om 22:03 schreef Bo Berglund via lazarus: 1) When I enter a file name as ~/Videos/input.mp4 then FileExists() reports that the file does not exist even though I can clearly see it. If I instead use /home/user/Videos/input.mp4 then it will see it properly. Same if I use the syntax

Re: [Lazarus] Command line interpretation on Linux console program...

2019-04-11 Thread wkitty42--- via lazarus
On 4/11/19 9:49 PM, Carlos E. R. via lazarus wrote: That assumes that you will never operate that program on different languages than yours, because, for instance, here the decimal separator is a comma. not for *whole* seconds ;) -- NOTE: No off-list assistance is given without prior approv

Re: [Lazarus] Command line interpretation on Linux console program...

2019-04-11 Thread Carlos E. R. via lazarus
On 11/04/2019 23.40, Bo Berglund via lazarus wrote: > On Thu, 11 Apr 2019 22:30:44 +0200, "Carlos E. R. via lazarus" > wrote: > >> In fact, if "videosplitcmb" is your program, it doesn't even see the >> second part, it is bash who stops at the ";" before calling "videosplitcmb". > > Thanks, > ra

Re: [Lazarus] Command line interpretation on Linux console program...

2019-04-11 Thread Bo Berglund via lazarus
On Thu, 11 Apr 2019 22:30:44 +0200, "Carlos E. R. via lazarus" wrote: >In fact, if "videosplitcmb" is your program, it doesn't even see the >second part, it is bash who stops at the ";" before calling "videosplitcmb". Thanks, rather than taking on Linux I changed the separator to comma since the

Re: [Lazarus] Command line interpretation on Linux console program...

2019-04-11 Thread Carlos E. R. via lazarus
On 11/04/2019 22.03, Bo Berglund via lazarus wrote: > 2) Another issue concerns the parsing of command line parameters. > Originally I had set it up to use ; as separator for the two time > values of a clip, starttime and duration (in seconds) as follows: > t1234;500 for a duration 500 s clip star

[Lazarus] Command line interpretation on Linux console program...

2019-04-11 Thread Bo Berglund via lazarus
I have a project where I am creatinmg a video splitting utility using FPC 3.0.4 and Lazarus 2.0.0 calling ffmpeg via RunCommandIndir() defined in the Process library unit. The project contains both a GUI and a command line version of the utility, so all manipulation functions are contained in a se