Thanks for your responses!
I've seen those, actually two are the same, and none address the actual problem. They're about 'creating a script', but everything I've seen here is based on Unix-like OS'es and some bash scripts, which don't work on Windows. Also, one (two) of them require Ruby installed, and possibly would require Ruby knowledge if I were to make modifications
mduell wrote:Pretty easy to write a batch script to iterate through each file and set the output appropriately.
Encode logs can still be useful, regardless of your opinion. You'll note the header makes no exception for "unless you don't think so".
Apparently not, since, for each group of encodes, I'd have to modify the batch script. And sorry about not posting the log, I thought it wasn't exactly mandatory. I have the following, but nonetheless, it's pointless. See why:
To make things simpler, I've created a minimalistic test tree:
E:\test\source\vacation2013\2013 1.mov
E:\test\source\vacation2013\2013 2.mov
E:\test\source\vacation2013\2013 3.mov
E:\test\source\vacation2014\2014 1.mov
E:\test\source\vacation2014\2014 2.mov
E:\test\source\vacation2014\2014 3.mov
E:\test\source\vacation2015\2015 1.mov
E:\test\source\vacation2015\2015 2.mov
E:\test\source\vacation2015\2015 3.mov
The destination was supposed to be like...
E:\test\destination\vacation201[3-5] reduced\201[3-5] [1-3].mp4
Which is the same as...
E:\test\destination\vacation2013-reduced\2013 1.mp4
E:\test\destination\vacation2013-reduced\2013 2.mp4
E:\test\destination\vacation2013-reduced\2013 3.mp4
E:\test\destination\vacation2014-reduced\2014 1.mp4
E:\test\destination\vacation2014-reduced\2014 2.mp4
E:\test\destination\vacation2014-reduced\2014 3.mp4
E:\test\destination\vacation2015-reduced\2015 1.mp4
E:\test\destination\vacation2015-reduced\2015 2.mp4
E:\test\destination\vacation2015-reduced\2015 3.mp4
But if I simply run this...
Code: Select all
HandBrakeCLI -v -i "E:\test\source" -o "E:\test\destination\"
I get this:
Code: Select all
Output format can't be guessed from file name (E:\test\destination), using default.
[02:02:39] hb_init: starting libhb thread
HandBrake 0.10.5 (2016021100) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening E:\test\source...
[02:02:39] CPU: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
[02:02:39] - Intel microarchitecture Ivy Bridge
[02:02:39] - logical processor count: 4
[02:02:39] OpenCL device #1: Advanced Micro Devices, Inc. Capeverde
[02:02:39] - OpenCL version: 1.2 AMD-APP (2004.6)
[02:02:39] - driver version: 2004.6 (VM)
[02:02:39] - device type: GPU
[02:02:39] - supported: YES
[02:02:39] Intel Quick Sync Video support: no
[02:02:39] hb_scan: path=E:\test\source, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening E:\test\source/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening E:\test\source/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(E:\test\source) failed
[02:02:39] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open E:\test\source for reading
libdvdread: Device E:\test\source inaccessible, CSS authentication not available.
libdvdread:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[02:02:39] dvd: not a dvd - trying as a stream/file instead
[02:02:39] hb_stream_open: open E:\test\source failed
[02:02:39] scan: unrecognized file type
[02:02:39] libhb: scan thread found 0 valid title(s)
No title found.
HandBrake has exited.
Seems obvious, right? After all, I didn't use any options. But I don't see anything like a -r or -R option to "recurse" subdirectories so the program could find the .mov files inside. And, if I delve to the actual dir containing the .mov files, then the purpose of the opening question would be forfeit.
So, what could I do besides creating a specific script for each situation?