View Full Version : XviD-14112002-1...
mikeson
3rd December 2002, 19:09
@Koepi & developers or experienced users of XviD:
I humbly ask you, a developer of XviD and man who knows much more about video coding than I do, for advice. Is it true that P and B frames are "derived" (I know, very desultory explanation) from I frame, isn't it? So would it be wise to set on 2nd pass I frames (just I frames, not P frames) quantizers to 2/2. I think it would improve encoding quality a little bit, wouldn't it?
I'm asking becasue I was very successfull while using this method of encoding with DivX4 and DivX5 with divx4log. It definitelly improves image quality in some cases.
http://forum.doom9.org/showthread.php?s=&threadid=27780
Thank you for answering
fraatz
3rd December 2002, 21:12
@mikeson
you can do that with xvid...
just cap i frame quants to 2/2 but you really risk to get a much oversized avi.
iago
3rd December 2002, 21:27
AFAIK, only one or two frames are influenced by the quality of the preceding keyframe, not the whole secene or in other words not the whole series of frames until the next keyframe. Therefore quantizing keyframes higher than 2 even has a positive impact on the overall quality of the encode. A range of 2-6 is very reasonable imho.
-h ?
regards,
iago
NuclearFusi0n
3rd December 2002, 21:30
holy crap my movie encoded at roughly 769 kb/sec is absolutely STUNNING for such a low bitrate (Run Lola Run is the movie, encoded at 640 x 352)
Thanks Koepi!
here are the settings i used:
Settings for XviD ()
Mode: 2 Pass - 2nd pass Int.
Dummy 2nd Pass: OFF
Desired Size: 451114KB
I-frame Boost: 0%
Below I-frame Distance: 10%
I-frame Bitrate Reduction: 20%
Curve Compression: Payback with Bias, Bitrate Payback Delay: 250frames
High Bitrate Scenes: 0%, Low Bitrate Scenes: 0%
Hinted Motion Estimation: OFF
Alternative Curve System: OFF,
Motion Search Precision: 6 - Ultra
Quantization Type: MPEG-Custom <----hvs-good-picture.txt
FourCC Used: XVID
Max I-frame Interval: 300, Min I-frame Interval: 1
Lumimasking: ON
Interlacing: OFF
Greyscale: OFF
Quarterpel: ON
Global Motion Compensation: OFF
Chroma Motion: ON
Max B-frames: 4
B-frames Quantizer Ratio: 150%
B-frames Quantizer Offset: 100
Packed Bitstream: OFF
DX50 B-VOP Compatibility: ON
Print debug info on each frame: OFF
Min I-frame Quantizer: 2, Max I-frame Quantizer: 31
Min P-frame Quantizer: 2, Max P-frame Quantizer: 31
Max Bitrate: 10000kbps, Max Overflow Improvement: %, Max Overflow Degradation: %
Start Credits: OFF, End Credits: OFF,
mikeson
3rd December 2002, 22:32
@iago:
AFAIK, only one or two frames are influenced by the quality of the preceding keyframe, not the whole secene or in other words not the whole series of frames until the next keyframe.
So please can you explain me this?
Situation where there is no B-frames used:
I1 P1 P2 P3 P4 I2
Ok, P1 and probably P2 is influenced by I1, but by what are P3 and P4 influenced? If by I1 - so it would be wise to have I1 Q2 and if by P1 or P2 - it would be wise to have I1 Q2 also, because P1 and P2 are influenced by I1. Or maybe it is completely different and I'm all wrong. :confused:
AndyP
3rd December 2002, 23:59
As far as I know P1-4 will all reference I1 for blocks that haven't changed while blocks that have changed will be written to the bitstream. When I did tests with I set to min=max=2 and P set to something line min=2 max=8 and then again with I set to min=2 max=4 and P still min=2 max=8, the latter gave a better quant distribution overall. I think the problem would be that if you cap I quants at 2 then the P quants will be higher as a result so it really depends on what is better I=2 and P=high or I=3/4 and P=lower.......... the answer is probably it depends on the movie/scene etc... :D I personally use I=2-4 and P=2-8 and it seems fine to me.
Kind Regards,
Andy
mikeson
4th December 2002, 00:14
@AndyP:
I think the problem would be that if you cap I quants at 2 then the P quants will be higher as a result
Yes, you're right but P quants (although with higher quants) are from better looking I frames with 2 quant. So if I have I quant at 4, that has macroblocks, P frame could be anything, but macroblocks still remain.
On the other side when I have I frame at quant 2, then P frame (although with higher quant) has good posibility to achieve better quality (than P frame from previous example), because they are from better I frame.
But this is all my thoughts and speculations, maybe we should have explanation (or correction) from somebody more competent.
-h, Koepi or sysKin?
-h
4th December 2002, 00:42
It all depends on what you want to see - sharp but smeared P-frames (which you'll most likely get with the I-frame's quant set to 2) or similar quality for all frames in the sequence (leaving quant choice up to rate control).
There's no set rule, and only a scheme like RDO could make the choice something close to optimal.
-h
mikeson
4th December 2002, 00:50
@-h
Thank you for answering.
So what quantizer settings do you recomment as XviD developer?
I'm a little bit confused now. Leave it at default 2-31, or 2-6 for I frames and 2-16 for P frames as iago suggest? I'm not sure, really.
-h
4th December 2002, 01:18
So what quantizer settings do you recomment as XviD developer?
I don't know, I never really encode anything apart from testing for bugs :)
-h
mikeson
4th December 2002, 01:20
@-h
I see. ;)
HarryM
4th December 2002, 08:52
I tested last Koepi's build (03122002).
a) B-frames ON- 2 frames, ChromaME ON, qpel ON, lumimask OFF = 22 221 KB (at quant=2)
b) B-frames ON- 2 frames, ChromaME ON, qpel ON, lumimask ON = 22 803 KB (at quant=2)
Source is a little 2 min video grabed from TV and resized with avisynth and filtered with Convolution3D.
Is theorethically able, that lumi-masking dont help for better compressibility? Vid a) versus b)...
Didée
4th December 2002, 09:36
I was running some tests on a short "snip-through-a-movie" with this build, and found the following:
build 03122002
quant3/mpeg: 7412 kB
quant3/h263: 8500 kB
quant4/mpeg: 5494 kB
quant4/h263: 5922 kB
build 25112002
quant4/mpeg: 6404 kB
quant4/h263: 6162 kB
Hello, what's going on here?
Settings were: Bframes 4-125-175, Qpel ON, ChroMo ON, fixed quants (as shown).
My first thought was "hey, this build has mpeg+h263 swapped somehow", but looking at the image characteristics clearly showed that that is not the case.
Could anyone please test this also, to confirm this misbehaviour? Something must be wrong there (at q2 h263 might be bigger in some cases, but not at q3, and for sure not at q4 !)
I would have done more tests on this, but I was hunting another issue:
I still have "nervous blocks" or "block flickering" in my encodings with Bframes. The more still the scene is, the more annoying is the effect. It seems to be in the very basics of Bframe implementation: Effect is still clearly visible with e.g. Bframe 2-100-200 at fixed quant3. I even did a comparison to divx5. Not that I liked its result more - but at least, there was no block flickering.
Hands down, friends:
Are really all of you satisfied with the actual quality of Bframes?
Look close, please!
Or - maybe I simply had a bad evening yesterday ..
ookzDVD
4th December 2002, 09:43
Hands down, friends:
Are really all of you satisfied with the actual quality of Bframes?
Look close, please!
I'm satisfied, the quality is "ok" for me even I never look close
since I never see the video that close ;)
sam_b
4th December 2002, 11:13
@Didée
I have found this as well. At quality 81ish (quant 4-5 I think) H263 gets bigger files than MPEG at low resolutions. MPEG required quality 84 for me at this setting with my clip. When I put my test sample up to >640x288 this reversed. Just assumed that this was normal behaviour, but I didn't compare with a previous build. Both settings 'look' normal to my eyes at least.
I still have "nervous blocks" or "block flickering" in my encodings with Bframes. The more still the scene is, the more annoying is the effect. It seems to be in the very basics of Bframe implementation: Effect is still clearly visible with e.g. Bframe 2-100-200 at fixed quant3. I even did a comparison to divx5. Not that I liked its result more - but at least, there was no block flickering.
I have noticed this many times, but mainly from DivX5. Xvid only seemed to suffer from it at low resolutions with sharp images, and this is pretty much fixed by Qpel for me. Bframes have always improved picture quality for me for low-medium high bitrates and near-DVD resolutions. I normally encode at around 688x304.
To test if it was a B-frame implementation issue, would you not have to test something like 4-100-0? To test basic B-frame implementation I would test at quant 3 also, not quant 5. I may have misunderstood you here though.
HarryM
4th December 2002, 11:53
I have the same experiences.
For many videos is 'mpeg' quant set-up potentially more compressible than 'h263' (but not more nice-look - IMHO).
I observe this from time to time, without important, when I using the newest build or any weeks old.
This is normal.
But why is video with lumimask=ON bigger than with lumimask=OFF?
sysKin
4th December 2002, 14:06
Originally posted by Didée
I still have "nervous blocks" or "block flickering" in my encodings with Bframes. The more still the scene is, the more annoying is the effect. It seems to be in the very basics of Bframe implementation: Effect is still clearly visible with e.g. Bframe 2-100-200 at fixed quant3. I even did a comparison to divx5. Not that I liked its result more - but at least, there was no block flickering.I saw them. You know what they are? Ffdshow's postprocessing. Do not ask my why or how, but if you have xvid video with qpel and bframes, you cannot use ffdshow's 'mplayer' postprocessing (in particualr: deringing if I remember correctly). You can use nic's postprocessing and it's fine. Or none at all.
This is a really strange ffdshow bug :)
Radek
HarryM
4th December 2002, 14:23
Originally posted by sysKin
I saw them. You know what they are? Ffdshow's postprocessing. Do not ask my why or how, but if you have xvid video with qpel and bframes, you cannot use ffdshow's 'mplayer' postprocessing (in particualr: deringing if I remember correctly). You can use nic's postprocessing and it's fine. Or none at all.
This is a really strange ffdshow bug :)
Radek
I observe this 'macroblock flickering' from time to time at xvid's decoder too.
E.g. at scenes with minimum movement (and very contrasty content) is this 'defect' very good perceptiable. But nothing fateful.
I dont use ffdshow decoder, this decoder is'nt (in quality) exactly same as xvid decoder.
Didée
4th December 2002, 15:21
Syskin:
Important point! But, alas, not the solution.
Indeed, ffdshow's mplayer PP makes the problem even worse and clearly visible. But the effect in itself is there even with Nic's PP, and also when not using ffdshow at all.
Generally, I target my encodes that way that they are to watch w/o any PP, and that's what I usually do: use it not.
Thinking a little more about it, I suspect that I encountered this problem since Qpel and Bframes are usable together (but even if qpel is not used). By the time Qpel was not active when Bframes were used, those flickering blocks were not there - if I remember right. I have to check again with an older build.
But I think IF there should be some flaw in the core, that is the direction to search.
BTW, I'm not complaining here. All you XviD devels are doing SO GREAT work, really.
But imagine, Doom9 is doing the next codec comparison, and XviD gets (again) disqualified, because of the flickering ... aaarrgh!!
-------------------------------
P.S. I had a little attachement on page 6 of this thread, just in case someone'd like to check over ..
colasonic
4th December 2002, 15:53
Reporting two problems:
1, Qpel's smearing problem still exists in this 0312 Build. I just encode a short black and white DVD clip. Smearing lines appear in a large white background after a slowly moving object. Unchecked the qpel option and all came to normal.
2, StatsReader 2.0: after saving a new stats file, I cannot exit normally. It crashes every time after I click the "Exit" button. Then the computer says " StatsReader meets a problem and needs to be closed..." something like that.
I use English Windows XP plus Chinese language pack.
ErMaC
4th December 2002, 21:28
I'm getting those same crashes with StatsReader as well. Program never terminates normally.
fraatz
5th December 2002, 00:49
@syskin/koepi: i did a small test with 3b's 150/100 and i can confirm what didee says. this is not a decoding problem, i used xvid.ax and vdub shows this, too.
the flickering effect is clearly visible at static closeups and low bitrates and it doesn't matter if qpel or hpel is used. it would be really nice if you could take a look at this, if you like i can attach a little clip of 10 sec ...
anyway, the latest improvements on xvid are absolutely amazing and with c3d and hvs good picture matrix we can put a quite sharp 2.5 h movie on 1 cd..
thanks a lot
blivit
5th December 2002, 02:42
Originally posted by sysKin
I saw them. You know what they are? Ffdshow's postprocessing. Do not ask my why or how, but if you have xvid video with qpel and bframes, you cannot use ffdshow's 'mplayer' postprocessing (in particualr: deringing if I remember correctly). You can use nic's postprocessing and it's fine. Or none at all.
This is a really strange ffdshow bug :)
Radek
It's not a bug. It's a "feature" of the deblocking (not deringing) postprocessing of the mplayer routines. MarkFD's mpeg2dec suffers the exact same jittery artifacts with deblocking turned on. Therefore I no longer use any of the deblocking/deringing features of mpeg2dec.... I tried both on an uncompressed For the Birds from Monsters Inc, and the ending credits show the jittery artifacts quite strongly. Nic's method, as you said, doesn't have this problem. Is there any filter that can be used in avisynth or virtualdub to apply Nic's deblocking method to video before sending it on to be compressed? mpeg2dec just is NOT an option with the kinds of jittery artifacts that it produces.
-Eric
cjv
5th December 2002, 03:05
Originally posted by blivit
Is there any filter that can be used in avisynth or virtualdub to apply Nic's deblocking method to video before sending it on to be compressed? mpeg2dec just is NOT an option with the kinds of jittery artifacts that it produces.
I believe Marc FD's modified mpeg2dec already uses Nic's deblocking routines. :)
Originally posted by Marc FD
I've just made a Mod for MPEG2DEC : this version uses PostProcessing.
(big thx for Nic because the PostProcessing is from his XviD Dshow filter)
http://forum.doom9.org/showthread.php?s=&threadid=33600&highlight=mpeg2dec
cjv
ErMaC
5th December 2002, 03:09
I think it's perfectly possible to compensate for the blocks created by MPEG2DEC3 by using FluxSmooth and Conv3d. I noticed the problem as well but by using spatiotemporal filters you can alleviate this problem and gain both the deblocking from the MPEG2DEC along with good temporal smoothing as well.
kilg0r3
5th December 2002, 11:02
@ermac
which value ranges do you use for fluxsmooth and c3d, and, do you use them together?
serbersan
5th December 2002, 11:30
Originally posted by blivit
It's not a bug. It's a "feature" of the deblocking (not deringing) postprocessing of the mplayer routines. MarkFD's mpeg2dec suffers the exact same jittery artifacts with deblocking turned on. Therefore I no longer use any of the deblocking/deringing features of mpeg2dec.... I tried both on an uncompressed For the Birds from Monsters Inc, and the ending credits show the jittery artifacts quite strongly. Nic's method, as you said, doesn't have this problem. Is there any filter that can be used in avisynth or virtualdub to apply Nic's deblocking method to video before sending it on to be compressed? mpeg2dec just is NOT an option with the kinds of jittery artifacts that it produces.
-Eric
Well I don't agree. I use mpeg2dec3 without any postprocessing. I use Xvid 03 from koepi, not ffdshow. And the "nervous blocks" are there. And the efects is visible and without watching close to the monitor.
I've noticed that the effect isn't as noticeable for me as previous versions but is there and noticeable.
Continue such a great effort, the quality is outstanding¡¡¡
Prettz
5th December 2002, 18:29
@koepi:
What exactly are the advantages to using "Payback with Bias" over "Payback Proportionally"??? When using nandub, Payback Proportionally has always worked best for me. And just based on the descriptions of those two methods, it would sound like Payback Proportionally would be better.
I've noticed that you and the doom9 xvid guide both always have said to use Payback with Bias. So for the record, what exactly is better about it?
iago
6th December 2002, 22:33
@Koepi
I just wanted to share with you that I'm very glad about the results I achieved with my first 1CD/AC3Audio encode ;) "Henry and June" (~130 min.), using b-frames 4/100/200, Quartelpel, hvs-good-picture matrix, together with Convolution3D and UnDot, and a relatively lower resolution of 512*288 with neutral bicubic resize.
Decoded with ffdshow 10/10, "Use XviD" unchecked, "IDCT: simple(16383)" -> no problems with playback, neither smearing, etc.
"FourCC: DX50" and "DX50 B-VOP Compatibility" -> no A/V synch. problems.
best regards,
iago
miha
8th December 2002, 13:25
There seams to be quite a lot of changes in cvs dev3-tree does anybody know what are they? (fixes or something else)
wing1
8th December 2002, 20:14
@koepi
OK, after many days of codecs comparision for speed/quality/file size differences on the same avisynth script, and this is what i've observed.
umaniac's 29112002 = 18fps(no lumi) & 16fps(lumi) w/ow (B-F/chr m)
koepi's 03122002-1 = 16fps(no lumi) & 12fps(lumi) w/ow (B-F/chr m)
Uncheck chr motion option gives both dll's an additional 2-4fps; However, this will result with a slightly blurry video ( I like sharp video :D ). Hence, this option is always on for me from now on.
Lumi masking option for both dll's creates bad B & P frames intermittently. However, the video sharpness does increase with this option on. Koepi's dll produces more pleasant sharp video but more problematic B and P frames (random macroblocks), while Umaniac's dll produces less problematic B and P frames but at the cost of the sharpness. Both dll's drop encoding speed down by 2-4fps.
As for file size, Koepi's dll produces the smaller of the two at 1-2Mb per minute (depending on the scene intensity). This is true whether lumi mask, chroma motion, and B-frame options are being utilized or not.
Currently I am using Koepi's 03122002-1 xvid.dll with 3/150/100 along with chroma motion option.
Didée
9th December 2002, 00:26
I'm not the one who has the deep technical insight, but just a thought, anyway:
Were you using Qpel in your encodings? You didn't say wether it was in use or not ..
Koepi's build 03122002 has a new feature, dynamic Qpel decision: during encoding, the codec enables Qpel dynamically, depending on if the scene may benefit or suffer from using Qpel (search distance is cut to half with Qpel, so it is contraproductive on mid- or hi-motion scenes).
Of course this feature takes additional time to compute - therefore the 0312 is supposed to drop some speed when Qpel is used.
As far as I know, Nic's build 29112002 is without this dynamic decision.
Unless I did get something wrong - if so, just kick me in the a** :)
iago
9th December 2002, 01:07
@Didée
Believe me I have no evil intentions such as kicking a** ;), but afaik there is no "Nic's 29112002 build" ;).
I guess the binary you were referring to was "uManiac's 29112002 build".
regards,
iago
wing1
9th December 2002, 03:37
heh :D :D @iago you have a good sense of humor.
@didee
If you are refering to my previous post, then no I do not use Qpel. Qpel will drop encoding speed a few more fps if enable and the quality will also suffer imho. If I am going to use Qpel, then I'd use it without B-frame. So far I am not seeing a good result when missing these two options together.
Personally, 1-2 fps differences is not a big deal to me. The quality is what is more important.
Shayne
9th December 2002, 05:04
well with all these builds around we have no lack of testing. From my test and im not going to talk quants since that is not what i watch. I watch 2 full encodings 625 megs side by side with ms player64 and pick the better picture which has my preferences at heart sharp and no blocks.
To date, latest builds and past, i have found a good avs filter chain and only QPel is giving me the best results. No bframes no nothing except linear curve thats it?
Rui mentioned this i think but had to prove it to myself i guess
Didée
9th December 2002, 09:13
>> Nic's 2911... <<
:stupid:
grrrrrr! Of course I meant Umaniac's ..
Where is the "slapping myself" icon?
Koepi
9th December 2002, 10:55
Yes, sorry pals, you are right: I used different compiler optimization switches with ICL7, resulting in a slightly slower binary (so the "tutorial" of intel somewhat sucks ;) ).
I'm back to my old switches and speed is better again - I should release a new binary soon, when my CVS tree detects that there are files to update (it doesn't yet, even a fresh checkout delivers old files :( ).
Best regards
Koepi
serbersan
9th December 2002, 11:00
I've used lastest koepi build 03 and Qpel(only)... the quality is amazing. No smearing and no little problem, only amazing.
I've used xvid decoder and the lastest ffdshow alpha 13/11/2002 and no problems.
I think Qpel at least using only Qpel no Bframes together is ready to daily use, and it saves space too.
And the quality is really really great.
Thanks for such a great effort.
miha
9th December 2002, 16:04
Hmm well I m using wincvs 1.3 and yesterday there ware 8 updated files today I check it again and there ware 9 updated files
kempodragon
9th December 2002, 20:43
I'd have to agree about Q-pel. I've used it on my last few encodes and have had absolutely no problems with it. I also use chroma since most of capturing is anime, and again no problems. B-frames I don't use, mostly because XVID's quality is amazing as is. I was going to try it on a capture of Akira Kurosawa's "The Hidden Fortress", since this movie is 2hrs and 20 mins. But I accidentally overwrote the capture file(where IS that icon of slapping myself?) and I haven't found anything else that needs it. If the Patriots make it to the Super Bowl, I'll do a capture of that and give XVID a REAL torture test.:devil:
Blight
9th December 2002, 22:07
Or you can start doing 2 movies per cd ;)
Koepi
10th December 2002, 07:18
XviD-09122002-1:
- refdivx's lumi masking finally fixed.
- dynamic hpel/qpel decision - switchable.
- Suxendrol's experimental chroma optimizer (http://www.xvid.org/modules.php?op=modload&name=phpBB2&file=viewtopic&t=815)
Enjoy! :)
Best regards
Koepi
EDIT: I forgot to add that sysKin also fixed the search range for qpel resolution, it's decreasing filesize by quite homeopathic dosis :)
Swede
10th December 2002, 08:34
Yes! The random dots from LumiMasking is definitely gone, at least in my testclips!
Many thnx to everyone involved!
Soft Maniac
10th December 2002, 20:08
it seems that isnt't possible to download the codec from the koepi site!!
Any alternnative link?
Sofus
10th December 2002, 21:19
The random dots from LumiMasking is still there, in my testclips!
Sofus
Bulletproof
10th December 2002, 22:29
It's working great for me, I'm not seeing any dots in lumi masking, however they could be subtle, I havent done thorough testing. From my first test, I am getting better quality at a smaller filesize with this new build.
Soft Maniac
10th December 2002, 23:01
i have been testing xvid for months and i'm seeing a better image quality in cost of speed, but..
Qpel make my movies whith a strange problem!It is more noticeble in faces and boddy parts and it is a kind of noise that i can explain!
A attrached a image so you can see it
Soft Maniac
10th December 2002, 23:02
onother one
MoonWalker
11th December 2002, 12:56
About the random dots with luma masking...
I get them to...But I also get one BIIIIG block at the bottom right corner of the movie using luma masking..anyone got this? It's ffdshow's fault i think. In Vdud there isn't..I have tested the same clip without luma masking and it's ok...
MoonWalker
kilg0r3
11th December 2002, 14:14
@SoftManiac
Sorry, but i cant see your problem in the pictures. The noise that i can see seems to be what i would call ringing artifacts, which could be due to relatively high quatizers.
what are the parameters for your movie?
anybody else?
Blight
11th December 2002, 17:58
Not sure if this was supposed to have been resolved in the latest build, but QPel+BFrames = Messed up video.
And I am using a bit of a low-bitrate (3000kbit/QPel/H263 @ 1280x720), but what is it with this major pixelation on keyframes... (see attached image).
Blight
11th December 2002, 17:59
BTW, Also get this pixelation at 5500kbit, which should be enough for this resolution. I'm using curves as described by the 2-pass tutorial.
The Link
11th December 2002, 18:26
Not sure if this was supposed to have been resolved in the latest build, but QPel+BFrames = Messed up video.
I´m happy to see someone else with this experience. My experience with b-frames + q-pel weren´t good either. My impression is: There are movies for which b-frames are great but q-pel does only harm and vice versa. I didn´t find a movie until now for which both enabled gave good results. But this doesn´t mean much since I didn´t encode many movies in the last time.
Regards,
The Link
mikeson
11th December 2002, 19:01
@Blight:
And when you turn b-frames a/o qpel off, everything is ok? I mean no pixelation?
@The Link:
Strange, I've got very good results while using these features. And I've tried different movies (Matrix,LOTR,Final Fantasy,Pearl Harbor,...).
@Blight & Thr Link:
Can you please post your codec settings and AviSynth script?
The Link
11th December 2002, 19:43
@mikeson:
Dead Man:
LoadPlugin("C:\Programme\Avisynth2\plugins.2.5\MPEG2Dec3.dll")
LoadPlugin("C:\Programme\Avisynth2\plugins.2.5\undot.dll")
LoadPlugin("C:\Programme\Avisynth2\plugins.2.5\convolution3dyv12.dll")
movie=mpeg2source("G:\Dead Man\VIDEO_TS\dvd2avi.d2v")
filtered=movie.LumaFilter().convolution3d(preset="movieHQ").undot()
resized=filtered.crop(3,4,713,571).LanczosResize(640,352).Trim(3000,4000)
return resized
XviD-settings (If I remember right): Just H.263, q-pel, grey-scale and linear scaling for 2 CD (2 OGG-streams+srt subtitles)
Naked Lunch:
LoadPlugin("C:\Programme\Avisynth2\plugins.2.5\MPEG2Dec3.dll")
LoadPlugin("C:\Programme\Avisynth2\plugins.2.5\TomsMoComp.dll")
LoadPlugin("C:\Programme\Avisynth2\plugins.2.5\UnFilter.dll")
LoadPlugin("C:\Programme\Avisynth2\plugins.2.5\DctFilter.dll")
mpeg2source("G:\DVDVolume\VIDEO_TS\dvd2avi.d2v",cpu=4,iPP=true)
TomsMoComp(0,15,0)
crop(17,4,696,570)
LanczosResize(448,336)
LumaFilter()
UnFilter(-10,-10)
DctFilter(1,1,1,1,.7,.4,.4,0)
XviD-settings: Just H.263, b-frames, packed bitstream, DivX5 compatability and linear-scaling using Koepis StatsReader
The resulted movie-file was ~70Mb too big which was why I created an XCD.
Results for both movies:
The quality is pretty good though the source material was not very good. Dad Man was very hard to compress and I´m still not very content with the result.
Regards,
The Link
cjv
11th December 2002, 20:24
@The Link:
Hi,
Just an observation, you might want to change your crop values to make them at the very least mod2. Most filters work better (avoid interpolation), especially in YV12, though I doubt this is the cause of your unsatisfactory encodes.
Also, is packed bitstream ready to be used yet? AFAIK, it really screws with the 2-pass when b-frames are used. (unless it's been fixed..the devs are so fast)
cjv
Bulletproof
11th December 2002, 22:43
From my observation with my own encoding, I have seen that Q-pel is SUPPOSED to add noise to the video which might result in a more pixelated look, the trade off is that it looks alot better than regular low bitrate usage and you get extra compressibility. In my observation, I also think that B-frames will NOT improve quality, it will rather LIGHTLY make quality go down at the benifit of higher compressibility also. If you guys are having problems with Q-pel and B-frames, try just using regular IP frames w/ Chroma motion on and H.263, you might like it better.
The Link
11th December 2002, 23:09
I´m not an expert but as far as I can see I used filters before crop or after resize and for that the width/hight is mod2 (or not?). Perhaps I don´t understand the concept.
In my tests I didn´t have any problems with packed bitstream and b-frames.
Don´t get me wrong: I´m very satisfied with the results I got. I just want to say that I have bad results using b-frames and q-pel at the same time. :)
Regards,
The Link
unplugged
11th December 2002, 23:33
It seems that latest 09-12 compile does not care about QPel checkbox/setting, it gives me same files with or without it (small video test, binary comparison).
I'm not using dynamic hpel/qpel.
Blight
11th December 2002, 23:38
Pixelation is with both QPel/BFrames on and off...
With all recent XVID versions really... Just do frame advance in VDub and see. The pixelation occurs even when the previous image is near identical (which doesn't really matter since it's a self-contained frame, but still...).
script:
LoadPlugin("E:\T\MPEG2DEC2.dll")
LoadPlugin("E:\T\TomsMoComp.dll")
LoadPlugin("E:\T\Convolution3D.dll")
MPEG2Source("jewel.d2v")
Crop(0,0,0,-8)
TomsMoComp(1,15,0)
LanczosResize(1280,720)
Convolution3d(1,4,4,4,4,2.6, 0)
It's as if the bitrate allocator isn't giving enough bitrate to the I-Frames.
BTW, you can probably see this for yourself just by seeking to next key frame in virtualdub (in a bright scene area).
unplugged
12th December 2002, 00:13
Originally posted by Blight
Pixelation is with both QPel/BFrames on and off...
With all recent XVID versions really... Just do frame advance in VDub and see. The pixelation occurs even when the previous image is near identical (which doesn't really matter since it's a self-contained frame, but still...).
I see blocks too, but like your case I see them mostly on flat or quasi flat surfaces (shades), how if quantization becomes hardly aggressive in that areas, more than happened with older xvid compiles.
?
Blight
12th December 2002, 00:42
Just for comparison, I've done a DIVX encode at the same bitrate, and while there is a bit of pixelation, it's nowhere near XVID...
Maybe raising the minimum I-Frame Quant would improve things?
The sad thing is it takes ~24minutes to encode 1 minute of video on a P4/2.53ghz per-pass. I guess the filters are heavy and the resolution high, but it makes for slow progress on checking for best quality.
Koepi
12th December 2002, 00:47
Packed bitstream isn't ready for 2pass yet.
Koepi
mikeson
12th December 2002, 00:48
@Blight:
I've done a DIVX encode at the same bitrate, and while there is a bit of pixelation, it's nowhere near XVID...
DivX4/5 blurs video, therefore it is better compressible and there are (could be) less macroblocks.
mikeson
12th December 2002, 01:22
Just want to share some encoding results from build 09122002.
Using AviSynth 2.5 (07-12), MPEG2Dec3YV12 0.94, script is:
LoadPlugin("D:\Program Files\DivX\AviSynth_filters\yv12\MPEG2dec3YV12.dll")
LoadPlugin("D:\Program Files\DivX\AviSynth_filters\yv12\Convolution3DYV12.dll")
#
#--SOURCE----------------------------------------------------#
mpeg2source("E:\DivX\VOB\Lord of the Rings\Lord of the Rings.d2v",idct=4)
#
#--CROPPING--------------------------------------------------#
Crop(0,66,720,444)
#
#--RESIZING--------------------------------------------------#
LanczosResize(720,304)
#
1st pass:
XviD features: B-frames 3/150/100 + Qpel (no dynamic) + CM
Filesize: 2,153,723,904 bytes
XviD features: B-frames 3/150/100 + Qpel (dynamic) + CM
Filesize: 2,194,092,032 bytes
XviD features: B-frames 3/150/100 + Qpel (dynamic) + CM + lumi masking
Filesize: 2,268,282,880 bytes
Comments:
It is very difficuilt to comment quality, as it is outstanding at these filesizes. But it is interesting that with lumi on, filesize significatly increases. I think it is ok, because codec is trying to achieve better quality in dark scenes.
Any other opinions a/o experiences.
Now trying some C3D filtering... ;)
sam_b
12th December 2002, 11:19
@Blight
Did you run debugview during the second pass? If so, you should be able to identify the average quant used for the offending I-frames. You could then run a very short section of film through xvid on quality or constant quant mode to test. < 1fps. ouch.
By the way, where is your source from? Is that HDTV?
Blight
12th December 2002, 13:06
Sorry, didn't run in debug view...
Source is 1920x1080i (interlaced) 1 minute clip from the Tonight Show. It's probably a candidate for worst possible interlacing. But after TomsMoComp and a Resize down to 1280x720 it looks very fine.
(DeInterlaced at source resolution it looks aweful, nothing seems to deinterlace this clip very nicely).
miha
12th December 2002, 17:20
did the coders take the speed pill again there is so much updates
build please build :devil:
if only insta builds would work :(
kilg0r3
12th December 2002, 21:36
hi
the last film i encoded with xvid XviD-09122002-1 came out way undersized. i was aiming for ca. 1.5gb and 1.2 was what i got.
as far as i remember the firstpass size was about 2.2gb.
xvid settings were:
chroma motion+
qpel +
hpel/qpel +
bframes 3
bframeq 120
bfqoff 100
dx50Comp +
twopass:
if-boost10
if-dis10
if-brred20
cc:
high bitrate scenes 0
low bitrate scenes 0
payback with bias (might it be that this still took away bits from high bitrate scenes, which then were not reallocated because of the above settings??)
cheers
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.