Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 07-20-2005, 10:21 PM   #1
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:
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, 05:10 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
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.


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 12:39 PM
crop images to 10x15 otoomet Linux - Software 3 03-03-2005 05:54 PM
how to make a 4x6 crop in gimp? webazoid Linux - Software 0 07-30-2004 03:33 PM
mencoder: re-scale and fit on a CD? J_Szucs Linux - Software 0 03-18-2004 02:36 AM
Mencoder question. gbrad Linux - General 5 02-18-2003 08:45 AM > Forums > Linux Forums > Linux - Distributions > Fedora

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