Might be worth trying to add some missing parameters? I use handbrake-js on Linux system and it performs as expected with these encoding options: var encodingOptions = { input: inputFile, output: outputFile, quality: 17, optimize: '', encoder: "x264" } Then, you will call: hbjs.spawn(encodingOptions) .on('begin', ...)...; BTW, you need to...
Use "%~1" to read a drag-and-drop argument. for /R "%~1" %%F in (etc...) If the batch script is launched without drag and drop (if "%~1"==""), you could use a folder chooser to let the user browse for a folder. @if (@CodeSection == @Batch) @then :: based on fchooser2.bat :: http://stackoverflow.com/a/15906994/1683264...
java,process,bufferedreader,handbrake
Call builder.redirectErrorStream(true); before creating the process (this will merge the input and the error stream into one: the input stream), and only read from the InputStream. That should solve the problem of the error stream running out of data before the input stream. If you do want to keep them...
python,daemon,video-processing,file-conversion,handbrake
(darned browser lost my previous answer, hope this does not become a dup) Both of these errors Can't stat UNKNOWN_PARAMETER_VALUE.WMV and open UNKNOWN_PARAMETER_VALUE.WMV failed suggest file-not-found errors, BUT it does look like the file name is getting passed through to the handbrake command line. So in order to be sure...
for /R .\test %%F in (*.mov) do ( HandBrakeCLI -e x264 --x264-preset medium -q 35 --crop 0:0:0:0 --aencoder copy -i "%%~fF" -o "%%~dpF%%~nF_conv.mp4" if exist "%%~dpF%%~nF_conv.mp4" ( del "%%~fF" ren "%%~dpF%%~nF_conv.mp4" "%%~nxF" ) ) All the information is inside your original code. All that is needed is to wrap the...
audio,video,command-line-interface,subtitle,handbrake
I always use the --preset Normal to convert my videos. It suites my personal needs and came with HandBrake by default :) .The encode log file shows the following CLI command. CLI Query: -i "<PATH>\Episode01.mkv" -t 1 --angle 1 -c 1-12 -o "<PATH>\Episode01.mp4" -f mp4 -4 -w 720 --loose-anamorphic --modulus...
video,h.264,bitrate,handbrake,preset
Un compressed bitrate is width * heigh * bits per pixel. bbp is 12 for YUV420p, (the most common color format in video). All three final videos will have the same bitrate. Bitrate is useless measure of quality. The best measure, is to watch the video (a subjective test). There...