digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Do divx settings affect mpeg output? (http://www.digitalfaq.com/archives/encode/5524-divx-settings-affect.html)

zes 09-11-2003 09:44 AM

do divx settings affect mpeg output?
 
should i leave post-processing options for divx disabled or has it no effect on the final mpeg output?
i ve read somewhere that the latest divx scripts 'spray' noise to reduce blocks. so what if i enable deblocking and deringing (divx 5.1) and then 'spray' even more noise for mpeg?
just a thought :)

Dialhot 09-11-2003 11:41 AM

Let every postprocessing off. Scripts are designed to deal with all artifacts, and if you removed them with the codec feature, the filters used in the scripts will be too heavy. Your picture will probably become too blurry.

Deringing for instance blurs the picture a lot !

zes 09-11-2003 12:29 PM

merci ;)
 
so it does have an effect :?
explains why my mpegs were kinda blurry
thanks!

J-Wo 09-12-2003 08:50 AM

where does one change these divx settings?

vmesquita 09-12-2003 10:34 AM

I think post-processing settings are not used unless you use DirectShowSource instead of AVISource (but DirectShowSource gives me problems). Right now I am doing some tests exchanging undot for BilndPP() on the version 2 of the script and getting nice results. But I haven't tried version 1 script yet. BlindPP is a postprocessing filter included in MPEG2DEC package.

[]'s
VMesquita

Dialhot 09-12-2003 10:36 AM

vmesquita we are talking about the postprocessing done by the codec itself ! So they are used when you decode the video with avisource.
And the proof is that CQ found by CQMatic raise when you set the post process settings on.

Boulder 09-13-2003 06:55 AM

And encoding gets a lot slower too. Try encoding a small DivX clip with zero postprocessing and then at full PP in the codec settings. You'll see the difference :wink:

vmesquita 09-13-2003 01:55 PM

Dialhot and boulder,

This is very interesting! I'll do some tests about it, I always thought post-processing was not used when decoding but I never tested... So maybe I can replace undot by leaving Post-Processing on. :D

[]'s
VMesquita

Boulder 09-13-2003 02:08 PM

I wouldn't do that. Post-processing in the decompression process means removing blocks whereas UnDot deals with general noise. Besides, UnDot doesn't slow down the encoding process nearly as much as the PP settings.

Dialhot 09-13-2003 02:19 PM

What is amusing is that XVID decoder has the deblocking/dering features since a long time a noone ever ask a question about it.

The same : the "film effect" of Divx decoder that is present since version 5 is the equivalent of Blockbuster(noise), and again noone ever thought about this.

But that is a good thing : do not rely on anything that is in the codec else you will need a script for each CODEC TYPE avi : xvid, divx 5.05, divx 3.11, divx 4.01...

Note : Didn't you ever notice that mpeg2dec3 has a deblocking/deringing feature also ?

Boulder 09-13-2003 02:38 PM

Quote:

Originally Posted by Dialhot
Note : Didn't you ever notice that mpeg2dec3 has a deblocking/deringing feature also ?

I actually use it sometimes, deblocking luma (cpu=2,moderate_h=30,moderate_v=50). I've used it with some very poor quality DVDs and had good results. I think that those moderate_h and v values were suggested a long time ago when MarcFD added Nic's deblocking features to MPEG2DEC3. They don't soften much and get rid of the worst visible blocks on the DVD.

vmesquita 09-13-2003 10:57 PM

@Dialhot
DIvX "film effect" is not the same thing as blockbuster. It adds noise to the hole picture (not only the DCT areas), making compression very hard (I tried with DirectShowsource).
About the codec problem: I agree, but most people is doing only DivX AND XVid and it DivX 5 can handle DivX3 content. It looks like a good way to improve the source. BlindPP() produces good results but emulates a quantisizer
"BlindPP(clip, int "quant", int "cpu", str "cpu2", bool "iPP", int "moderate_h", int "moderate_v")

To Deblock and Dering on any kind of DCT-encoded source.
Of course, less accurate than decoder intergrated PP, but still very efficient
need YV12 input."

What means that integrated PP would be even better. Real PP works by knowing the quantisizer and softening the blocks and rings. Maybe PP+blockbuster noise would be a great team...

@boulder
Good point about undot.

vmesquita 09-13-2003 11:37 PM

update:
Just did a 1000 frames xvid clip with and without post-processing using avisource and got exactly 8.125.412 bytes in both... Wired... I encoded in CCE Q40.

[]'s
VMesquita

Boulder 09-14-2003 03:05 AM

Quote:

Originally Posted by vmesquita
update:
Just did a 1000 frames xvid clip with and without post-processing using avisource and got exactly 8.125.412 bytes in both... Wired... I encoded in CCE Q40.

[]'s
VMesquita

There's two different places where you can set the postprocessing. One is in the codec settings in the screen you use when you're encoding something to XviD, the other's available when you play XviD material in some media player. I'm not sure which one is used with AVISource.

Dialhot 09-14-2003 05:50 AM

Quote:

Originally Posted by vmesquita
@Dialhot
DIvX "film effect" is not the same thing as blockbuster. It adds noise to the hole picture (not only the DCT areas),

But what do you think Blockbuster does ? Looking for DCT area before spaying its noise ? Of course not. The purpose of blockbuster is to help reducing the creation of DCT : they aren't supposed to be there when blockbuster starts its work !
Quote:

making compression very hard (I tried with DirectShowsource).
The problem can be here. Or simply the ramdomizer algorythm used in blockbuster is different from the one used in the codec. But the goal of both effects is the same.

Quote:

About the codec problem: I agree, but most people is doing only DivX AND XVid and it DivX 5 can handle DivX3 content.
You know that, I know that, a lot of people don't. They install codec via pack (nimda, ace...) that contain and install Divx 3.11, Divx 4.01 and Divx5.05 together (I really don't know why). But we can for sure give them hints about this.
Quote:

It looks like a good way to improve the source.
That's a way I tried weeks ago and decided to drop. Too blurry, whatever you do. The solution would be to have a control on the strength of each filter the codec applies. But we don't. Tell me if you find a way.
Quote:

BlindPP() produces good results but emulates a quantisizer
"BlindPP(clip, int "quant", int "cpu", str "cpu2", bool "iPP", int "moderate_h", int "moderate_v")
I will look at this.

zes 09-14-2003 06:30 AM

i'm thinking off letting the codec's PP do it's job and be done with it. no filters in avisynth. gonna do a few encodes, see what it's worth.

zes 09-14-2003 07:36 AM

nm
 
i did 2 quick encodes to see if there's a clear difference .
first one: divx max deblocking, no deringing, and a little bit film effect, no script
second : divx PP disabled, and dialhot script.

ok i must admit i was doubting this whole scripting bit for a sec, but i'm back on track now :lol: though they both had practically the same bitrate, dialhot's script does a nicer job on the source than divx' own PP options. more artifacts were seen with divx PP, dialhot's was crisper.
but for the deblocking part: both were blocky as hell (used a low quality divx) in the same parts.

seems that there's no real solution to this yet :cry:

Dialhot 09-14-2003 08:47 AM

Re: nm
 
Quote:

Originally Posted by zes
but for the deblocking part: both were blocky as hell (used a low quality divx) in the same parts.

seems that there's no real solution to this yet :cry:

Did you use the script we both blockbuster lines or only the fist one ? Because I removed the second line for my own encoding because I found one was enought, but perhaps on your very bad divx, you should try to put it again.

zes 09-15-2003 01:22 AM

this one
 
i've been using this script for a while now

Code:

#Post-Process

Blockbuster(method="noise",detail_min=1,detail_max=8,variance=0.3,seed=5823)
Deen()

GripCrop(528, 576, overscan=2, source_anamorphic=false)
GripSize(resizer="LanczosResize")

Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.5,seed=5623)

GripBorders()

i see you've been working on a new script, so i'm gonna give that a try now :)

vmesquita 09-15-2003 03:54 PM

@Dialhot

How do I enable post-processing during decoding in XVid? I was trying to do that changing XVid settings during playback, but I guess I was only changing DirectShow Decoder properties... Maybe changing in other place I can get it to work. I really would like to compare this to blindpp()...

[]'s
VMesquita

Dialhot 09-15-2003 05:44 PM

Quote:

Originally Posted by vmesquita
How do I enable post-processing during decoding in XVid? I was trying to do that changing XVid settings during playback, but I guess I was only changing DirectShow Decoder properties...
[]'s
VMesquita

Grrrrr.... Vmesquita, Xvid codec is a CODEC. A codec can't be a directshow filter at the same time. They aren't called in the same order by Windows !

If you do not see the modification is probably because they can't be changed on the fly. You have to restart the player to take in account the new settings.

vmesquita 09-15-2003 05:49 PM

Quote:

Originally Posted by Dialhot
Grrrrr.... Vmesquita, Xvid codec is a CODEC. A codec can't be a directshow filter at the same time. They aren't called in the same order by Windows !

If you do not see the modification is probably because they can't be changed on the fly. You have to restart the player to take in account the new settings.

Yes, like I said, I now realized that. But the question remains: how do I change XVid codec post-processing settings? How exactly you accomplish that? :?

[]'s
VMesquita

Dialhot 09-15-2003 05:58 PM

Didn't you find them in the configuration box of Xvid ?
That is in the middle of the box, in a area called : post-processing :-)

Or are you saying you do not know how to access to this box ?

vmesquita 09-15-2003 06:27 PM

Quote:

Originally Posted by Dialhot
Didn't you find them in the configuration box of Xvid ?
That is in the middle of the box, in a area called : post-processing

Or are you saying you do not know how to access to this box ?

Yes! I have no idea about how to access this box. I know how to change this settings when playing a movie, but of course, this way I am changing only the directshow filter options. Do I have to run any specific file? What would be?

PS: I also tried changing in VirtualDub but at least my XVid has no "Post-processing" box. What XVid version are you using, maybe the problem lies here... I am using the latest Nic's build.

[]'s
VMesquita

Dialhot 09-15-2003 06:53 PM

Quote:

Originally Posted by vmesquita
I know how to change this settings when playing a movie, but of course, this way I am changing only the directshow filter options.

NO !
There is NO directshow filter options in Xvid configuration box because Xvid is a CODEC ! I can't be more clear that this !

The title of this box is very clear : XVID MPEG4 VIDEO CODEC
In this box you have 4 parts :
- a slider for brightness
- 6 box for post processing (horiz deblock Y - Vert Deblock Y - Horiz Deblock C - Vert Deblock C - Dering Y - Dering C)
- 2 boxes to enter threshold of the PP (default 20 and 40)
- an area where you can force the codec to output in YV12
(how did you force it if you can't open this box ?)

I can't post a screenshot of the configuration box but I can send it to you by mail. This way we will see if you are talking about the same thing I do.

Quote:

Do I have to run any specific file? What would be?
I access this box while playing via zoomplayer or externally grant to the soft DXman (www.analogx.com)

Quote:

What XVid version are you using, maybe the problem lies here... I am using the latest Nic's build.
I do not have the slightest idea. I use the one included in ACE codec pack but nowhere is indicated which version it is.

Dialhot 09-15-2003 06:58 PM

Quote:

Originally Posted by Boulder
There's two different places where you can set the postprocessing. One is in the codec settings in the screen you use when you're encoding something to XviD, the other's available when you play XviD material in some media player. I'm not sure which one is used with AVISource.

By definition : what is included in the encoder part of a codec can't be used by avisynth that call the decoder part of the soft ;-)

As Vmesquita thought, the problem is probably in Xvid version (there are more than one version unfortunally).

vmesquita 09-15-2003 07:05 PM

Dialhot,

What you described is exactly what I did, and it made no effect in CCE. In changed properties while playing in Media Player, closed the player and reloaded to see if the post-processing options stand. And they did. The box is exactly with the options you described.
So I encoded with all of them enabled and with all of them disabled and got exacly the same output in bytes, using the same Q factor.
I know it makes no sense that CCE and TMpgEnc gives different results, but I am only reporting the result of my test. I plan on doing it again with TmpgEnc just for checking. :?

[]'s
VMesquita

Dialhot 09-15-2003 07:13 PM

Quote:

Originally Posted by vmesquita
I know it makes no sense that CCE and TMpgEnc gives different results, but I am only reporting the result of my test. I plan on doing it again with TmpgEnc just for checking. :?

So its what you said some days ago. But like you I really don't understand how CCE works to obtain same result in both cases :?:

vmesquita 09-15-2003 07:15 PM

Dialhot,

Sorry but I think you're mistaken. I was just walking aroung XVid Nick's builds and found this:
http://nic.dnsalias.com/xvid.html

So as you see, you can download only the DirectShow Decoder, instead of the full codec. If that is possible and you would still be able to play XVid movies using the directshow decoder, then I guess your theory is wrong... :wink: It's like FFDShow which is a directshow filter and can be used to playback DivX and XVid content, without installing both codecs. But only with FFDshow installed (no DivX/Xvid) you can't use AVISource, altrough you can play content.

[]'s
VMesquita

Dialhot 09-15-2003 07:25 PM

I know what is a direct show filter, and I know about ffdshow (because i use it to test my avisynth script on the fly :-)).
I just didn't know there was a directshow filter existing of xvid ;-)

But I also know what is on my disc and I can tell you : it is the CODEC version of xvid. For instance, the field to force the output colorspace do have an effect into avisynth. If I change it I can see a difference in the hints given by the avs command "Info()". Can you check this point on your PC ?

By the way : do you have zoomplayer ? If yes you can see with it that codec and filters aren't called in the same place by windows : codec is called in first place, before the splitter. filters (like ffdshow or directvobsub) are called after the splitter and you can have more than one.

Note: How the hell do you manage to read Xvid video in avisynth if you do not have codec installed ? Avisource does not use directshow filters :!:


All times are GMT -5. The time now is 01:51 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.