Log in

View Full Version : MeGUI and anamorphic encoding - DAR not getting passed to muxer!


graysky
14th March 2007, 00:02
For the life of me, I can't get MeGUI to pass the signaling aspect ratio to the muxer. I made the script using "Overcrop to achieve mod16" mode as you can see below. I'm totally sure that it's correct in my avs:# Set DAR in encoder to 37 : 20. The following line is for automatic signalling
global MeGUI_darx = 37
global MeGUI_dary = 20
DGDecode_mpeg2source("D:\work\test\clip.d2v")
#deinterlace
crop( 8, 8, -8, -8)

#resize
#denoise


I have reinstalled the app (just nuked the whole MeGUI dirtree and started fresh from the version @ sourceforge, and then allowed the auto update. This fixed it for a while, but (several encodes), but it has reverted to its state of not working again.

Can someone suggest what might be causing it? I have been doing x264 video (HQ-Slower profile) and either ogg or ac3 audio.

nurbs
14th March 2007, 08:43
I seldom use MeGUIs muxing feature, but it shouldn't need to pass aspect ratio to the muxer since it's a property of the stream. If you take a file encoded with that script and use mkvmergegui or yamb to mux it it will come out right without you having to set anything. Same should go for megui. If the original mp4 already isn't displayed in the correct aspect ratio your problem lies either in encoding (which would be surprising because it works for me all the time) or something is wrong with your decoding setup (try VLC).

graysky
14th March 2007, 09:19
Well, if I take the 2nd pass h264 file and mux it manually in mkvmerge defining the AR it is perfect. What gets me is that it used to work without me doing this extra step.

nurbs
14th March 2007, 10:34
Just to be sure: Do you manually enter an AR when you mux with mkvmerge or do you just give it the stream and it sucessfully figures out the correct AR automatically (it does that for me)?

graysky
14th March 2007, 20:07
Yeah, I manually enter the AR when muxing with mkvmerge. Just giving it the stream doesn't do it. The screenshot below is just me loading the video stream in mkvmerge GUI then hitting the "format specific options" (I didn't type in anything at all).

http://img338.imageshack.us/img338/2284/4529ro9.gif

Here is the script:# Set DAR in encoder to 37 : 20. The following line is for automatic signalling
global MeGUI_darx = 37
global MeGUI_dary = 20
DGDecode_mpeg2source("D:\work\W\VTS_01_PGC_01_1.d2v",info=3)
ColorMatrix(hints=true)
crop( 0, 6, 0, -10)

So the 45/19 is simply the overcrop: 16 pixels from the top/bottom it's 720x480 going to 720x464 which when you reduce the fraction comes out to 45/19.

Question is what's going wrong?

nurbs
14th March 2007, 20:49
OK. Let's go one step back.
Does the commandline you encode with (in the log) contain a switch "--sar xxx:yyy"? If it does I don't know how to help you. :confused:
I basically do the same thing you do and I can just mux it with mkvmerge without entering an AR and it plays back correctly.

edit:
Sorry, I read your post wrong.
You are encoding directly to mkv, right? If so could you try to encode a sample to mp4 and then play or mux it?

graysky
14th March 2007, 20:57
Here is the log with no mention of --sar
Looking for job processor for job...
Processor found!
Starting job job1-1 at 4:29:19 AM
Starting preprocessing of job...
Preprocessing finished!
encoder commandline:
--pass 1 --bitrate 1756 --stats "d:\work\V\wf.stats" --bframes 3 --b-pyramid --direct auto --subme 1 --analyse none --vbv-maxrate 25000 --me dia --threads auto --thread-input --progress --no-psnr --no-ssim --output NUL "d:\work\V\wf.avs"
successfully started encoding
Processing ended at 6:16:45 AM
----------------------------------------------------------------------------------------------------------

Log for job job1-1

avis [info]: 720x464 @ 23.98 fps (158038 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE 3DNow!
x264 [warning]: VBV maxrate specified, but no bufsize.
x264 [info]: slice I:1322 Avg QP:15.03 size: 52516
x264 [info]: slice P:58007 Avg QP:17.12 size: 15278
x264 [info]: slice B:98709 Avg QP:18.48 size: 5112
x264 [info]: mb I I16..4: 29.1% 0.0% 70.9%
x264 [info]: mb P I16..4: 22.4% 0.0% 0.0% P16..4: 64.9% 0.0% 0.0% 0.0% 0.0% skip:12.6%
x264 [info]: mb B I16..4: 1.7% 0.0% 0.0% B16..8: 27.7% 0.0% 0.0% direct:32.2% skip:38.4%
x264 [info]: final ratefactor: 18.85
x264 [info]: direct mvs spatial:99.5% temporal:0.5%
x264 [info]: kb/s:1772.3

encoded 158038 frames, 24.56 fps, 1772.33 kb/s

----------------------------------------------------------------------------------------------------------
Starting postprocessing of job...
Postprocessing finished!
Looking for job processor for job...
Processor found!
Starting job job1-2 at 6:16:45 AM
Starting preprocessing of job...
Preprocessing finished!
encoder commandline:
--pass 2 --bitrate 1756 --stats "d:\work\V\wf.stats" --ref 5 --mixed-refs --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse all --8x8dct --vbv-maxrate 25000 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output "d:\work\V\wf.mkv" "d:\work\V\wf.avs"
successfully started encoding
Processing ended at 3:02:50 PM
----------------------------------------------------------------------------------------------------------

Log for job job1-2

avis [info]: 720x464 @ 23.98 fps (158038 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE 3DNow!
x264 [warning]: VBV maxrate specified, but no bufsize.
x264 [info]: slice I:1322 Avg QP:15.03 size: 49255
x264 [info]: slice P:58007 Avg QP:16.37 size: 15330
x264 [info]: slice B:98709 Avg QP:17.70 size: 4989
x264 [info]: mb I I16..4: 31.1% 52.0% 16.9%
x264 [info]: mb P I16..4: 6.0% 10.4% 2.6% P16..4: 39.5% 20.6% 10.2% 0.4% 0.2% skip:10.0%
x264 [info]: mb B I16..4: 0.4% 0.7% 0.2% B16..8: 37.9% 1.8% 4.4% direct: 5.3% skip:49.5%
x264 [info]: 8x8 transform intra:54.4% inter:64.5%
x264 [info]: direct mvs spatial:91.2% temporal:8.8%
x264 [info]: ref P 60.8% 19.3% 9.6% 5.8% 4.5%
x264 [info]: ref B 75.7% 14.9% 5.1% 2.4% 1.9%
x264 [info]: kb/s:1756.0

encoded 158038 frames, 5.01 fps, 1756.07 kb/s
desired video bitrate of this job: 1756 kbit/s - obtained video bitrate (approximate): 1758 kbit/s
----------------------------------------------------------------------------------------------------------
Starting postprocessing of job...
Postprocessing finished!
Looking for job processor for job...
Processor found!
Starting job job1-3 at 3:02:51 PM
Starting preprocessing of job...
Preprocessing finished!
encoder commandline:
-o "d:\work\V\wf-dvd over 3.mkv" -A -S "d:\work\V\wf.mkv" --language 0:eng -a 0 -D -S "d:\work\V\audio.ogg" --no-clusters-in-meta-seek
successfully started encoding
Processing ended at 3:05:19 PM
----------------------------------------------------------------------------------------------------------

Log for job job1-3

mkvmerge v1.7.0 ('What Do You Take Me For') built on Apr 28 2006 17:19:57
'd:\work\V\wf.mkv': Using the Matroska demultiplexer.
'd:\work\V\audio.ogg': Using the OGG/OGM demultiplexer.
'd:\work\V\wf.mkv' track 1: Using the MPEG-4 part 10 (AVC) video output module.
'd:\work\V\audio.ogg' track 0: Using the Vorbis output module.
The file 'd:\work\V\wf-dvd over 3.mkv' has been opened for writing.

The cue entries (the index) are being written...
Muxing took 147 seconds.

graysky
14th March 2007, 20:59
edit:
Sorry, I read your post wrong.
You are encoding directly to mkv, right? If so could you try to encode a sample to mp4 and then play or mux it?

Just missed your edit :)

So you're saying that if I encode to mp4 I should see that --sar in the commandline? I can queue up a test in a few minutes here where I take the same avs and do the video encode to mp4 container with, say aac audio.

In that case, you're saying I should see that --sar in the commandline?

nurbs
14th March 2007, 21:14
You should see the --sar regardless of container you use. I thought maybe it doesn't work right if you use mkv.

The --sar option tells the encoder the correct AR, so without it the problem you have occurs.

graysky
14th March 2007, 21:19
Any idea why mine isn't generating that commandline switch?

nurbs
14th March 2007, 21:26
Beats me.
Maybe a bug in MeGUI?

Anyway try encoding to mp4. If the --sar is in the command line it should work well and you can mux the video and vorbis audio to mkv without having to enter anything manually.

graysky
14th March 2007, 21:29
I'll try it in a while and post back here... anyone else care to weigh in on this? Is nurbs on to something with the lack of the --sar switch in my logs?

nurbs
14th March 2007, 22:08
I did a small test encode to mkv and it works just fine. (--sar is there and it plays back correctly)

Another question: Do you use the one click encoder or auto encode? Maybe the problem lies there.

graysky
14th March 2007, 23:34
Auto encode... what are you doing (also remember that I've been doing auto encode and it worked just fine before...)

Edit: just tried the mp4 encode (well, queued up a series of jobs but didn't encode them) and if I look in the job files, there is no "sar" anywhere in any of them... if you do the same, do you have it in your job files (not your logs, but the pre-work jobs?)

nurbs
15th March 2007, 00:07
The --sar is in the jobs file and in the log.

I use the d2v creator, then use the avs creator and then load the avs, select a video profile and press enque.

IIRC auto encode had always a few problems (or was that one click?). Maybe there was a new bug introduced in one of the new MeGUI versions.

If it works when you do everything manually like I described above you should file a bug report at sourceforge.

graysky
15th March 2007, 00:11
Same here:
1) d2v creator
2) avs creator
3) load avs, select profile then either enqueue or auto encode, both give the same result (no --sar anywhere in the jobs).

Can you post an example avs and an example jobs file?

jeffy
15th March 2007, 09:36
(as requested via PM)

Log
Generating jobs. No desired size.
User doesn't care what the filesize is. Leaving bitrate/qp/crf at the profile's valueGenerating jobs. No desired size.
User doesn't care what the filesize is. Leaving bitrate/qp/crf at the profile's valueLooking for job processor for job...
Processor found!
Starting job job1-1 at 9:28:40
Starting preprocessing of job...
Preprocessing finished!
encoder commandline:

successfully started encoding
Processing ended at 9:28:44
----------------------------------------------------------------------------------------------------------

Log for job job1-1

Channels=2, BitsPerSample=16, SampleRate=48000Hz
C:\Program Files\megui\tools\neroAacEnc.exe -ignorelength -he -br 64000 -if - -of "F:\dcv\cv\C1_VTS_01 T01 3_2ch 448Kbps DELAY 0ms.mp4"*************************************************************
* *
* Nero Digital Audio Reference MPEG-4 & 3GPP Audio Encoder *
* Copyright (C) 2006 Nero AG *
* All Rights Reserved Worldwide *
* *
* Package build date: May 26 2006 *
* *
* See -help for a complete list of available parameters. *
* *
*************************************************************




----------------------------------------------------------------------------------------------------------
Starting postprocessing of job...
Postprocessing finished!
Looking for job processor for job...
Processor found!
Starting job job1-2 at 9:28:44
Starting preprocessing of job...
Preprocessing finished!
encoder commandline:
--bitrate 1000 --ref 3 --bframes 3 --b-pyramid --b-rdo --bime --weightb --subme 6 --trellis 1 --analyse all --8x8dct --vbv-maxrate 25000 --threads 2 --thread-input --sar 629:440 --progress --no-psnr --no-ssim --output "F:\dcv\cv\c1.mkv" "F:\dcv\cv\c1.avs"
successfully started encoding
Processing ended at 9:29:47
----------------------------------------------------------------------------------------------------------

Log for job job1-2

avis [info]: 704x544 @ 25.00 fps (1241 frames)
x264 [info]: using SAR=629/440
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [warning]: VBV maxrate specified, but no bufsize.
x264 [info]: slice I:10 Avg QP:17.40 size: 30757
x264 [info]: slice P:388 Avg QP:18.65 size: 9882
x264 [info]: slice B:843 Avg QP:19.97 size: 2970
x264 [info]: mb I I16..4: 18.4% 71.2% 10.4%
x264 [info]: mb P I16..4: 5.0% 13.8% 1.3% P16..4: 57.6% 10.2% 3.0% 0.1% 0.0% skip: 9.0%
x264 [info]: mb B I16..4: 0.6% 1.1% 0.1% B16..8: 35.1% 1.4% 2.6% direct: 4.3% skip:54.8%
x264 [info]: final ratefactor: 18.80
x264 [info]: 8x8 transform intra:67.9% inter:80.1%
x264 [info]: ref P 54.0% 29.7% 16.2%
x264 [info]: ref B 67.7% 21.5% 10.8%
x264 [info]: kb/s:1071.0

encoded 1241 frames, 19.63 fps, 1071.15 kb/s
desired video bitrate of this job: 1000 kbit/s - obtained video bitrate (approximate): 1073 kbit/s
----------------------------------------------------------------------------------------------------------
Starting postprocessing of job...
Postprocessing finished!
Looking for job processor for job...
Processor found!
Starting job job1-3 at 9:29:47
Starting preprocessing of job...
Preprocessing finished!
encoder commandline:
-o "F:\dcv\cv\c1-muxed.mkv" --aspect-ratio 0:37/20 -A -S "F:\dcv\cv\c1.mkv" -a 1 -D -S "F:\dcv\cv\C1_VTS_01 T01 3_2ch 448Kbps DELAY 0ms.mp4" --no-clusters-in-meta-seek
successfully started encoding
Processing ended at 9:29:48
----------------------------------------------------------------------------------------------------------

Log for job job1-3

mkvmerge v1.7.0 ('What Do You Take Me For') built on Apr 28 2006 17:19:57
'F:\dcv\cv\c1.mkv': Using the Matroska demultiplexer.
'F:\dcv\cv\C1_VTS_01 T01 3_2ch 448Kbps DELAY 0ms.mp4': Using the Quicktime/MP4 demultiplexer.
'F:\dcv\cv\c1.mkv' track 1: Using the MPEG-4 part 10 (AVC) video output module.
Track 1 of 'F:\dcv\cv\c1.mkv': Extracted the aspect ratio information from the MPEG-4 layer 10 (AVC) video data and set the display dimensions to 1006/544.
'F:\dcv\cv\C1_VTS_01 T01 3_2ch 448Kbps DELAY 0ms.mp4' track 1: Using the AAC output module.
Warning: 'F:\dcv\cv\c1.mkv': A track with the ID 0 was requested but not found in the file. The corresponding option will be ignored.
The file 'F:\dcv\cv\c1-muxed.mkv' has been opened for writing.

The cue entries (the index) are being written...
Muxing took 0 seconds.

----------------------------------------------------------------------------------------------------------
Starting postprocessing of job...
Postprocessing finished!


Job1-1.xml
<?xml version="1.0"?>
<Job xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="AudioJob">
<FilesToDelete />
<Input>F:\dcv\cv\C1_VTS_01 T01 3_2ch 448Kbps DELAY 0ms.ac3</Input>
<Output>F:\dcv\cv\C1_VTS_01 T01 3_2ch 448Kbps DELAY 0ms.mp4</Output>
<Name>job1-1</Name>
<Priority>IDLE</Priority>
<Status>WAITING</Status>
<Position>0</Position>
<Start>0001-01-01T00:00:00</Start>
<End>0001-01-01T00:00:00</End>
<FPS>0</FPS>
<NextJobName>job1-2</NextJobName>
<PreviousJobName />
<Commandline />
<CutFile />
<Settings xsi:type="NeroAACSettings">
<ImproveAccuracy>true</ImproveAccuracy>
<ForceDecodingViaDirectShow>false</ForceDecodingViaDirectShow>
<DownmixMode>StereoDownmix</DownmixMode>
<BitrateMode>ABR</BitrateMode>
<Bitrate>64</Bitrate>
<Delay>0</Delay>
<DelayEnabled>false</DelayEnabled>
<AutoGain>true</AutoGain>
<Profile>HE</Profile>
<Quality>0.5</Quality>
<CreateHintTrack>false</CreateHintTrack>
</Settings>
</Job>

Job1-2.xml
<?xml version="1.0"?>
<Job xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="VideoJob">
<FilesToDelete />
<Input>F:\dcv\cv\c1.avs</Input>
<Output>F:\dcv\cv\c1.mkv</Output>
<Name>job1-2</Name>
<Priority>IDLE</Priority>
<Status>WAITING</Status>
<Position>1</Position>
<Start>0001-01-01T00:00:00</Start>
<End>0001-01-01T00:00:00</End>
<FPS>0</FPS>
<NextJobName>job1-3</NextJobName>
<PreviousJobName>job1-1</PreviousJobName>
<Commandline>--bitrate 1000 --ref 3 --bframes 3 --b-pyramid --b-rdo --bime --weightb --subme 6 --trellis 1 --analyse all --8x8dct --vbv-maxrate 25000 --threads 2 --thread-input --sar 37:20 --progress --no-psnr --no-ssim --output "F:\dcv\cv\c1.mkv" "F:\dcv\cv\c1.avs" </Commandline>
<CalculateBitrate>false</CalculateBitrate>
<DARX>37</DARX>
<DARY>20</DARY>
<Settings xsi:type="x264Settings">
<EncodingMode>0</EncodingMode>
<BitrateQuantizer>1000</BitrateQuantizer>
<KeyframeInterval>250</KeyframeInterval>
<NbBframes>3</NbBframes>
<MinQuantizer>10</MinQuantizer>
<MaxQuantizer>51</MaxQuantizer>
<Turbo>false</Turbo>
<V4MV>false</V4MV>
<QPel>false</QPel>
<Trellis>false</Trellis>
<CreditsQuantizer>40</CreditsQuantizer>
<Logfile>F:\dcv\cv\c1.stats</Logfile>
<CustomEncoderOptions />
<FourCC>1</FourCC>
<Zones />
<MaxNumberOfPasses>3</MaxNumberOfPasses>
<NbThreads>2</NbThreads>
<QuantizerCRF>0</QuantizerCRF>
<EncodeInterlaced>false</EncodeInterlaced>
<NoDCTDecimate>false</NoDCTDecimate>
<PSNRCalculation>false</PSNRCalculation>
<noFastPSkip>false</noFastPSkip>
<NoiseReduction>0</NoiseReduction>
<MixedRefs>false</MixedRefs>
<X264Trellis>1</X264Trellis>
<NbRefFrames>3</NbRefFrames>
<AlphaDeblock>0</AlphaDeblock>
<BetaDeblock>0</BetaDeblock>
<SubPelRefinement>5</SubPelRefinement>
<MaxQuantDelta>4</MaxQuantDelta>
<TempQuantBlur>0</TempQuantBlur>
<BframePredictionMode>1</BframePredictionMode>
<VBVBufferSize>-1</VBVBufferSize>
<VBVMaxBitrate>25000</VBVMaxBitrate>
<METype>1</METype>
<MERange>16</MERange>
<MinGOPSize>25</MinGOPSize>
<Profile>2</Profile>
<Level>15</Level>
<IPFactor>1.4</IPFactor>
<PBFactor>1.3</PBFactor>
<ChromaQPOffset>0</ChromaQPOffset>
<VBVInitialBuffer>0.9</VBVInitialBuffer>
<BitrateVariance>1.0</BitrateVariance>
<QuantCompression>0.6</QuantCompression>
<TempComplexityBlur>20</TempComplexityBlur>
<TempQuanBlurCC>0.5</TempQuanBlurCC>
<SCDSensitivity>40</SCDSensitivity>
<BframeBias>0</BframeBias>
<Deblock>true</Deblock>
<Cabac>true</Cabac>
<WeightedBPrediction>true</WeightedBPrediction>
<AdaptiveBFrames>true</AdaptiveBFrames>
<BFramePyramid>true</BFramePyramid>
<BRDO>true</BRDO>
<biME>true</biME>
<ChromaME>true</ChromaME>
<P8x8mv>true</P8x8mv>
<B8x8mv>true</B8x8mv>
<I4x4mv>true</I4x4mv>
<I8x8mv>true</I8x8mv>
<P4x4mv>true</P4x4mv>
<AdaptiveDCT>true</AdaptiveDCT>
<SSIMCalculation>false</SSIMCalculation>
<Lossless>false</Lossless>
<QuantizerMatrix />
<QuantizerMatrixType>0</QuantizerMatrixType>
<DeadZoneInter>21</DeadZoneInter>
<DeadZoneIntra>11</DeadZoneIntra>
</Settings>
<OutputType>0</OutputType>
<DesiredSizeBytes>-1</DesiredSizeBytes>
<NumberOfFrames>1241</NumberOfFrames>
<Framerate>25</Framerate>
</Job>

Job1-3.xml
<?xml version="1.0"?>
<Job xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="MuxJob">
<FilesToDelete>
<string>F:\dcv\cv\c1.mkv</string>
<string>F:\dcv\cv\C1_VTS_01 T01 3_2ch 448Kbps DELAY 0ms.mp4</string>
</FilesToDelete>
<Input>F:\dcv\cv\c1.mkv</Input>
<Output>F:\dcv\cv\c1-muxed.mkv</Output>
<Name>job1-3</Name>
<Priority>IDLE</Priority>
<Status>WAITING</Status>
<Position>2</Position>
<Start>0001-01-01T00:00:00</Start>
<End>0001-01-01T00:00:00</End>
<FPS>0</FPS>
<NextJobName />
<PreviousJobName>job1-2</PreviousJobName>
<Commandline>-o "F:\dcv\cv\c1-muxed.mkv" --aspect-ratio 0:37/20 -A -S "F:\dcv\cv\c1.mkv" -a 1 -D -S "F:\dcv\cv\C1_VTS_01 T01 3_2ch 448Kbps DELAY 0ms.mp4" --no-clusters-in-meta-seek</Commandline>
<ContainerTypeString>MKV</ContainerTypeString>
<Codec>MeGUI.VideoCodec</Codec>
<NbOfBFrames>3</NbOfBFrames>
<NbOfFrames>1241</NbOfFrames>
<Bitrate>0</Bitrate>
<Overhead>4.3</Overhead>
<Settings>
<MuxedInput />
<MuxedOutput>F:\dcv\cv\c1-muxed.mkv</MuxedOutput>
<VideoInput>F:\dcv\cv\c1.mkv</VideoInput>
<AudioStreams>
<SubStream>
<path>F:\dcv\cv\C1_VTS_01 T01 3_2ch 448Kbps DELAY 0ms.mp4</path>
<language />
<name />
<delay>0</delay>
</SubStream>
</AudioStreams>
<SubtitleStreams />
<Framerate>25</Framerate>
<ChapterFile />
<SplitSize>0</SplitSize>
<PARX>37</PARX>
<PARY>20</PARY>
<VideoName />
</Settings>
<MuxType>MKVMERGE</MuxType>
</Job>

nurbs
15th March 2007, 15:59
Sample AVS:
# Set DAR in encoder to 171 : 71. The following line is for automatic signalling
global MeGUI_darx = 171
global MeGUI_dary = 71
DGDecode_mpeg2source("E:\SZ_88\VIDEO_TS\a_test.d2v",info=3)
ColorMatrix(hints=true)
#Not doing anything because the source is progressive
crop( 0, 70, 0, -70)

#resize
#denoise


Sample Job file:
<?xml version="1.0"?>
<Job xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="VideoJob">
<FilesToDelete />
<Input>E:\SZ_88\VIDEO_TS\a_test.avs</Input>
<Output>E:\SZ_88\VIDEO_TS\a_test.mp4</Output>
<Name>job13</Name>
<Priority>IDLE</Priority>
<Status>WAITING</Status>
<Position>12</Position>
<Start>0001-01-01T00:00:00</Start>
<End>0001-01-01T00:00:00</End>
<FPS>0</FPS>
<NextJobName />
<PreviousJobName />
<Commandline>--crf 20 --level 3.1 --keyint 300 --ref 3 --bframes 3 --b-pyramid --weightb --filter -1,-1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 14000 --threads 2 --thread-input --sar 171:71 --progress --no-psnr --no-ssim --output "E:\SZ_88\VIDEO_TS\a_test.mp4" "E:\SZ_88\VIDEO_TS\a_test.avs" </Commandline>
<CalculateBitrate>false</CalculateBitrate>
<DARX>171</DARX>
<DARY>71</DARY>
<Settings xsi:type="x264Settings">
<EncodingMode>9</EncodingMode>
<BitrateQuantizer>20</BitrateQuantizer>
<KeyframeInterval>300</KeyframeInterval>
<NbBframes>3</NbBframes>
<MinQuantizer>10</MinQuantizer>
<MaxQuantizer>51</MaxQuantizer>
<Turbo>false</Turbo>
<V4MV>false</V4MV>
<QPel>false</QPel>
<Trellis>false</Trellis>
<CreditsQuantizer>40</CreditsQuantizer>
<Logfile>E:\SZ_88\VIDEO_TS\a_test.stats</Logfile>
<CustomEncoderOptions />
<FourCC>1</FourCC>
<Zones />
<MaxNumberOfPasses>3</MaxNumberOfPasses>
<NbThreads>2</NbThreads>
<QuantizerCRF>20</QuantizerCRF>
<EncodeInterlaced>false</EncodeInterlaced>
<NoDCTDecimate>false</NoDCTDecimate>
<PSNRCalculation>false</PSNRCalculation>
<noFastPSkip>false</noFastPSkip>
<NoiseReduction>0</NoiseReduction>
<MixedRefs>false</MixedRefs>
<X264Trellis>0</X264Trellis>
<NbRefFrames>3</NbRefFrames>
<AlphaDeblock>-1</AlphaDeblock>
<BetaDeblock>-1</BetaDeblock>
<SubPelRefinement>4</SubPelRefinement>
<MaxQuantDelta>4</MaxQuantDelta>
<TempQuantBlur>0</TempQuantBlur>
<BframePredictionMode>1</BframePredictionMode>
<VBVBufferSize>-1</VBVBufferSize>
<VBVMaxBitrate>14000</VBVMaxBitrate>
<METype>1</METype>
<MERange>16</MERange>
<MinGOPSize>25</MinGOPSize>
<Profile>2</Profile>
<Level>8</Level>
<IPFactor>1.4</IPFactor>
<PBFactor>1.3</PBFactor>
<ChromaQPOffset>0</ChromaQPOffset>
<VBVInitialBuffer>0.9</VBVInitialBuffer>
<BitrateVariance>1.0</BitrateVariance>
<QuantCompression>0.6</QuantCompression>
<TempComplexityBlur>20</TempComplexityBlur>
<TempQuanBlurCC>0.5</TempQuanBlurCC>
<SCDSensitivity>40</SCDSensitivity>
<BframeBias>0</BframeBias>
<Deblock>true</Deblock>
<Cabac>true</Cabac>
<WeightedBPrediction>true</WeightedBPrediction>
<AdaptiveBFrames>true</AdaptiveBFrames>
<BFramePyramid>true</BFramePyramid>
<BRDO>false</BRDO>
<biME>false</biME>
<ChromaME>true</ChromaME>
<P8x8mv>true</P8x8mv>
<B8x8mv>true</B8x8mv>
<I4x4mv>true</I4x4mv>
<I8x8mv>true</I8x8mv>
<P4x4mv>false</P4x4mv>
<AdaptiveDCT>true</AdaptiveDCT>
<SSIMCalculation>false</SSIMCalculation>
<Lossless>false</Lossless>
<QuantizerMatrix />
<QuantizerMatrixType>0</QuantizerMatrixType>
<DeadZoneInter>21</DeadZoneInter>
<DeadZoneIntra>11</DeadZoneIntra>
</Settings>
<OutputType>0</OutputType>
<DesiredSizeBytes>0</DesiredSizeBytes>
<NumberOfFrames>6345</NumberOfFrames>
<Framerate>25</Framerate>
</Job>

Just the commandline:
--crf 20 --level 3.1 --keyint 300 --ref 3 --bframes 3 --b-pyramid --weightb --filter -1,-1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 14000 --threads 2 --thread-input --sar 171:71 --progress --no-psnr --no-ssim --output "E:\SZ_88\VIDEO_TS\a_test.mp4" "E:\SZ_88\VIDEO_TS\a_test.avs"

The source is a PAL (720*576) DVD (Alien).

By the way which version of MeGUI are you using? Mine is 0.2.4.1039

Carpo
15th March 2007, 18:55
sounds simular to something i posted about a while back - all dvds i have done are 16/9 but the encoded video fromm megui (x264) is always 4:3, and i have to tell the muxer to do 16/9

graysky
15th March 2007, 19:20
Thanks for all the posts, all. Looks like there's some problem with my setup. I tried reinstalling MeGUI, this time I'll nuke everything related (dotnet, avisynth) and see if that makes a difference.

@ jeffy: using the 1039 release like you are.

I'm missing the --aspect-ratio stuff in the mux job and and --sar stuff in the encodes!

graysky
15th March 2007, 20:55
Problem solved -- I FINALLY figured it out!

I knew that the problem was things worked okay after a virgin install *if I didn't change the settings* which I always did. Long story short, I begin comparing the jobs files to each other using diff.exe (part of unixutils (http://unxutils.sourceforge.net/) for win32) so I didn't go blind staring at all the text. After many time of making single point changes both in the settings of MeGUI and the video profile, I found the culprit:

http://img162.imageshack.us/img162/5845/badactorkh1.gif

I always unchecked this since I didn't care to see the preview pop-up each time I loaded an avs to queue up. Turns out that if you have this unchecked, you'll have the same problem I do I suspect with the app losing the --sar and the <DARX> and <DARY> info.

Here's the smoking gun via diff. If you're unfamiliar with diff they way it works is you give it the two files you wanna compare and it shows you the differences. Anyway, as you can see my --sar 16:9 line got removed and my DARX and DARY lines also got changed:diff .\profile\job1-2.xml .\preview_after\job1-2.xml

17c17
< <Commandline>--pass 2 --bitrate 2779 --stats "E:\work\e9\9.s
tats" --ref 4 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --b-rdo --bim
e --weightb --direct auto --subme 6 --trellis 1 --analyse all --8x8dct --vbv-ma
xrate 25000 --me umh --thread-input --sar 16:9 --progress --no-psnr --no-ssim --
output "E:\work\e9\9.mkv" "E:\work\e9\9.avs" </C
ommandline>
---
> <Commandline>--pass 2 --bitrate 2779 --stats "E:\work\e9\9.s
tats" --ref 4 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --b-rdo --bim
e --weightb --direct auto --subme 6 --trellis 1 --analyse all --8x8dct --vbv-ma
xrate 25000 --me umh --thread-input --progress --no-psnr --no-ssim --output "E:\
work\e9\9.mkv" "E:\work\e9\9.avs" </Commandline>

19,20c19,20
< <DARX>16</DARX>
< <DARY>9</DARY>
---
> <DARX>-1</DARX>
> <DARY>-1</DARY>


The good news is that it's totally reversible, in other words, re-enable that option and it works fine again. Note, that you have to load an avs after you change it even if you have one in your "AviSynth Script" blank.

Someone please try it and see if it reproduces on your machine. I have updated my bugreport @ soruceforge.

Thanks to everyone who contributed here. It was really nurbs who uncovered that I was missing the --sar commandline that lead me to try these diff experiments. Also thanks to jeffy who posted his jobs files that also got me thinking about this.