LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-29-2009, 09:30 AM   #1
CQ1ST
Member
 
Registered: Oct 2005
Location: NewZealand
Distribution: Xubuntu Trusty
Posts: 77

Rep: Reputation: 18
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, 10:10 AM   #2
anonobomber
Member
 
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, 08:56 AM   #3
CQ1ST
Member
 
Registered: Oct 2005
Location: NewZealand
Distribution: Xubuntu Trusty
Posts: 77

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


Reply

Tags
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 09:58 PM
mencoder: how to encode video to avi format Lotharster Linux - Software 3 02-08-2006 12:47 PM
mencoder settings for xvid encode notolerance Linux - Software 1 12-19-2005 05:16 PM
Mencoder: encode so that the result will just fit on a CD? J_Szucs Linux - Software 2 03-09-2004 01:45 PM
mencoder wont encode the sound bignester Linux - Software 4 01-15-2004 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:12 PM.

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