JDK187
13th May 2006, 02:00
Hi,
I'm trying to create a script to convert a folder of dv-avi's to xvid avi's using mencoder. For example, say i do this:
for i in *.avi; do mencoder $i -ovc xvid -xvidencopts bitrate=700 -oac mp3lame -lameopts vbr=5 ;done
doing this outputs the 'test.avi' file and forever overwrites it with each avi the loop finds. Can someone please help me script it so the output file name contains the original input file name. I'll be outputing the converted files in another folder so there's no conflicts.
I really appreciate any advice you can offer. I've been fooling around with linux for a few days now and i really like it :)
Cheers
JDK
I'm trying to create a script to convert a folder of dv-avi's to xvid avi's using mencoder. For example, say i do this:
for i in *.avi; do mencoder $i -ovc xvid -xvidencopts bitrate=700 -oac mp3lame -lameopts vbr=5 ;done
doing this outputs the 'test.avi' file and forever overwrites it with each avi the loop finds. Can someone please help me script it so the output file name contains the original input file name. I'll be outputing the converted files in another folder so there's no conflicts.
I really appreciate any advice you can offer. I've been fooling around with linux for a few days now and i really like it :)
Cheers
JDK