PDA

View Full Version : MeGUI Error Encoding Movie


DigitalDivide
3rd February 2006, 01:39
I got the following error encoding the following. Not sure why it bombed after the second pass.

Next job job1-1 is a video job. encoder commandline:
"C:\Program Files\x264\x264.exe" --pass 1 --bitrate 149343 --stats "D:\Projects\FlightPlan\flightplan.stats" --bframes 3 --b-pyramid --filter -1,-1 --subme 1 --analyse none --me dia --threads 2 --sar 32:27 --progress --no-psnr --output NUL "D:\Projects\FlightPlan\flightplan.avs"
successfully set up video encoder and callbacks for job job1-1
----------------------------------------------------------------------------------------------------------

Log for job job1-1

avis [info]: 720x368 @ 23.98 fps (141086 frames)
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [info]: slice I:937 Avg QP:10.01 size: 51549
x264 [info]: slice P:55081 Avg QP:10.00 size: 33304
x264 [info]: slice B:85068 Avg QP:11.69 size: 15742
x264 [info]: mb I I16..4: 28.0% 0.0% 72.0%
x264 [info]: mb P I16..4: 26.4% 0.0% 0.0% P16..4: 69.2% 0.0% 0.0% 0.0% 0.0% skip: 4.4%
x264 [info]: mb B I16..4: 4.1% 0.0% 0.0% B16..8: 70.5% 0.0% 0.0% direct:18.1% skip: 7.3%
x264 [info]: final ratefactor: -19.05
x264 [info]: kb/s:4380.1

Actual bitrate after encoding without container overhead: 4381.15

----------------------------------------------------------------------------------------------------------
job job1-1 has been processed. This job is linked to the next job: job1-2
Next job job1-2 is a video job. encoder commandline:
"C:\Program Files\x264\x264.exe" --pass 2 --bitrate 149343 --stats "D:\Projects\FlightPlan\flightplan.stats" --ref 10 --mixed-refs --bframes 3 --b-pyramid --filter -1,-1 --subme 6 --b-rdo --weightb --trellis 1 --analyse all --8x8dct --me umh --threads 2 --sar 32:27 --progress --no-psnr --output "D:\Projects\FlightPlan\flightplan.mkv" "D:\Projects\FlightPlan\flightplan.avs"
successfully set up video encoder and callbacks for job job1-2
----------------------------------------------------------------------------------------------------------

Log for job job1-2

avis [info]: 720x368 @ 23.98 fps (141086 frames)
x264 [info]: using SAR=32/27
x264 [error]: Error: 2pass curve failed to converge
x264 [error]: target: 149343.00 kbit/s, expected: 4762.54 kbit/s, avg QP: 10.0002
x264 [error]: try reducing target bitrate or reducing qp_min (currently 10)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [info]: slice I:937 Avg QP:10.00 size: 50103
x264 [info]: slice P:55081 Avg QP:10.00 size: 30066
x264 [info]: slice B:85068 Avg QP:11.69 size: 13826
x264 [info]: mb I I16..4: 35.6% 40.3% 24.1%
x264 [info]: mb P I16..4: 7.4% 7.4% 5.1% P16..4: 33.4% 21.1% 18.9% 0.7% 0.4% skip: 5.6%
x264 [info]: mb B I16..4: 0.9% 1.6% 1.0% B16..8: 51.4% 4.8% 7.9% direct: 4.1% skip:28.2%
x264 [info]: 8x8 transform intra:39.2% inter:37.8%
x264 [info]: ref P 57.6% 15.6% 8.3% 4.6% 3.6% 3.0% 2.5% 1.7% 1.5% 1.5%
x264 [info]: ref B 76.2% 12.7% 4.0% 2.0% 1.4% 1.1% 0.9% 0.6% 0.6% 0.6%
x264 [info]: kb/s:3914.2

Actual bitrate after encoding without container overhead: 3915.23

----------------------------------------------------------------------------------------------------------
The current job contains errors. Skipping chained jobs

DigitalDivide
3rd February 2006, 03:34
To the above I frequently see the error Error:2pass curve failed to converge.
What does this mean? Is this because I am encoding a small sample of a movie?



Log for job job2-2

avis [info]: 704x352 @ 23.98 fps (1501 frames)
x264 [info]: using SAR=32/27
x264 [error]: Error: 2pass curve failed to converge
x264 [error]: target: 227786.00 kbit/s, expected: 4964.64 kbit/s, avg QP: 10.0001
x264 [error]: try reducing target bitrate or reducing qp_min (currently 10)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2

JarrettH
3rd February 2006, 04:44
found lots of results when i pasted your error 2pass curve failed to converge into google

hello fellow torontonian!!:D

Doom9
3rd February 2006, 09:46
x264 [error]: target: 149343.00 kbit/s, expected: 4762.54 kbit/s, avg QP: 10.0002Read that line out loud about 10 times, and think about what you're telling the world. 149343 kbit/s = 149.343 Mbit/s.. I wonder what device can handle 149 MEGABITS PER SECOND. Keep in mind DVDs use 9.8 MBit tops, HDTV uses 20 mbit tops, Blu-ray can go up to 40 mbit/s but there's nothing that goes up to a HUNDRED FOURTY NINE... Even when going lossless, you're not going to get anywhere near that bitrate.

DigitalDivide
3rd February 2006, 18:50
Hmm not sure what happened there. I just tried to hit a target file size of 1.7GB...I must have done something wrong...I'll have to reencode...

Thanks

Vytenis
26th October 2006, 07:51
Hello gurus.
The same error here, but bitrate is way lower. Any ideas what might be wrong? Where does that "expected: 82.82 kbit/s" comes from?
2nd pass log:
Log for job job1-2

avis [info]: 640x352 @ 25.00 fps (200537 frames)
x264 [warning]: VBV maxrate specified, but no bufsize.
x264 [warning]: Error: 2pass curve failed to converge
x264 [warning]: target: 589.00 kbit/s, expected: 82.82 kbit/s, avg QP: 40.2152
x264 [warning]: internal error
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
...
...
...
x264 [info]: SSIM Mean Y:0.9148533
x264 [info]: kb/s:82.8

encoded 200537 frames, 13.07 fps, 83.84 kb/s

check
26th October 2006, 10:17
Can you please post the commandline you used? It looks like you're trying to encode to a VERY low bitrate, which is hitting the bottom of x264s allowed quality scale. You can increase the max quantizer in options if you really want to make x264 encode at that bitrate.

Vytenis
26th October 2006, 10:24
Here it comes:
Starting job job1-2 at 20:56:03
encoder commandline:
--pass 2 --bitrate 589 --stats "D:\BITTER_MOON\VIDEO_TS\bm.stats" --ref 5 --mixed-refs --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -2,-1 --subme 6 --trellis 1 --analyse all --8x8dct --vbv-maxrate 25000 --me umh --threads 2 --thread-input --zones 0,100268,q=40/100268,200536,q=40 --progress --no-psnr --output "D:\BITTER_MOON\VIDEO_TS\bm.mp4" "D:\BITTER_MOON\VIDEO_TS\bm.avs"
successfully started encoding
Processing ended at 01:12:19
----------------------------------------------------------------------------------------------------------

Log for job job1-2

avis [info]: 640x352 @ 25.00 fps (200537 frames)
x264 [warning]: VBV maxrate specified, but no bufsize.
x264 [warning]: Error: 2pass curve failed to converge
x264 [warning]: target: 589.00 kbit/s, expected: 82.82 kbit/s, avg QP: 40.2152
x264 [warning]: internal error
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
mp4 [info]: initial delay 2 (scale 25)
...
...
Now doing it again. 2nd pass started. Made smaller frame size, framerate still about 590 kbps. No errors so far.

nurbs
26th October 2006, 10:46
I'm not an expert, but your problem is that you tell the codec to encode with 589 kbps while at the same time you tell it to encode 200k frames, which I presume is the whole movie, at q40. x264 is complaining that with q40 it only gets 83 kbps and not the 589 you tell it to get.

check
26th October 2006, 11:23
Are you specifying the same zones for the first pass? If not, that's the reason.

Vytenis
26th October 2006, 17:46
@check; @nurbs
Actually, I did not change anything that was by default there and did everythig according guide in mewiki. But who knows, may be I altered something mistakenly. I will check it as I come back to home PC. I will also read carefully mentioned options decriptions.
Thank you

check
27th October 2006, 10:15
Hmm, well the --zones 0,100268,q=40/100268,200536,q=40 has just randomly appeared then. Actually, that might be due to you pressing the 'credits' button in the preview window - did you do this?

Vytenis
27th October 2006, 11:41
Yes, I looked at it. Might be I pressed/marked something in zones window. Usually I finish in "Cancel" after playing. Might be not this time.
I got encoded movie second time. It is fine now.
Thank you