View Full Version : What settings do I need to accomplish this?


RedDwarf1
27th August 2007, 01:55
I have been trying to encode a video using MeGUI using x264 in a mkv container. I wanted to get a 2 hour Movie onto 1 CD and the bitrate that it is giving it is 750kbps with a resolution of 704x384. I tried encoding it and overall the quality was good but a few short sections of sky (2 to 3 seconds) with a fast Moving object in the frame came out very blocky. I have tried all the Profiles but none have changed this. I have increased the bitrate up to 4000 and still there was some blocks and patterning on the sky but it was a lot better. Here is the command line in the bottom of the MeGUI window, it is the one with the highest settings. Is it possible to encode Sky and make it look good or is it just not possible using x264?

What settings should I use to get it to work out right?

--pass 2 --bitrate 4000 --stats ".stats" --bframes 2 --b-pyramid --bime --weightb --direct auto --trellis 1 --analyse all --8x8dct --vbv-maxrate 25000 --threads auto --thread-input --cqm "jvt" --progress --no-psnr --no-ssim --output "H:\Encode\Movie VOBs\Sky_section_test_default_modified2.mkv" "H:\Encode\Movie VOBs\Sky_section_test.avs"

TheRyuu
27th August 2007, 07:31
I have been trying to encode a video using MeGUI using x264 in a mkv container. I wanted to get a 2 hour Movie onto 1 CD and the bitrate that it is giving it is 750kbps with a resolution of 704x384. I tried encoding it and overall the quality was good but a few short sections of sky (2 to 3 seconds) with a fast Moving object in the frame came out very blocky. I have tried all the Profiles but none have changed this. I have increased the bitrate up to 4000 and still there was some blocks and patterning on the sky but it was a lot better. Here is the command line in the bottom of the MeGUI window, it is the one with the highest settings. Is it possible to encode Sky and make it look good or is it just not possible using x264?

What settings should I use to get it to work out right?

--pass 2 --bitrate 4000 --stats ".stats" --bframes 2 --b-pyramid --bime --weightb --direct auto --trellis 1 --analyse all --8x8dct --vbv-maxrate 25000 --threads auto --thread-input --cqm "jvt" --progress --no-psnr --no-ssim --output "H:\Encode\Movie VOBs\Sky_section_test_default_modified2.mkv" "H:\Encode\Movie VOBs\Sky_section_test.avs"

Use a two pass encoding. With two pass with bitrate at 1000 it should come out looking quite good actually at that resolution.

Increase bframes to 3, change the cqm to none or default...

Or how about you just use the "HQ-Slowest" profile. I think that has different settings then what your using.

Like this:
--pass 2 --bitrate 1000 --stats ".stats" --ref 10 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -2,-1 --subme 6 --trellis 2 --analyse all --8x8dct --vbv-maxrate 25000 --me umh --threads auto --thread-input --progress --no-dct-decimate --no-psnr --no-ssim --output

Or check this post by buzzqw (much more informative):
http://forum.doom9.org/showthread.php?p=1035332#post1035332

Atak_Snajpera
27th August 2007, 12:08
Problem will be solved if you add --aq-strength 0.5 --aq-sensitivity 5 to your command line

@wizboy11
--ref 10 ,--no-fast-pskip ,--trellis 2 is a waste of time and won't help in blocky sky

check
27th August 2007, 12:36
why are you using the jvt matrix?
Other than that, the two most important options that will help are --no-fast-pskip and --aq-strength (only in patched builds).

--ref 10 ,--no-fast-pskip ,--trellis 2 is a waste of time and won't help in blocky skyApart from being completely wrong about no fast pskip (see here (http://mewiki.project357.com/wiki/MeGUI:Video_configuration_dialog/X264_Configuration#Quant_Options)), the fact remains that any option that increases compression efficiency will mean the average qp reduces, and quality therefore raises.

Atak_Snajpera
27th August 2007, 12:52
I don't see differences with or without no fast pskip. AQ patch works alot better. I doubt that --ref 10 + trellis 2 will do miracles in non-anime fotage. It's up to you If you like to waste time and energy...

EDIT:

"C:\Users\Dawidos\Documents\Delphi_Projects\RipBot264\tools\x264\[RipBot264]x264.exe" "c:\RipBot264temp\job1\job1.avs" --crf 18 --level 5.1 --sar 1:1 --filter 0,0 --ref 10 --mixed-refs --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --subme 6 --trellis 2 --analyse all --8x8dct --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --no-fast-pskip --output "c:\RipBot264temp\video.264"

SIZE:24MB

http://img251.imageshack.us/img251/4594/crf18nofastpskipref10trao2.th.png (http://img251.imageshack.us/my.php?image=crf18nofastpskipref10trao2.png)

vs


"C:\Users\Dawidos\Documents\Delphi_Projects\RipBot264\tools\x264\[RipBot264]x264.exe" "c:\RipBot264temp\job1\job1.avs" --crf 22 --level 5.1 --sar 1:1 --filter 0,0 --ref 5 --mixed-refs --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse all --8x8dct --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --aq-strength 0.5 --aq-sensitivity 5 --output "c:\RipBot264temp\video.264"

SIZE: 13MB

http://img369.imageshack.us/img369/2577/crf22fastpskipref5trellem8.th.png (http://img369.imageshack.us/my.php?image=crf22fastpskipref5trellem8.png)

bisdelf
27th August 2007, 12:58
uhm isn't 704 width for 1cd setting too high?

if you try with 688 or 672 you can increase the bitrate and maybe blocks will decrease

Sharktooth
27th August 2007, 14:33
bitrate will be the same... the bpp will be higher.

RedDwarf1
28th August 2007, 19:36
Thanks everyone for the input.

uhm isn't 704 width for 1cd setting too high?

if you try with 688 or 672 you can increase the bitrate and maybe blocks will decrease

The bitrate seems irrelevant. I have tried many of the settings in MeGUI and increased the bitrate to 4000 like you see above but none of the setting seem to have any affect upon it. The jvt matrix was just one that I tried once. I do not use it as a rule, but I was willing to try any of the available settings to stop the blocks. But none worked. :(

I cannot find a way to enter the options you specify Atak_Snajpera, MeGUI shows the command line but does not seem to allow it to be altered, except through the GUI settings.

patched builds? I have it on auto update and it has updated everything but I still do not see those options unless they are enabled by a differently named setting.

How do I find them, enable them or enter them on the command line?

Atak_Snajpera
28th August 2007, 20:50
Maybe It's time to check my tool...
If you use Lv4.1 profile or 5.1 everything should be fine

Sharktooth
29th August 2007, 14:05
megui has a custom command line options textbox... it is in the zones tab.
add those settings there.
the x264 build that comes with megui already have the AQ patch.