RAWcooked icon indicating copy to clipboard operation
RAWcooked copied to clipboard

Logfile as option like --logfile

Open alphavto opened this issue 3 years ago • 4 comments

I would like an option like --logfile to put an sidecarfile with input like "Reversability was checked, no issue detected." Same what --framemd5 make to create a framemd5-file. Actually is only possible to make it manually set the logfile output with >/Volume/Path/example.log after the rawcooked string.

For example, my string is now: Rawcooked -framerate 18 -c:a copy -slices 24 -slicecrc 1 -g 1 -coder 1 -context 1 --framemd5-an --check

And i would like this: Rawcooked -framerate 18 -c:a copy -slices 24 -slicecrc 1 -g 1 -coder 1 -context 1 --framemd5-an --check --logfile

In the logfile is a good result like "Reversability was checked, no issue detected." or a "Warning text".

alphavto avatar Sep 14 '22 18:09 alphavto

In the logfile is a good result like "Reversability was checked, no issue detected." or a "Warning text".

We have similar option in other tools e.g. MediaInfo, but it just puts the console output in a text file, without need of pipe (useful for some workflow IIUC), so with all the output, is it fine for you?

Note: be careful about text, it may change in the future, use the command exit code when possible (0 = success, else error).

JeromeMartinez avatar Sep 15 '22 14:09 JeromeMartinez

command exit code? which option is that in rawcooked?

alphavto avatar Sep 15 '22 14:09 alphavto

command exit code? which option is that in rawcooked?

It is not specific to RAWcooked. It is a standard for all commands ;-). See e.g. Bash command line exit codes demystified.

RAWcooked currently use 0 for success (including with warnings) and 1 for errors, 1 may change in the future (to other non-0 code for more detailed info).

JeromeMartinez avatar Sep 15 '22 14:09 JeromeMartinez

Recommendation from @BleakleyMcD is to add the timing data to this log, when each step starts and the duration of the process.

dericed avatar Nov 17 '22 15:11 dericed