I'd like to use HandBrakeCLI to encode videos. However, its an interactive CLI application. I'd like to start the process and send it to the background so it just runs until it finishes without interaction (daemon?).
The HandBrakeCLI command looks something like this:
$ HandBrakeCLI -i input.avi -o output.m4v --preset="AppleTV"
When I run this command, the application shows me the progress continually until the encode is finished. Ideally, I'd like to immediately get back to the command prompt, then see the program running as a process using top, at least until its finished.
I tried this command:
$ HandBrakeCLI > /dev/null -i input.avi -o output.m4v --preset="AppleTV" &
I thought that would work, but its not. Maybe I have the syntax wrong, not sure.
Can someone please shed some light on this for me?