View previous topic :: View next topic |
Author |
Message |
ShakyJake n00b
Joined: 20 Sep 2004 Posts: 46
|
Posted: Mon Feb 28, 2005 6:52 pm Post subject: batch encoding with Transcode |
|
|
I would like to transcode a directory of MPEG files into AVI files. Currently I use the command:
Code: |
transcode -i <inputfile.mpg> -o <outputfile.avi> -y xvid4
|
Can I use wildcards to have it load entire directory of MPGs and output them as AVIs? I'm somewht newbie-ish to the Linux CLI and noticed the typical MSDOS "*" doesn't work.
Thanks for any help! |
|
Back to top |
|
|
b-llwyd Guru
Joined: 24 Jul 2002 Posts: 302 Location: Uppsala, Sweden
|
Posted: Mon Feb 28, 2005 10:11 pm Post subject: |
|
|
Try this:
Code: | for i in *.mpg; do transcode -i $i -o `basename $i mpg`avi -y xvid4; done |
this one might also work:
Code: | find *.mpg | xargs -i transcode -i \"{}\" -o \"{}.avi\" -y xvid4 |
|
|
Back to top |
|
|
|