LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 07-20-2005, 09:21 PM   #1
c0ldshadow
LQ Newbie
 
Registered: Nov 2004
Distribution: FC4
Posts: 8

Rep: Reputation: 0
mencoder question.. crop and scale..


hey, i am trying to make an avi file of the dvd "a beautiful mind". on the cover it says the aspect is 1.85:1..

here is the command i am using:
Code:
mencoder -alang en -sws 2 dvd://1 -force-avi-aspect 1.85:1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=1024:vpass=1 -vf crop=720:448:0:12 -oac mp3lame -lameopts br=92:vol=10:vbr=3 -o a_beautiful_mind.avi

(2nd pass command identical except vpass=2 obviously..)

the problem i am having is that the avi file is slightly to wide for the screen... it is exactly like the dvd, except without the black borders, and when playing the dvd when i try to resize it, it keeps the movie in proportions, whereas with my avi file i cannot resize it proportionally....

my guess is that i need to either use a "scale" paramater, or subtract from the first 2 values of the crop setting proportionally... basically i am unsure of what values to use though, and what exact path i should take to fix this problem..

any help would be awesome, thanks.. --c0ldshadow
 
Old 07-21-2005, 04:10 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
you presumably know that mplayer can make use an additional aspect fields in the avi header to automatically scale on playback, but this is not a standard avi feature, so won't work in other apps. what you can do is use -vf crop=...,scale=720:-2 if memory serves right. the -2 auto scales the output based on the new aspect of the video stream after cropping, not just the 16/9 ratio etc... should do what you want, but ultimately it's discouraged to scale during encoding, as you always lose quality somewhere... and it's slower too. but as above... there's no formal way to store an arbitrary aspect in an avi header anyway.
 
  


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
Crop/scale pdfs S.B. Linux - Software 1 03-16-2005 11:39 AM
crop images to 10x15 otoomet Linux - Software 3 03-03-2005 04:54 PM
how to make a 4x6 crop in gimp? webazoid Linux - Software 0 07-30-2004 02:33 PM
mencoder: re-scale and fit on a CD? J_Szucs Linux - Software 0 03-18-2004 01:36 AM
Mencoder question. gbrad Linux - General 5 02-18-2003 07:45 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration