This really is minor, but I'd prefer if the presets were one-word..
Instead of "iPhone / iPod Touch" it could be iPhone, "iPod High" could be iPodHigh just to shorten the command-line a bit, remove the need for the double quotes on some presets.
Search found 31 matches
- Sun Sep 07, 2008 9:16 pm
- Forum: Feature Requests
- Topic: No whitespace in preset-names
- Replies: 1
- Views: 912
- Sun Sep 07, 2008 11:36 am
- Forum: Command Line Interface And Scripting
- Topic: Batch conversion using CLI via Perl or Shell script??
- Replies: 40
- Views: 50951
Re: Batch conversion using CLI via Perl or Shell script??
trondmm: No need for the perl parsing (for me atleast).. I present to the forum, my should-work-as-advertised batch-encoder script! #!/bin/sh ############################################################################### # Shellscript : hb.sh - Batch-encoder script for HandBrakeCLI # Author : Snorr...
- Sat Sep 06, 2008 11:36 am
- Forum: Command Line Interface And Scripting
- Topic: Batch conversion using CLI via Perl or Shell script??
- Replies: 40
- Views: 50951
Re: Batch conversion using CLI via Perl or Shell script??
That wasn't too hard... A bit of googling and found that what I was looking for was awk '{print $(NF-1)}' . NF reports the number of fields in the buffer that AWK is working with, and (NF-1) gives the second last field. For this to work properly, the folders containing the VIDEO_TS folder should be ...
- Sat Sep 06, 2008 10:54 am
- Forum: Command Line Interface And Scripting
- Topic: Batch conversion using CLI via Perl or Shell script??
- Replies: 40
- Views: 50951
Re: Batch conversion using CLI via Perl or Shell script??
OK, so I'm dumb AND blind... :lol: I've been confusing sed and awk a bit.. I've been looking so hard at the inner for-loop that I've read awk and thought sed... The answer to my variable is so painfully obvious and simple: filename=$(echo $i | sed 's/[/]/ /g' | awk '{print $2}') :) Now to make the s...
- Sat Sep 06, 2008 10:29 am
- Forum: Command Line Interface And Scripting
- Topic: Batch conversion using CLI via Perl or Shell script??
- Replies: 40
- Views: 50951
Re: Batch conversion using CLI via Perl or Shell script??
OK, I've been trying to mod ronnor's script a bit to make it better at doing multiple directories in one go. My folder structure: Series/ 24/ 24_SEASON1_DISC1/ 24_SEASON1_DISC2/ 24_SEASON1_DISC3/ ... BABYLON_5/ B5_SEASON1_DISC1/ B5_SEASON1_DISC2/ B5_SEASON1_DISC3/ ... The problem with ronnor's scrip...
- Thu Aug 14, 2008 7:09 pm
- Forum: Command Line Interface And Scripting
- Topic: Batch conversion using CLI via Perl or Shell script??
- Replies: 40
- Views: 50951
Re: Batch conversion using CLI via Perl or Shell script??
ronnor, that script is almost exactly what I'm looking for, but with one thing missing: shorter-than! I'm currently ripping my B5 DVD-set to my iPhone and a longer-than script works 80% for me. Thing is, the DVDs are structured so that Title 1-4 are the individual episodes on each disc and Title 5 i...