Mercurial > mplayer.hg
comparison DOCS/tech/encoding-tips.txt @ 9644:0fe056bdb135
vop -> vf change, small fixes. The Polish documentation should be checked for correctness.
author | jonas |
---|---|
date | Sat, 22 Mar 2003 12:02:27 +0000 |
parents | 805b19425c19 |
children | a5785a0b9ee1 |
comparison
equal
deleted
inserted
replaced
9643:f1b66e97c3d3 | 9644:0fe056bdb135 |
---|---|
53 typical mencoder line: | 53 typical mencoder line: |
54 | 54 |
55 mencoder -dvd 1 -o /dev/null -oac copy -ovc lavc \ | 55 mencoder -dvd 1 -o /dev/null -oac copy -ovc lavc \ |
56 -lavcopts vcodec=mpeg4:vbitrate=1000:vhq:vqmin=2:\ | 56 -lavcopts vcodec=mpeg4:vbitrate=1000:vhq:vqmin=2:\ |
57 vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01:vpass=1 \ | 57 vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01:vpass=1 \ |
58 -vop scale=640:480,crop=716:572:2:2 | 58 -vf crop=716:572:2:2,scale=640:480 |
59 | 59 |
60 Phew, all those parameters! Which ones should I change? NEVER leave | 60 Phew, all those parameters! Which ones should I change? NEVER leave |
61 out 'vhq'. Never ever. 'vqmin=2' is always good if you aim for sane | 61 out 'vhq'. Never ever. 'vqmin=2' is always good if you aim for sane |
62 settings - like 'normal length' movies on one CD, 'very long movies' | 62 settings - like 'normal length' movies on one CD, 'very long movies' |
63 on two CDs and so on. vcodec=mpeg4 is mandatory. | 63 on two CDs and so on. vcodec=mpeg4 is mandatory. |
75 $bpp = ----------------------- | 75 $bpp = ----------------------- |
76 $width * $height * $fps | 76 $width * $height * $fps |
77 | 77 |
78 I've attached a small Perl script that calculates the $bpp for | 78 I've attached a small Perl script that calculates the $bpp for |
79 a movie. You'll have to give it four parameters: | 79 a movie. You'll have to give it four parameters: |
80 a) the cropped but unscaled resolution (use '-vop cropdetect'), | 80 a) the cropped but unscaled resolution (use '-vf cropdetect'), |
81 b) the encoded aspect ratio. All DVDs come at 720x576 but contain | 81 b) the encoded aspect ratio. All DVDs come at 720x576 but contain |
82 a flag that tells the player wether it should display the DVD at | 82 a flag that tells the player wether it should display the DVD at |
83 an aspect ratio of 4/3 (1.333) or at 16/9 (1.777). Have a look | 83 an aspect ratio of 4/3 (1.333) or at 16/9 (1.777). Have a look |
84 at mplayer's output - there's something about 'prescaling'. That's | 84 at mplayer's output - there's something about 'prescaling'. That's |
85 what you are looking for. | 85 what you are looking for. |
413 | 413 |
414 > | 414 > |
415 > First pass: | 415 > First pass: |
416 > mencoder TITLE01-ANGLE1.VOB -oac copy -ovc lavc -lavcopts | 416 > mencoder TITLE01-ANGLE1.VOB -oac copy -ovc lavc -lavcopts |
417 > vcodec=mpeg4:vhq:vpass=1:vbitrate=800:keyint=48 -ofps 23.976 -npp lb | 417 > vcodec=mpeg4:vhq:vpass=1:vbitrate=800:keyint=48 -ofps 23.976 -npp lb |
418 > -ss 2:00 -endpos 0:30 -vop scale -zoom -xy 640 -o movie.avi | 418 > -ss 2:00 -endpos 0:30 -vf scale -zoom -xy 640 -o movie.avi |
419 | 419 |
420 1) keyint=48 is way too low. The default value is 250, this is in *frames* | 420 1) keyint=48 is way too low. The default value is 250, this is in *frames* |
421 not seconds. Key frames are significantly larger than P or B frames, so the | 421 not seconds. Key frames are significantly larger than P or B frames, so the |
422 less key frames you have, better the overall movie will be. (huh, like Yoda | 422 less key frames you have, better the overall movie will be. (huh, like Yoda |
423 I speak ;). Try keyint=300 or 350. Don't go beyond that if you want | 423 I speak ;). Try keyint=300 or 350. Don't go beyond that if you want |