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”
Help with ISO Script - 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.
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.
-
- Posts: 4
- Joined: Sun Oct 12, 2014 11:20 pm
Re: Help with ISO Script - CLI
Surely someone is already using this and can help me out?
Re: Help with ISO Script - CLI
You might get some ideas from this topic: viewtopic.php?f=10&t=26163
Re: Help with ISO Script - CLI
For starters, all long options start with a double dash, --main-feature --preset and so on…
-
- Posts: 4
- Joined: Sun Oct 12, 2014 11:20 pm
Re: Help with ISO Script - CLI
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?Woodstock wrote:You might get some ideas from this topic: viewtopic.php?f=10&t=26163
-
- Posts: 4
- Joined: Sun Oct 12, 2014 11:20 pm
Re: Help with ISO Script - CLI
Can someone please provide me with the code they use?
Re: Help with ISO Script - CLI
You've been provided the code they use.
No one is likely to do your homework for you.
No one is likely to do your homework for you.
Re: Help with ISO Script - CLI
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"
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"