- Sep 19, 2000
- 10,284
- 138
- 106
#!/bin/sh
for i in 1 2 3 4 5 6 7 8
do
s=$(expr $i + 16)
title=S01Ep$s
echo $s
neroAacEnc -ignorelength -q 0.45 -if audio.wav -of $title.m4a &
x264 test.y4m -o $title.264 --no-psnr --no-ssim --threads auto --no-fast-pskip -t 2 --mixed-refs --me tesa -w --direct auto -A all --crf 20.0 -r 6 -m 7 -b 16 --b-pyramid --progress --b-rdo &
mplayer dvd://$i -vo yuv4mpeg:file=test.y4m -ao pcm:fast:file=audio.wav -alang en
done
Encoding videos in linux can be a pain, expecially when you have 30 min eps, 8 to a disk. No more (for me at least
So go ahead, show off you awesome scripting skills (this is one of my first shell scripts btw)
P.S. This may belong in the programming forum, but I figured it was really closer to *nix stuff then actual programming.