Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
batch encoding with Transcode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ShakyJake
n00b
n00b


Joined: 20 Sep 2004
Posts: 46

PostPosted: Mon Feb 28, 2005 6:52 pm    Post subject: batch encoding with Transcode Reply with quote

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
View user's profile Send private message
b-llwyd
Guru
Guru


Joined: 24 Jul 2002
Posts: 302
Location: Uppsala, Sweden

PostPosted: Mon Feb 28, 2005 10:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum