Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-29-2009, 08:30 AM   #1
Registered: Oct 2005
Location: NewZealand
Distribution: Xubuntu Trusty
Posts: 76

Rep: Reputation: 17
mencoder to encode multiple avi (s)??

I'm new to commandline, and I'd like to:
$mencoder -ffourcc DX50 -oac mp3lame -ovc lavc
about 10 files...

can you tell me how to write that please?
Old 12-29-2009, 09:10 AM   #2
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
Put all the files in one folder and run something like this :

for i in *; do mencoder -ffourcc DX50 -oac mp3lame -ovc lavc $i -o $i.avi; done

Or an even better way would be to use find like this:

find . -exec mencoder -ffourcc DX50 -oac mp3lame -ovc lavc {} -o {} \;
Old 01-01-2010, 07:56 AM   #3
Registered: Oct 2005
Location: NewZealand
Distribution: Xubuntu Trusty
Posts: 76

Original Poster
Rep: Reputation: 17
thanx, I forgot to mention they were 9unplayable9 .avis, so i
mkdir done/
for i in *;do mencoder <etc> "$i" -o done/"$i";done


avi, encoding, mencoder

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo play .avi 5.1 Dolby sound encode AC3 pass through spdif Frank64 Linux - Software 6 02-17-2008 08:58 PM
mencoder: how to encode video to avi format Lotharster Linux - Software 3 02-08-2006 11:47 AM
mencoder settings for xvid encode notolerance Linux - Software 1 12-19-2005 04:16 PM
Mencoder: encode so that the result will just fit on a CD? J_Szucs Linux - Software 2 03-09-2004 12:45 PM
mencoder wont encode the sound bignester Linux - Software 4 01-15-2004 09:22 PM

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration