LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2010, 11:57 AM   #1
hate29
Member
 
Registered: Oct 2005
Location: Finland, Tampere
Distribution: Debian
Posts: 47

Rep: Reputation: 15
Mencoder Queue


Hi!

I use mplayer/mencoder to make *.avi files from mpegs. Now I wonder is it possible to someway queue commands. I needed because I try to use mencoder at night time, while I sleep. I could encode about 4-5 movies / night but how to do it?
 
Old 09-13-2010, 12:54 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, to run it sequentially you'd make a loop:

Code:
for i in *.mpg; do mencoder "$i" -o "$(basename "$i" .mpg).avi"; done
If you use different options for each video, you can just write the commands separated by colons ";" and they will execute in order. If you want to run them in parallel, just open as many terminals as you have cores and start encoding all of them at once. Or you can use the threads options and just encode one at a time.

You can try many things.

Last edited by H_TeXMeX_H; 09-13-2010 at 12:55 PM.
 
1 members found this post helpful.
Old 09-13-2010, 01:09 PM   #3
hate29
Member
 
Registered: Oct 2005
Location: Finland, Tampere
Distribution: Debian
Posts: 47

Original Poster
Rep: Reputation: 15
Nice! Thanks! That solved my problem for good. So simple but still perfect solution!
 
  


Reply



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
How to untar my tarred mail queue folder back to the sendmail queue directory again? Md.Abul Quashem Linux - Server 6 02-16-2010 08:32 AM
Is it possible for me to write in front of queue in case of message queue? hemanthv414 Linux - Newbie 1 11-17-2008 04:40 PM
Mencoder Help FlamingChainsaws Ubuntu 3 09-09-2008 04:45 PM
How to get MEncoder ? zahoo Linux - Software 1 04-08-2005 07:27 AM
Deleted qmail queue /var/qmail/queue tris Linux - Software 0 10-24-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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