From b5e6ef5a795f9ec428476d46fbf8b40fdcd87a19 Mon Sep 17 00:00:00 2001
From: gabucino Then build MPlayer: MPlayer has an OSD Menu interface, which is not only completely user
- defined, but is displayed as OSD, on the currently played video! MPlayer has a completely user definiable OSD Menu interface.
Often the need to resize movie images' size emerges. Its reasons can be many,
- examples are decreasing output file size, encoding SVCDs to DivX. Ripped DVDs
- are mostly rescaled, for example a 4:3 DVD should be 640x480, especially
- when you want it to fit to 1 CD, and have good quality at the same time.
- SVCDs have 480x480 size, and their header contains the aspect ratio the
- player should use (Ex.: 480x480 + 4:3 = 640x480). However when encoding to
- AVI (DivX) files, you have be aware that AVI headers don't store this
- value. Thus, the only solution is rescaling. Often the need to resize movie images' size emerges. Its reasons can be
+ many: decreasing file size, network bandwidth, etc. Most people
+ even do rescaling when converting DVDs or SVCDs to DivX AVI. This is bad.
+ Instead of even you doing so, read the Preserving
+ aspect ratio section. The scaling process is handled by the 'scale' video filter:
- Usage:1.4.3 OSD menu
-Installation
+
+--enable-new-conf
+ --enable-menu
parameters to ./configure
etc/menu.conf
to your .mplayer
directoryetc/input.conf
to your .mplayer
directory, or to the system-wide MPlayer config dir (default:
- /usr/local/share/mplayer
)/usr/local/etc/mplayer
)
+ input.conf
to enable menu movement
+ keys (it is described there).
+ $ mplayer -menu file.avi
1.5 RTC
diff --git a/DOCS/encoding.html b/DOCS/encoding.html
index 17621ddfda..3008ee3ede 100644
--- a/DOCS/encoding.html
+++ b/DOCS/encoding.html
@@ -102,24 +102,22 @@
2.4.2 Rescaling movies
--vop scale=X:Y
. Its quality can be set with the
+ -vop scale=widht:height
. Its quality can be set with the
-sws
option. If it's not specified, MEncoder will use 0:
fast bilinear.
- mencoder sample-svcd.mpg -ovc lavc -lavcopts
- vcodec=mpeg4:more_options -vop scale=640:480 -oac copy -o
- output.avi
Usage:
+
+ mencoder input.mpg -ovc lavc -lavcopts
+ vcodec=mpeg4:more_options -vop scale=640:480 -oac copy -o
+ output.avi
2.4.3 Stream copying
@@ -268,5 +266,33 @@ Explanation of the process:
-vobsuboutindex 0 -vobsuboutid fr -sid 1
DVDs and SVCDs (i.e. MPEG1/2) files contain an aspect ratio value, + which describes how should the player scale the video stream, so humans + won't have egg heads (ex.: 480x480 + 4:3 = 640x480). However when encoding + to AVI (DivX) files, you have be aware that AVI headers don't store this + value. Rescaling the movie is disgusting and time consuming, there + must be a better feature!
+ +There is.
+ +MPEG4 has an unique feature: the video stream can contain + its needed aspect ratio. Yes, just like MPEG1/2 files (DVD, SVCD). + Regretfully, there are no video players outside which support this + attribute. Except MPlayer.
+ +This feature can be used only with libavcodec's mpeg4
+ codec. Keep in mind: although MPlayer will correctly play the created file,
+ other players will use the wrong aspect ratio.
You seriously should crop the black bands over and below the movie image. + See TODO.
+ +$ mencoder sample-svcd.mpg -ovc lavc -lavcopts
+ vcodec=mpeg4:aspect=16.0/9.0 -vop crop=714:548:0:14 -oac copy -o output.avi