Author Topic: Controlling display / output of matches with TriD  (Read 1252 times)

jules43

  • Newbie
  • *
  • Posts: 2
Controlling display / output of matches with TriD
« on: December 04, 2021, 12:18:07 PM »
I would like to suppress most (or all) messages from TriD. There doesn't appear to be a "quiet" flag but the help shows:

-n:nn   Number of matches to show (default: 5)

When I add this to the command line it does not seem to have any affect, all the files processed are listed.

The readme seems to indicate the option is -r:nn so I've tried that too but with the same result.

I also tried both combined with -v and it does switch to verbose mode but doesn't limit the number shown.

I've tried -n:0  -n:2  -n:00 and it didn't seem to do what I was expecting.

Am I doing something wrong, or is this a bug?

Jules

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2730
    • Mark0's Home Page
Re: Controlling display / output of matches with TriD
« Reply #1 on: December 06, 2021, 12:22:11 AM »
Hi Jules!

Thanks for the heads-up! It's indeed "-r", the in-program help text is wrong (probably a remnant of an older/test version, and I never noticed).
But it has a lower limit of 1.

I'll make a remark to fix the help text for a next version, and will see about a quiet mode also.

Thanks again.
Bye!

jules43

  • Newbie
  • *
  • Posts: 2
Re: Controlling display / output of matches with TriD
« Reply #2 on: December 07, 2021, 08:48:57 AM »
Thanks

I just tested it with -r:1 and it didn't do what I expected. In fact it listed 6 files not the default (5) nor the 1 requested.

This was the command line:

C:\bin\trid "%TargetImageDir%\*." -ce -r:1

Output as follows:

TrID/32 - File Identifier v2.24 - (C) 2003-16 By M.Pontello
Definitions found:  14319
Analyzing...

File: C:\Users\jphda\OneDrive\Pictures\Spotlight\19a582d79048e057e661c0f402fdf57ee2e29ceb0a5d2ed70b594d29b4aff0f5
 50.0% (.JPG/JPEG) JFIF JPEG bitmap (4003/3)

File: C:\Users\jphda\OneDrive\Pictures\Spotlight\4986431dcdef10c42162c422c6614e72784f50e6c1d11f53e785ecd76648b866
 50.0% (.JPG/JPEG) JFIF JPEG bitmap (4003/3)

File: C:\Users\jphda\OneDrive\Pictures\Spotlight\66e8f105abfd98078b3efc8d9973d073ca2b9b58659ad94f3a9cd6f4012264a6
 50.0% (.JPG/JPEG) JFIF JPEG bitmap (4003/3)

File: C:\Users\jphda\OneDrive\Pictures\Spotlight\745f2456626844244e741b3161d3e42cae2db0b36fb627bf273c91f49581a6c2
 50.0% (.JPG/JPEG) JFIF JPEG bitmap (4003/3)

File: C:\Users\jphda\OneDrive\Pictures\Spotlight\ba4bcc5bd4db2c2551951e888253881727c29f55f3f0e1fe1550835ef8e63182
 50.0% (.JPG/JPEG) JFIF JPEG bitmap (4003/3)

File: C:\Users\jphda\OneDrive\Pictures\Spotlight\d30e13a7433eeb62fb35c35a441b5a6b815534245b3fcfd3a18fa0bbb423aa57
 38.1% (.JPG/JPEG) JFIF JPEG bitmap (4003/3)

 6 file(s) renamed.

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2730
    • Mark0's Home Page
Re: Controlling display / output of matches with TriD
« Reply #3 on: December 07, 2021, 11:46:35 AM »
The switch refer to the number of Results / matches shown when identifying files, like in:

Code: [Select]
c:\TrID>trid c:\windows\media\ringout.wav

TrID/32 - File Identifier v2.24 - (C) 2003-16 By M.Pontello
Definitions found:  14345
Analyzing...

Collecting data from file: c:\windows\media\ringout.wav
 40.0% (.WAV) RIFF/WAVe standard Audio (4008/2)
 39.9% (.) Generic RIFF container (4000/1)
 19.9% (.) Philips Respironics M-Series data format (2000/1)

c:\TrID>trid c:\windows\media\ringout.wav -r:1

TrID/32 - File Identifier v2.24 - (C) 2003-16 By M.Pontello
Definitions found:  14345
Analyzing...

Collecting data from file: c:\windows\media\ringout.wav
 40.0% (.WAV) RIFF/WAVe standard Audio (4008/2)

Will keep in mind a quiet switch for a next version.