Log in

View Full Version : Undersized Video


entropy
23rd June 2003, 01:56
I'm having a problem with undersized video. I'm encoding Samurai X: Trust. Here's my AVS script:


LoadPlugin("C:\Decomb.dll")
LoadPlugin("C:\MPEG2DEC.dll")
mpeg2source("C:\Samurai_X_-_Trust_1\D2V.d2v")
telecide(post=false)
decimate(cycle=5)
BilinearResize(640,480,0,1)
TemporalSmoother(3)


Here are my filters used:

http://www.l33thosting.com/dayzero/doom9/56163/0001.jpg

Here are my settings for XviD:

http://www.l33thosting.com/dayzero/doom9/56163/0002.jpg

http://www.l33thosting.com/dayzero/doom9/56163/0003.jpg

http://www.l33thosting.com/dayzero/doom9/56163/0004.jpg

http://www.l33thosting.com/dayzero/doom9/56163/0005.jpg

http://www.l33thosting.com/dayzero/doom9/56163/0006.jpg

Any help means a lot to me, thanks!

Foxer
23rd June 2003, 02:00
This undersizing problem should be corrected merely by changing the min p-frame quantizer from 6 to 2.

entropy
23rd June 2003, 03:23
Originally posted by Foxer
This undersizing problem should be corrected merely by changing the min p-frame quantizer from 6 to 2.

Is that ALL? I mean the video was undersized dramatically, it was about 250 MB when it should have been 650.

visigotik
23rd June 2003, 03:31
Same thing happened to me while encoding one of my dvd's for my girlfriend. The movie is called "the others" (with nicole kidman). I used GKnot and set it up for a 1 cd rip, the compressibility test scored something like 150% and I ended up with an 400MB avi instead of 700MB, but not a problem, i simply used the wasted space for an ac3 stream instead of the mp3 stream.
Anyway, when a movie compresses really well and gets undersized that's because of codec saturation, so you could try something like increasing the resolution to make up for the wasted space.
I don't know if there is a way for the codec to actually detect the saturation and automatically increase the bitrate while encoding but that would be cool.

BoNz1
23rd June 2003, 03:37
Well, that certainly will help but the undersized problem is not the only problem with your encode. You seem to be resizing the movie twice, once in avisynth and then in virtualdub and then deinterlacing too in virtualdub. I know we really aren't supposed to talk too much about things other than xvid too much but this should be addressed. If I were you I would get rid of all the filters in virtualdub and use virtualdubmod and set it to fast recompress. The subtitles should be able to be done in avisynth so you don't need to do that in vdub either. And it will help to bring up the file size if you are using a sharper resize like it looks like you are trying to do in vdub, probably get rid of the bilinear resize and do something like LanczosResize(640,480) and you may consider eliminating the denoiser unless it really needs it and using a higher bitrate matrix. You probably have a lot of reading to do, their is lots of info on this kind of stuff in the guides and in the forum, use the search it is your friend.
EDIT: And some of your xivd settings are sort of strange too, imho it is fine if you want to limit your quants but you may want your min i-frame to be 1 since it will be fine in your case. Also maybe increase the max bitrate to 10000kbps too, and consider not using an i-frame boost since I don't think it does what you think it is going to do, ;) mouse over it and you will see.

Gazza
23rd June 2003, 04:00
Something I have noticed is that particarly dark movies can compress very well and the normal tricks (e.g. increasing resolution) may not help. Also and in the case of dark movies, adding in extra filtering (undot, unfilter, convolution3d, etc) can also decrease your final file size without adding to the final objective.

Cheers

entropy
23rd June 2003, 04:14
Originally posted by BoNz1
Well, that certainly will help but the undersized problem is not the only problem with your encode. You seem to be resizing the movie twice, once in avisynth and then in virtualdub and then deinterlacing too in virtualdub. I know we really aren't supposed to talk too much about things other than xvid too much but this should be addressed. If I were you I would get rid of all the filters in virtualdub and use virtualdubmod and set it to fast recompress. The subtitles should be able to be done in avisynth so you don't need to do that in vdub either. And it will help to bring up the file size if you are using a sharper resize like it looks like you are trying to do in vdub, probably get rid of the bilinear resize and do something like LanczosResize(640,480) and you may consider eliminating the denoiser unless it really needs it and using a higher bitrate matrix. You probably have a lot of reading to do, their is lots of info on this kind of stuff in the guides and in the forum, use the search it is your friend.
EDIT: And some of your xivd settings are sort of strange too, imho it is fine if you want to limit your quants but you may want your min i-frame to be 1 since it will be fine in your case. Also maybe increase the max bitrate to 10000kbps too, and consider not using an i-frame boost since I don't think it does what you think it is going to do, ;) mouse over it and you will see.

I'm a n00b and what you said didn't make any sense to me ~_~. Be more clear. Thanks for your help though.

Originally posted by Gazza
Something I have noticed is that particarly dark movies can compress very well and the normal tricks (e.g. increasing resolution) may not help. Also and in the case of dark movies, adding in extra filtering (undot, unfilter, convolution3d, etc) can also decrease your final file size without adding to the final objective.

Cheers

It's a very dark movie, heh.

entropy
23rd June 2003, 04:19
Also, is there like a general settings for high quality encodes for your I and P frame min and max quantizier? I'm not sure what they do to tell you the truth.

BoNz1
23rd June 2003, 05:17
Originally posted by entropy
I'm a n00b and what you said didn't make any sense to me ~_~. Be more clear. Thanks for your help though.


Which is why you need to use the search and read the guides, which I don't think you have done otherwise you wouldn't be having such problems with your settings. Then when you ask questions like this you will understand the answers you get. No big deal and I think that I was actually quite clear. If I were to explain completely it would be very very long and I don't have the time to write this and I don't think others would have the patience.

entropy
23rd June 2003, 05:42
Originally posted by BoNz1
Which is why you need to use the search and read the guides, which I don't think you have done otherwise you wouldn't be having such problems with your settings. Then when you ask questions like this you will understand the answers you get. No big deal and I think that I was actually quite clear. If I were to explain completely it would be very very long and I don't have the time to write this and I don't think others would have the patience.

Look, telling me to read more guides and search more doens't help me. You just waste my time and yours, so don't reply if you can't || don't wan't to help.

Koepi
23rd June 2003, 06:56
Entropy,

warning! Be nice, we are all trying to help you.

If you refuse to read the guides and the FAQ you violate our forum rules - and you show great disrespect with that behaviour, too.

Don't expect anyone to paste the FAQs and guides here, the links are easily found at top of this forum (named like "Read this!").

Koepi

BoNz1
23rd June 2003, 07:03
*Sigh* I didn't mean to be a jerk or anything, but really the question has been asked so many times about undersized video, all you had to do was use the search. I think it is even in the FAQ. If you are insulted by my comments to use the search I apologize since I don't like going around making enemies. I only wanted to help since the way you are encoding wasn't as good as it could be, ie your xvid settings and avisynth scripting. This could be contributing to the undersize problem. Understand that I was only trying to help. However, I'm a little insulted by this:

Look, telling me to read more guides and search more doens't help me. You just waste my time and yours, so don't reply if you can't || don't wan't to help.

Since it is clear you don't want my help, I won't give it. It certainly is your choice and you are welcome to it. And I will not reply again since this is your request.

Shasa
26th June 2003, 11:01
x entropy

why don't you start reading this

http://forum.doom9.org/showthread.php?s=&threadid=53136

it's really handy and intuitive :-)

Selur
27th June 2003, 07:12
personally I killed all my "undersized problems" *gig* by choosing a high quality quantizer matix. (modified version of the professional matrix floating around in the forum)
So my advice would be:

try another quant matrix

Cu Selur