LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-27-2011, 05:54 AM   #1
Jykke
Member
 
Registered: Sep 2005
Posts: 201

Rep: Reputation: 19
mencoder - multiple vob to one avi?


I have following script to convert one vob to one avi with dual pass.
Code:
#!/bin/sh

corename=`echo $1 | sed 's/[.].*$//'`
targetname=`echo $corename.avi`

echo "1st Pass"
echo $1

mencoder $1 -ovc xvid -oac mp3lame -xvidencopts pass=1 -o /dev/null
echo "2nd Pass"

echo $targetname
mencoder $1 -ovc xvid -oac mp3lame -xvidencopts pass=2:bitrate=1800 -o $targetname
It should work, however, now I have some serials where one take is in two VOBs - how do I need to modify my script so that I get the result I want?

I found something like cat *.vob | mencoder ... after a search but trying to adapt this into my script I get:
$ cat *.vob | mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=850:vhq:vqmin=2:vqmax=10:keyint=240 -vop scale=640:480 -oac mp3lame -lameopts cbr:br=128:vol=2 -o film.avi
mencoder: Symbol `ff_codec_bmp_tags' has different size in shared object, consider re-linking
MEncoder SVN-r33713-4.6.1 (C) 2000-2011 MPlayer Team
-vop has been removed, use -vf instead.


Here I tried directly some other options in an example I found but using my xvid options the message is the same...
 
Old 12-27-2011, 08:41 AM   #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
Just make mencoder use stdin:

Code:
cat 1.vob 2.vob | script -
where script is your script.

So mencoder would run like:

Code:
mencoder - -ovc xvid -oac mp3lame -xvidencopts pass=1 -o /dev/null
The '-' means stdin.
 
Old 12-27-2011, 11:19 AM   #3
Jykke
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by H_TeXMeX_H View Post
Just make mencoder use stdin:

The '-' means stdin.
Thanks that was missing - at least it started doing something now - let's see.
 
  


Reply


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
VOB -> AVI - with mencoder, pixlated... what should I do? chutsu Linux - Software 2 03-28-2010 04:59 AM
mencoder to encode multiple avi (s)?? CQ1ST Linux - Newbie 2 01-01-2010 07:56 AM
Convert multiple VOB files to one AVI mrant0 Linux - Software 2 05-26-2007 12:05 PM
converting .vob to avi on linux cranium2004 Linux - Software 3 02-18-2006 05:58 AM
is there any way convert a .vob file to a .avi? jackstoage Linux - Software 8 10-05-2004 08:30 AM

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

All times are GMT -5. The time now is 08:22 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