Help with ISO Script - CLI

Discussion of the HandBrake command line interface (CLI)
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
PowerPenguin
Posts: 4
Joined: Sun Oct 12, 2014 11:20 pm

Help with ISO Script - CLI

Post by PowerPenguin »

I have the following script running in Hazel to try and convert ISO to MP4 but it isn't working - I have never used CLI before and was wondering if someone can help me out? I got the script from another web site so not entirely sure that I know what I am doing


filename=$(basename $1)
filename=${filename%.*}
output_filename="/Users/username/Desktop/output/$filename.m4v"

HandBrakeCLI -i foo.iso -o foo.mkv –main-feature –preset=”High Profile”
PowerPenguin
Posts: 4
Joined: Sun Oct 12, 2014 11:20 pm

Re: Help with ISO Script - CLI

Post by PowerPenguin »

Surely someone is already using this and can help me out?
Woodstock
Veteran User
Posts: 4619
Joined: Tue Aug 27, 2013 6:39 am

Re: Help with ISO Script - CLI

Post by Woodstock »

You might get some ideas from this topic: viewtopic.php?f=10&t=26163
Deleted User 11865

Re: Help with ISO Script - CLI

Post by Deleted User 11865 »

For starters, all long options start with a double dash, --main-feature --preset and so on…
PowerPenguin
Posts: 4
Joined: Sun Oct 12, 2014 11:20 pm

Re: Help with ISO Script - CLI

Post by PowerPenguin »

Woodstock wrote:You might get some ideas from this topic: viewtopic.php?f=10&t=26163
Thanks - Not being a coder it doesn't mean much to me unfortunately. Would you be able to point out which of the bits of code would achieve converting the iso to an avi or some other form of output?
PowerPenguin
Posts: 4
Joined: Sun Oct 12, 2014 11:20 pm

Re: Help with ISO Script - CLI

Post by PowerPenguin »

Can someone please provide me with the code they use?
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: Help with ISO Script - CLI

Post by mduell »

You've been provided the code they use.

No one is likely to do your homework for you.
AlBundy
Bright Spark User
Posts: 377
Joined: Mon Dec 31, 2012 4:47 am

Re: Help with ISO Script - CLI

Post by AlBundy »

1. Your script doesn't use the declared variables
2. If you use my script form the mentioned thread you can simply call
hb.rb --input "path_to_your_iso. Iso" --output "~/#title#.mkv"
Post Reply