Page 1 of 1
Simple Script for HandbrakeCLI

Posted:
Sat Jun 21, 2014 9:15 pm
by tomar012
Hello
I have been searching for a simple script that will run HandbrakeCLI on the files identified by Hazel. I have a Hazel rule to that picks *.mpg files and now I just need another rule to take those files and run them through Handbrake, saving them as *.m4v files using the High Profile preset. I don't want to move the transcoded files. I just want them to stay in the same place as the original. Thanks in advance!
Re: Simple Script for HandbrakeCLI

Posted:
Mon Jun 23, 2014 3:31 pm
by Mr_Noodle
Try doing a search on these forums as I believe this has come up several times before.
Re: Simple Script for HandbrakeCLI

Posted:
Mon Jun 23, 2014 7:18 pm
by tomar012
Respectfully, I have done several searches on this forum looking for the solution to my problem. However I could not find the script that addressed my specific need. Most of the scripts I have found requires you to define a source directory and a destination directory. This is not what I want to do. I would like the script to take the file that Hazel has chosen, transcode the file with handbrake, and then leave the newly transcoded file in the original directory which could change depending on the name of the file.
Re: Simple Script for HandbrakeCLI

Posted:
Tue Jun 24, 2014 2:56 pm
by Mr_Noodle
This post seems to do what you want with some tweaking:
viewtopic.php?f=4&t=2136&p=8956&hilit=handbrake#p8956The only part is the output directory which you can tweak. If you don't know how, I suggest reading up more on shellscripts as it's a more general issue than anything specific to Hazel.
Re: Simple Script for HandbrakeCLI

Posted:
Wed Jun 25, 2014 4:02 pm
by tomar012
Thanks Mr Noodle. I came across that thread before when trying to research my problem. However, I will look at it again. I appreciate the assist. Regards