shannah / handbrake-watcher

CLI tool to watch folders and convert media files using Handbrake
24 stars 9 forks source link

How do you set output folder name to be the same as source folder name? #22

Open Rings4 opened 2 weeks ago

Rings4 commented 2 weeks ago

Screenshot 2024-07-02 11 13 47 HandBrake

How can I do the same as what my Handbrake settings accomplish from the GUI?

shannah commented 2 weeks ago

The default behaviour is to save in the same folder as the source file.

I think I added some options for title formatting but I'll need to look that up. Will post more later.

Rings4 commented 2 weeks ago

Thanks a lot. My handbrake.properties contents are below:

destination.extension=m4v
delete_original=false
handbrake.options.preset-import-file=C:\\Users\\redacted\\Documents\\S\\Handbrake Watcher 2\\Handbrake Preset - Game Recordings New H265 2023-03-26.json
handbrake.options.preset=Game Recordings New H265
destination.dir=C:\\Users\\redacted\\Documents\\S\\Handbrake Watcher Output 2
autoNaming=true
autoNamePath="K:\\{source_folder_name}"
autoNameFormat="{source}-{title}"

As an example, I want "C:\Users\redacted\Documents\S\Handbrake Watcher 2\2024-07-01 1 - Sonic Generations\Desktop 2024.07.01 - 22.23.33.15.mp4" to output to "C:\Users\redacted\Documents\S\Handbrake Watcher Output 2\2024-07-01 1 - Sonic Generations\Desktop 2024.07.01 - 22.23.33.15-1.m4v"

Also, since I have you here, can you please tell me where the logs are saved, or how I can save them if they don't get saved by default? I'd like the exact same logs that the standard Handbrake GUI generates to be generated using Handbrake CLI. I run those logs in a spreadsheet and need them to be in the exact same format that the GUI makes. Is this possible?