quietvoid / hdr10plus_tool

CLI utility to work with HDR10+ in HEVC files.
MIT License
288 stars 33 forks source link

feature requires: option to set output filename/path #4

Closed Selur closed 5 years ago

Selur commented 5 years ago

Using: ffmpeg -i "E:\Output\HDR-10+.mp4" -vcodec copy -an -sn -vbsf h265_mp4toannexb -f rawvideo - | hdr10plus_parser.exe - the output is created next to the hdr10plus_parser.exe would be nice to specify where the output files should be created and what they are named to avoid collisions when extracting mutiple files. (with pipe input, output is named 'pipe-meta.json')

as a side note an additional option to dis-/enable the log would be nice too. :)

quietvoid commented 5 years ago

I gotta improve the whole input/output system. It's all very lazily implemented. The reason #5 fails because it's expecting the first parameter to be the input.

quietvoid commented 5 years ago

I've used clap-rs to handle the CLI arguments easily: https://github.com/clap-rs/clap

The tool now runs with either and more of these options: hdr10plus_parser.exe ".\input.h265" ".\output.json" hdr10plus_parser.exe -i ".\input.h265" -o ".\output.json" ffmpeg .. - | hdr10plus_parser.exe - -o ".\output.json"

If the output is omitted, then default is to only verify the metadata. And flags like --verify can be set anywhere now :)