Log in

View Full Version : Improving quality of compressed small sized video


owais
21st May 2009, 13:20
I hav encode a movie in MeGUI of "1 hr 12 mins" in 400mb size using x264 and have done more before :)
so i just want to ask i can do anything to the movie so that it can reduced some pixelated pixels cause somescene where there is full motion like action or jumping,
sry abt i cant explain nicely

source is kind of Blue-ray 720p rip of about 2.1 gigabyte is it bad ? resolution is 1280 x 720
output i hav many cause i m testing which one is best

but right know i m talking bout 3d nimation movie the "dragon hunters" :p

thankyou

Forteen88
21st May 2009, 13:44
I hav encode a movie in megui of "1 hr 12 mins" in 400mb size using x264 and have done more before :)
so i just want to ask i can do anything to the movie so that it can reduced some pixelated pixels cause somescene where there is full motion like action or jumping,
sry abt i cant explain nicely

thankyouYou mean remove/decrease grain?

Audionut
21st May 2009, 13:50
More bitrate

owais
21st May 2009, 14:05
You mean remove/decrease grain?

What affect will i got if i remove or decrease grain
lol i didnt even know abt it sry abt beieng noob

dat720
21st May 2009, 14:10
As audionut said you need a higher bitrate...
Every single video is different, you might achieve 400mb on one video but won't be able to on another.
400mb would be easy on a video with very little to no action, action scenes require more bits as the picture is changing more often and is generally more complex, you also have to take into account dark and bright scenes, bright with lots of colour will require more bits.... oh and don't forget the aspect ratio, 4:3 videos again require more bits than wide screen videos....
What it comes down to is there are a huge amount of factors that dictate the final size of a encode.

Is there any reason for requiring such high compression?

Audionut
21st May 2009, 14:11
What affect will i got if i remove or decrease grain

Less bitrate required to encode = higher quality.

edit: or smaller file for same quality
or more quality for same file size.

And can you post your command line!

dat720
21st May 2009, 14:12
Less bitrate required to encode = higher quality.

His problem is not caused by grain... but a unrealistic bitrate target for the type of content in the video.

Audionut
21st May 2009, 14:14
His problem is not caused by grain... but a unrealistic bitrate target for the type of content in the video.

I replied to his question.

And he has not mentioned grain and or posted a sample. So for all we know he could have a very encodable source that could benefit from grain removal.

edit: and he only mentions some pixelated scenes. So again without a sample, the source could be completely motionless except for a few frames of high motion causing the problems.

dat720
21st May 2009, 14:21
Fair enough
400mb is still unrealistic for a 1 hour 12min source... presuming its a DVD source anyway.

owais
21st May 2009, 14:22
Less bitrate required to encode = higher quality.

edit: or smaller file for same quality
or more quality for same file size.

And can you post your command line!

cabac=1 / ref=8 / deblock=1:-2:-1 / analyse=0x3:0x133 / me=umh / subme=6 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / bframes=16 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=720 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00 i think u was asking for this

i hav edited my first post too

Audionut
21st May 2009, 14:26
Try defaults for deblock 0:0
and subme=9 /psy_rd=0.4:0.0 / bframes=4 / b_adapt=2 / aq 0.4

what frontend/gui are you using?
edit: and what resolution are you encoding at.

owais
21st May 2009, 14:38
[QUOTE=what frontend/gui are you using?
edit: and what resolution are you encoding at.[/QUOTE]

i m using MeGUI

i m doing in 720 x 400 and 800 x 448 but at the end i will select one

both seems similar too me

Audionut
21st May 2009, 14:51
Download this file.

http://rapidshare.com/files/235593488/RemoveGrain.rar

Extract and place into your avisynth plugin folder.
Generally c:\program files\avisynth2.5\plugins

In your avisynth script place this line at the bottom

removegrain()

So you end up with something like
directshowsource("yoursource.***")
bilinearresize(720,400)
removegrain()

Then try encoding with these settings,

http://img36.imageshack.us/img36/673/mainz.png
http://img36.imageshack.us/img36/2072/44957351.png
http://img30.imageshack.us/img30/4967/advanced.png

Audionut
21st May 2009, 14:53
And please make sure you have updated megui to use the latest version of x264.

owais
21st May 2009, 14:58
Download this file.

In your avisynth script place this line at the bottom

removegrain()



audionut what should i add in "removegrain()" between brackets or nothin

and and i hav LanczosResize in my script shall i change it to bilinearresize or not

Shall i enable p4x4 flag?

Audionut
21st May 2009, 14:59
Nothing. Defaults are very good for your purpose.

owais
21st May 2009, 15:05
shall i enable p4x4 flag? in macroblock option

Audionut
21st May 2009, 15:10
and and i hav LanczosResize in my script shall i change it to bilinearresize or not

Lanczos is a sharp resizer, and considering how much you are try to compress the source, I would recommend trying bilinearresize.

You can quickly judge the visual difference of the different resizer by loading the script in megui and looking at the picture in the video preview.

ie: load the script with lanczos resizer and view. Then edit your script with bilinear resizer and load the script and view.

Shall i enable p4x4 flag?

Not worth it. To little gain for the loss of speed it causes. Of course if encoding speed is not an issue then enable it.

owais
21st May 2009, 15:19
:( MeGUI is giving me error when i wrote removegrain in script and load it in megui

Audionut
21st May 2009, 15:23
Can you be a little more descriptive!!

edit: and post your avisynth script too please.

owais
21st May 2009, 15:33
Can you be a little more descriptive!!

edit: and post your avisynth script too please.

i m getting error that megui clo9ses and windows error dont send opens


# Set DAR in encoder to 16 : 9. The following line is for automatic signalling
global MeGUI_darx = 16
global MeGUI_dary = 9
DirectShowSource("E:\Dragon.Hunters.2008.720p.BDRip\Dragon.Hunters.2008.720p.BDRip.mkv", fps=25.000, audio=false, convertfps=true)
#deinterlace
#crop
bilinearresize(800,448)
#denoise
removegrain()

__film = last
__t0 = __film.trim(62116, 65418)
__t0