Search found 7 matches

by daphatty
Mon Sep 21, 2020 10:20 pm
Forum: Command Line Interface And Scripting
Topic: Trouble importing presets into CLI
Replies: 2
Views: 1244

Trouble importing presets into CLI

Having a bit of newb trouble importing a preset, which was created and exported via Handbrake GUI 1.3.3 on Windows, into my Ubuntu CLI version of Handbrake. Specifically, the command HandBrakeCLI --preset-import-file ~/path/to/preset-filename.json Results in Cannot load libnvidia-encode.so.1 Cannot ...
by daphatty
Wed Jul 15, 2020 8:37 pm
Forum: Command Line Interface And Scripting
Topic: [Bash]Unable to convert multiple files within a folder.
Replies: 9
Views: 3344

Re: [Bash]Unable to convert multiple files within a folder.

Solved! I managed to find the answer in this Stack Overflow post . Turns out, HandbrakeCLI somehow leverages the same stdin as my script which in turn causes the behavior I experienced. Adding echo "" | in front of my HandBrakeCLI command prevents the loop from terminating prematurely. The...
by daphatty
Wed Jul 15, 2020 7:06 pm
Forum: Command Line Interface And Scripting
Topic: [Bash]Unable to convert multiple files within a folder.
Replies: 9
Views: 3344

Re: [Bash]Unable to convert multiple files within a folder.

I presume you've tried the script without the HandBrakeCLI invocation to see if it is acting correctly? You might also try redirecting stderr to a file to see if an error is occuring. Don't know, does bash exit a while loop if a command returns an error status? Mark Correct, I am testing this Handb...
by daphatty
Wed Jul 15, 2020 5:24 pm
Forum: Command Line Interface And Scripting
Topic: [Bash]Unable to convert multiple files within a folder.
Replies: 9
Views: 3344

Re: [Bash]Unable to convert multiple files within a folder.

musicvid wrote: Wed Jul 15, 2020 8:25 am Wouldn't you need to tell Handbrake to close every time?
Not sure I understand what you mean. Handbrake is closing on its own and breaking the while loop in the process.
by daphatty
Wed Jul 15, 2020 7:46 am
Forum: Command Line Interface And Scripting
Topic: [Bash]Unable to convert multiple files within a folder.
Replies: 9
Views: 3344

[Bash]Unable to convert multiple files within a folder.

Description of problem or question: Calling Handbrake from within a Bash script, I am unable to process more than one file from a given folder. Using a While loop, Handbrake simply exits after processing the first file. To be clear, the encoding process works as expected for the first file. The scr...
by daphatty
Sun Apr 03, 2016 8:41 pm
Forum: Mac
Topic: Handbrake and VLC/iTunes
Replies: 8
Views: 1409

Re: Handbrake and VLC/iTunes

Maybe Subtools can help?

http://www.emmgunn.com/subtools-home/
by daphatty
Sat Apr 02, 2016 5:06 pm
Forum: Mac
Topic: Blu-Ray to MakeMKV to HandBrake with Subtitles/CC in iTunes
Replies: 14
Views: 5520

Re: Blu-Ray to MakeMKV to HandBrake with Subtitles/CC in iTunes

You should look at MP4Tools. The free version will allow you to test whether your mkv files will convert with the subtitles intact. The author also has a tool called SUBtools that takes subtitle conversion into MP4 compatible format a step further.

http://www.emmgunn.com/mp4tools-home/