1 |
Thanks Dexter. Good stuff! |
2 |
|
3 |
Cheers, |
4 |
Mark |
5 |
|
6 |
On Sun, Apr 27, 2008 at 9:04 AM, dexters84 <dexters84@×××××.com> wrote: |
7 |
> |
8 |
> There was a bug in my pervious script |
9 |
> |
10 |
> |
11 |
> #!/bin/bash |
12 |
> |
13 |
> new_files=$(find /path/to/input/ -iname "*.ogg") |
14 |
> inc=1 |
15 |
> for x in $new_files |
16 |
> do |
17 |
> filename[$inc]=$x |
18 |
> char_count=$(stat $filename[$inc]|wc -c) |
19 |
> name_end=$(($char_count - 6)) |
20 |
> out_name[$inc]=$(stat $filename[$inc]|cut -c 10-$name_end) |
21 |
> ffmpeg -i $filename -vcodec mp3 -ac 2 -ar 44100 -ab 256k |
22 |
> /path/to/out/$out_name.mp3 |
23 |
> inc=$(($inc + 1)) |
24 |
> done |
25 |
> |
26 |
> |
27 |
> Mark Knecht pisze: |
28 |
> |
29 |
> Hi, |
30 |
> I've got about 200GB of OGG and FLAC files on my local machine. My |
31 |
> son bought an iPod and wants me to do a batch conversion to mp3. Can |
32 |
> anyone recommend something in portage that can do this in more or less |
33 |
> a single step? Directory hierarchy is basically |
34 |
> band/album/audio_files. |
35 |
> |
36 |
> Extra points I suppose if it can write the output to a different |
37 |
> machine across the network - Windows XP or Gentoo - so that I don't |
38 |
> have to deal with storage issues in this end. |
39 |
> |
40 |
> Thanks, |
41 |
> Mark |
42 |
> |
43 |
> |
44 |
> |
45 |
-- |
46 |
gentoo-user@l.g.o mailing list |