Log in

View Full Version : MeGUI: undersized output (XviD)


masterfgee
22nd September 2009, 14:25
hi

i have a weird problem with megui. i used megui 0.2.6 and updated everything except the first three ones (data core libs) so my xvid_encraw was always uptodate and megui stayed 0.2.6. everything worked fine until i recently reinstalled windows. i installed the new megui 0.3.1 and now a lot of movies become undersized although the xvid_encraw is the same. it must be some megui problem but i am totally clueless :confused:

this is what the log says
---[NoImage] Video Bitrate Desired: 1495 kbit/s
---[NoImage] Video Bitrate Obtained (approximate): 1381 kbit/s

the sticky about the undersized/oversized files didnt help me because it says it has nothing to do with the encoding front end but since i used the same xvid_encraw version it must be some problem with megui.

any ideas?
cheers

p.s.: i use min quantizer 1

Inspector.Gadget
22nd September 2009, 15:00
Not a MeGUI problem. XviD is saturated. Use a higher resolution, fewer b-frames, etc.

masterfgee
22nd September 2009, 18:02
and how do you explain that it works with megui 0.2.6? today i tested it with the same profile, xvid_encraw and same movie. 0.3.1 gets about ~1380kb/s and this is from the 0.2.6 log:

desired video bitrate of this job: 1495 kbit/s - obtained video bitrate (approximate): 1499 kbit/s

it cant be a problem of the xvid_encraw :/

Inspector.Gadget
22nd September 2009, 18:17
Post the full text of both AVS Scripts and both MeGUI logs. Chances are one of the profiles changed (either due to MeGUI updates or your own config) and as a result one uses more complex options.

masterfgee
23rd September 2009, 13:09
ok here the logs :)

megui 0.2.6.1045:

Log for job job1

Job commandline: "F:\megui\tools\xvid_encraw\xvid_encraw.exe" -i "D:\VTS_01_1.avs" -pass1 "D:\VTS_01_1.stats" -bitrate 1495 -kboost 100 -overhead 0 -max_key_interval 250 -nopacked -vhqmode 4 -qtype 1 -closed_gop -imin 1 -pmin 1 -bvhq -bmin 1 -par 1:1 -threads 2 -zw 0 1 -zq 161666 25
xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003


Tot: enctime(ms) =2576684.00, length(bytes) = 2008944158
Avg: enctime(ms) = 15.30, fps = 65.36, length(bytes) = 11929
I frames: 1706 frames, size = 52309/ 89239531, quants = 2 / 2.36 / 25
P frames: 63642 frames, size = 23819/ 1515932132, quants = 2 / 2.82 / 25
B frames: 102844 frames, size = 3926/ 403770847, quants = 4 / 5.12 / 31
N frames: 206 frames, size = 8/ 1648
Trying to retrieve width and height from input header
xvid [info]: Avisynth detected
xvid [info]: Input colorspace is YV12
xvid [info]: Input is 688 x 384, 25.000fps (25/1), starting from frame 0
xvid [info]: Number of frames to encode: 168398, Bitrate = 1495kbps
xvid [info]: xvidcore build version: xvid-1.2.1
xvid [info]: Bitstream version: 1.2.1
xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 3DNOW 3DNOWEXT TSC
xvid [info]: Detected cpus = 2, threads requested = 1, threads in use = 1
xvid [info]: Threaded input reading active

------------------------------------------------------

Log for job job2

Job commandline: "F:\megui\tools\xvid_encraw\xvid_encraw.exe" -i "D:\VTS_01_1.avs" -pass2 "D:\VTS_01_1.stats" -bitrate 1495 -kboost 100 -overhead 0 -max_key_interval 250 -nopacked -vhqmode 4 -qtype 1 -closed_gop -imin 1 -pmin 1 -bvhq -bmin 1 -par 1:1 -threads 2 -zw 0 1 -zq 161666 25 -avi "D:\VTS_01_1.avi"
xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003


Tot: enctime(ms) =9053695.00, length(bytes) = 1258182934
Avg: enctime(ms) = 53.76, fps = 18.60, length(bytes) = 7471
I frames: 1706 frames, size = 69580/ 118704923, quants = 1 / 1.87 / 25
P frames: 63642 frames, size = 13158/ 837419356, quants = 1 / 3.69 / 25
B frames: 102832 frames, size = 2937/ 302056911, quants = 2 / 5.65 / 31
N frames: 218 frames, size = 8/ 1744
Trying to retrieve width and height from input header
xvid [info]: Avisynth detected
xvid [info]: Input colorspace is YV12
xvid [info]: Input is 688 x 384, 25.000fps (25/1), starting from frame 0
xvid [info]: Number of frames to encode: 168398, Bitrate = 1495kbps
xvid [info]: xvidcore build version: xvid-1.2.1
xvid [info]: Bitstream version: 1.2.1
xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 3DNOW 3DNOWEXT TSC
xvid [info]: Detected cpus = 2, threads requested = 1, threads in use = 1
xvid [info]: Threaded input reading active
desired video bitrate of this job: 1495 kbit/s - obtained video bitrate (approximate): 1499 kbit/s


megui 0.3.1.1056

[Information] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.1.1056
--[NoImage] OS : Windows XP Professional x86 SP3 (5.1.196608.2600)
--[NoImage] Latest .Net Framework installed : 2.0 (2.0.50727.1)
-[Information] Hardware
--[NoImage] CPU : Dual Core AMD Opteron(tm) Processor 180
-[Information] Log for job3 (video, VTS_01_1.avs -> )
--[Information] [22.09.2009 15:38:06] Started handling job
--[Information] [22.09.2009 15:38:06] Preprocessing
--[NoImage] Job commandline: "C:\Programme\megui\tools\xvid_encraw\xvid_encraw.exe" -i "D:\VTS_01_1.avs" -pass1 "D:\VTS_01_1.stats" -bitrate 1495 -kboost 100 -overhead 0 -max_key_interval 250 -nopacked -vhqmode 4 -qtype 1 -closed_gop -imin 1 -pmin 1 -bvhq -bmin 1 -par 1:1 -threads 2
--[Information] [22.09.2009 15:38:07] Encoding started
--[NoImage] Standard output stream
---[NoImage] xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
---[NoImage] Tot: enctime(ms) =3004456.00, length(bytes) = 2091778637
---[NoImage] Avg: enctime(ms) = 17.84, fps = 56.05, length(bytes) = 12421
---[NoImage] I frames: 1706 frames, size = 52750/ 89992678, quants = 2 / 2.00 / 2
---[NoImage] P frames: 63610 frames, size = 24536/ 1560743145, quants = 2 / 2.00 / 2
---[NoImage] B frames: 102781 frames, size = 4291/ 441040406, quants = 4 / 4.00 / 4
---[NoImage] N frames: 301 frames, size = 8/ 2408
--[NoImage] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 688 x 384, 25.000fps (25/1), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 168398, Bitrate = 1495kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.1
---[NoImage] xvid [info]: Bitstream version: 1.2.1
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 3DNOW 3DNOWEXT TSC
---[NoImage] xvid [info]: Detected cpus = 2, threads requested = 1, threads in use = 1
---[NoImage] xvid [info]: Threaded input reading active
--[Information] [22.09.2009 16:28:15] Postprocessing
---[Information] Deleting intermediate files
--[Information] [22.09.2009 16:28:16] Job completed
-[Information] Log for job4 (video, VTS_01_1.avs -> VTS_01_1.avi)
--[Information] [22.09.2009 16:28:16] Started handling job
--[Information] [22.09.2009 16:28:16] Preprocessing
--[NoImage] Job commandline: "C:\Programme\megui\tools\xvid_encraw\xvid_encraw.exe" -i "D:\VTS_01_1.avs" -pass2 "D:\VTS_01_1.stats" -bitrate 1495 -kboost 100 -overhead 0 -max_key_interval 250 -nopacked -vhqmode 4 -qtype 1 -closed_gop -imin 1 -pmin 1 -bvhq -bmin 1 -par 1:1 -threads 2 -zw 0 1 -zq 161666 25 -avi "D:\VTS_01_1.avi"
--[Information] [22.09.2009 16:28:16] Encoding started
--[NoImage] Standard output stream
---[NoImage] xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
---[NoImage] Tot: enctime(ms) =8982827.00, length(bytes) = 1177064477
---[NoImage] Avg: enctime(ms) = 53.34, fps = 18.75, length(bytes) = 6989
---[NoImage] I frames: 1706 frames, size = 51804/ 88377947, quants = 2 / 2.36 / 25
---[NoImage] P frames: 63610 frames, size = 12524/ 796702309, quants = 2 / 3.77 / 25
---[NoImage] B frames: 102868 frames, size = 2838/ 291982509, quants = 4 / 5.71 / 31
---[NoImage] N frames: 214 frames, size = 8/ 1712
--[NoImage] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 688 x 384, 25.000fps (25/1), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 168398, Bitrate = 1495kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.1
---[NoImage] xvid [info]: Bitstream version: 1.2.1
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 3DNOW 3DNOWEXT TSC
---[NoImage] xvid [info]: Detected cpus = 2, threads requested = 1, threads in use = 1
---[NoImage] xvid [info]: Threaded input reading active
--[Information] Final statistics
---[NoImage] Video Bitrate Desired: 1495 kbit/s
---[NoImage] Video Bitrate Obtained (approximate): 1402 kbit/s
--[Information] [22.09.2009 18:58:56] Postprocessing
---[Information] Deleting intermediate files
----[Information] [22.09.2009 18:58:56] Successfully deleted D:\VTS_01_1.stats
--[Information] [22.09.2009 18:58:56] Job completed


both times with xvid_encraw 2008-12-04 (1.2.1+vaq) and same avs script
i cant find any different encoding settings...


but it seems that megui 0.3.1 doesnt use any Q1 frames:


---[NoImage] I frames: 1706 frames, size = 51804/ 88377947, quants = 2 / 2.36 / 25
---[NoImage] P frames: 63610 frames, size = 12524/ 796702309, quants = 2 / 3.77 / 25
---[NoImage] B frames: 102868 frames, size = 2838/ 291982509, quants = 4 / 5.71 / 31

pelle412
24th September 2009, 20:27
In your "megui 0.3.1.1056" log, the first pass encoding parameters don't include your zone settings, so the stats file from the first pass assumes lower quantizers for the end of the video.

masterfgee
25th September 2009, 08:58
hm thats a good point. i did some testing and megui 0.3.1.1056 never includes the zone parameters in the 1st pass. maybe a bug?

deng17
30th September 2009, 16:05
In your "megui 0.3.1.1056" log, the first pass encoding parameters don't include your zone settings, so the stats file from the first pass assumes lower quantizers for the end of the video.

I have the same problem. So where will you configure that?

pelle412
30th September 2009, 19:53
I have the same problem. So where will you configure that?

I haven't really used zones in MeGUI but I did a test by putting zone configurations in the custom command line field and MeGUI used it in both passes.

deng17
1st October 2009, 03:38
Sorry for being such a noob. I already found the custom command line field but I don't know how I can utilize this for the 1st pass.

This was generated by Megui.

program -i "input" -pass2 ".stats" -bitrate 886 -kboost 100 -overhead 0 -vhqmode 4 -notrellis -noclosed_gop -threads 1 -o "output"

I don't know how would I utilize that to correct the sizes. I'm using the automated 2pass, btw.

krosswindz
11th October 2009, 03:55
I have the same problem as well, I havent used MeGUI in a while, after upgrading I am having issues using xvid_encraw. I never seen N-Frames (NVOPS I believe) in my encodes. I dont have packed bit stream set and not sure if this is the issue. Any help on this is appreciated.

encode log:

[Information] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.1.1056
--[NoImage] OS : Windows XP Professional x86 SP3 (5.1.196608.2600)
--[NoImage] Latest .Net Framework installed : 2.0 (2.0.50727.0)
-[Information] Hardware
--[NoImage] CPU : AMD Athlon(tm) 64 Processor 3200+
-[Information] Log for job1 (video, test.avs -> )
--[Information] [10/7/2009 10:49:37 PM] Started handling job
--[Information] [10/7/2009 10:49:37 PM] Preprocessing
--[NoImage] Job commandline: "C:\Ripping Tools\megui\tools\xvid_encraw\xvid_encraw.exe" -i "F:\xvid wroking\test\test.avs" -pass1 "F:\xvid wroking\test\test.stats" -bitrate 1155 -kboost 100 -overhead 0 -turbo -nopacked -vhqmode 4 -qtype 1 -closed_gop -bvhq -par 1:1 -threads 2
--[Information] [10/7/2009 10:49:38 PM] Encoding started
--[NoImage] Standard output stream
---[NoImage] xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
---[NoImage] Tot: enctime(ms) =5693659.00, length(bytes) = 1099078702
---[NoImage] Avg: enctime(ms) = 29.38, fps = 34.03, length(bytes) = 5672
---[NoImage] I frames: 2400 frames, size = 16379/ 39309725, quants = 2 / 2.00 / 2
---[NoImage] P frames: 76202 frames, size = 10597/ 807559113, quants = 2 / 2.00 / 2
---[NoImage] B frames: 114949 frames, size = 2194/ 252208114, quants = 4 / 4.00 / 4
---[NoImage] N frames: 219 frames, size = 7/ 1750
--[NoImage] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 672 x 288, 25.000fps (25/1), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 193770, Bitrate = 1155kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.2
---[NoImage] xvid [info]: Bitstream version: 1.2.2
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 3DNOW 3DNOWEXT TSC
---[NoImage] xvid [info]: Detected cpus = 1, threads requested = 1, threads in use = 1
---[NoImage] xvid [info]: Threaded input reading active
--[Information] [10/8/2009 12:24:46 AM] Postprocessing
--[Information] [10/8/2009 12:24:46 AM] Job completed
-[Information] Log for job2 (video, test.avs -> test.avi)
--[Information] [10/8/2009 12:24:48 AM] Started handling job
--[Information] [10/8/2009 12:24:48 AM] Preprocessing
--[NoImage] Job commandline: "C:\Ripping Tools\megui\tools\xvid_encraw\xvid_encraw.exe" -i "F:\xvid wroking\test\test.avs" -pass2 "F:\xvid wroking\test\test.stats" -bitrate 1155 -kboost 100 -overhead 0 -nopacked -vhqmode 4 -qtype 1 -closed_gop -bvhq -par 1:1 -threads 2 -avi "F:\xvid wroking\test\test.avi"
--[Information] [10/8/2009 12:24:50 AM] Encoding started
--[NoImage] Standard output stream
---[NoImage] xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
---[NoImage] Tot: enctime(ms) =13208627.00, length(bytes) = 985640031
---[NoImage] Avg: enctime(ms) = 68.17, fps = 14.67, length(bytes) = 5086
---[NoImage] I frames: 2400 frames, size = 16125/ 38700627, quants = 2 / 2.00 / 2
---[NoImage] P frames: 76201 frames, size = 9383/ 715051954, quants = 2 / 2.00 / 2
---[NoImage] B frames: 114750 frames, size = 2020/ 231884102, quants = 4 / 4.00 / 4
---[NoImage] N frames: 419 frames, size = 7/ 3348
--[NoImage] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 672 x 288, 25.000fps (25/1), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 193770, Bitrate = 1155kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.2
---[NoImage] xvid [info]: Bitstream version: 1.2.2
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 3DNOW 3DNOWEXT TSC
---[NoImage] xvid [info]: Detected cpus = 1, threads requested = 1, threads in use = 1
---[NoImage] xvid [info]: Threaded input reading active
--[Information] Final statistics
---[NoImage] Video Bitrate Desired: 1155 kbit/s
---[NoImage] Video Bitrate Obtained (approximate): 1022 kbit/s
--[Information] [10/8/2009 4:05:57 AM] Postprocessing
--[Information] [10/8/2009 4:05:57 AM] Job completed

Inspector.Gadget
11th October 2009, 05:28
Oddly enough, I'm getting oversized output on an animated source that should be ridiculously easy to compress (1 frame in 5-10 is motion), especially using the MeGUI "2 Pass HQ" profile.

Here's the log: http://pastebin.ca/1611595

I suspect, given the number of error reports around here, that there's a problem with xvid_encraw...I'll run some further tests tomorrow and see if there are particularly problematic/OK sources.

b66pak
11th October 2009, 18:44
here is your answer:

http://forum.doom9.org/showthread.php?t=24584
_

BigDid
12th October 2009, 21:41
here is your answer:
http://forum.doom9.org/showthread.php?t=24584
_
Yep,

Very detailed, 4years ago :rolleyes:

One more, and new, info related to Xvid and undersized file: VAQ for Xvid introduced by DarkShikari last year.
Gives 10 to 15% less size (or more) depending on source for no to nearly no depreciation.

Discussion thread: http://forum.doom9.org/showthread.php?t=135093

Did

b66pak
14th October 2009, 20:15
@BigDid if you read carefully you will see that is not outdated at all!!!

http://forum.doom9.org/showthread.php?p=630411#post630411
_

BigDid
14th October 2009, 22:08
@BigDid if you read care fully you will see that is not outdated at all!!!
...
Hi,

Never said it was. :confused:
My meaning was: nearly all infos related to under/oversize with ASP and Xvid were detailed 4 years ago. :)

There are time periods/cycles when questionning comes again and again like here:
http://forum.doom9.org/showthread.php?t=150126

Did

P_72
15th October 2009, 21:30
Very nice, BigDid.

It's a pleasure getting help from the same person that later will point at you to illustrate how people keeps asking for help...