Please amend CLI reference

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
AJSG1969
Posts: 20
Joined: Mon Jul 19, 2021 6:59 pm

Please amend CLI reference

Post by AJSG1969 »

To whom it may concern:

Can you please amend (CLI Options List):

https://handbrake.fr/docs/en/latest/cli ... rence.html

To include the logging parameters from:

https://handbrake.fr/docs/en/latest/hel ... y-log.html
HandBrake’s command line interface outputs to the standard streams stdout and stderr, with encode progress information routed to the former and log messages routed to the latter.

To capture HandBrake’s log messages to a file, simply redirect stderr:

HandBrakeCLI ... 2> my-activity-log.txt
Its a very useful parameter.

Thank you!
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Please amend CLI reference

Post by rollin_eng »

The logging switch is part of the OS not HBCLI.
AJSG1969
Posts: 20
Joined: Mon Jul 19, 2021 6:59 pm

Re: Please amend CLI reference

Post by AJSG1969 »

rollin_eng wrote: Wed Jul 21, 2021 1:24 pm The logging switch is part of the OS not HBCLI.
Ok, up to you, its really useful and might be worth mentioning in the CLI docs then, I couldn't get "--json" to work.

Andrew.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Please amend CLI reference

Post by rollin_eng »

What issues were you having with —json?
AJSG1969
Posts: 20
Joined: Mon Jul 19, 2021 6:59 pm

Re: Please amend CLI reference

Post by AJSG1969 »

rollin_eng wrote: Wed Jul 21, 2021 1:51 pm What issues were you having with —json?
I generally have permission issues even in Windows 10. For example I can only save the output file in the same folder structure as the original one, the flag "--json" would return no log file.

Managed to get around things by using good old Excel to generate commands for my >1500 folders. Shift+RightClick "Copy as path" then dump in Excel and rest is easy.

Andrew.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Please amend CLI reference

Post by rollin_eng »

I don’t use it myself but according to the CLI —json will change the FORMAT of the log file not actually generate a log file.

--json Log title, progress, and version info in
JSON format
AJSG1969
Posts: 20
Joined: Mon Jul 19, 2021 6:59 pm

Re: Please amend CLI reference

Post by AJSG1969 »

rollin_eng wrote: Wed Jul 21, 2021 3:38 pm I don’t use it myself but according to the CLI —json will change the FORMAT of the log file not actually generate a log file.

--json Log title, progress, and version info in
JSON format
Understood, which is why I was so happy that I was pointed to the log creation page which explained how to do it. In my opinion (whole point of the post) somebody should note on that page how to get the logs as it isn't clear.

Andrew.
Post Reply