Log in

View Full Version : 2nd pass problem with x264


Pages : 1 [2]

Al79
13th November 2006, 03:32
well, i try what hanti say, and work, now i have a little artifacts but only for 2 seconds, so i have to improve my settings, thanks ppl^^

P.D. I know, i have a bad engrish XD

P.D2.Strange thing, another pc with the same specs, still crash mmmm.

uk10
13th November 2006, 12:44
can you please verify if the same problem happens with the x264.nl build of x264?

yes, the same thing happens when i use x264.nl build of x264 and 2 threads

pasta03
15th November 2006, 07:22
hey!
To 2 pass in h264 I wrote this scrypt:
@ECHO OFF
CLS
REM ====================================================================
REM APPLICATIONS PATHS:
REM =========================
SET x264="g:\_\APPLICATIONS\x264-CLI_r600\x264.exe"
SET avc2avi="g:\_\APPLICATIONS\avc2avi_mod-20061112\avc2avi.exe"
SET avs2avi="g:\_\APPLICATIONS\avs2avi 1.39\avs2avi.exe"
REM ====================================================================
REM PARAMETERS APPLICATIONS:
REM =========================
REM avc2avi:
REM ---------
SET fps=23.976
REM
REM x264:
REM ---------
SET bitrate=1200
REM ====================================================================
REM FILES INPUT:
REM =========================
SET input.avs="g:\_\ts-h264.xvid (1)\a.avs"
REM ====================================================================
REM FILES OUTPUT:
REM =========================
REM x264:
REM ---------
SET .status="g:\_\h264.stats"
SET output.h264="g:\_\ts-h264.xvid (1)\2pass.264"
SET output.avi="g:\_\ts-h264.xvid (1)\0.13_1626.avi"
REM ====================================================================


%x264% --pass 1 --bitrate %bitrate% --stats %.status% --bframes 3 --b-pyramid --direct auto --deblock -2,-1 --subme 1 --partitions none --vbv-maxrate 25000 --me dia --thread-input --progress --no-psnr --output NUL %input.avs%

%x264% --pass 2 --bitrate %bitrate% --stats %.status% --ref 16 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --deblock -2,-1 --subme 7 --trellis 2 --partitions all --8x8dct --vbv-maxrate 25000 --me umh --thread-input --progress --no-psnr --output %output.h264% %input.avs%

%avc2avi% -f %fps% -i %output.h264% -o %output.avi%

Mangekyou_S
20th November 2006, 09:12
uk10, have you a core2duo CPU?

Is there a problem encoding with more than one thread with x264 on Core 2 Duo? Because I have an E6400 (see sig) and I've been getting this maximum bitrate error ever since I got the proc.

Sharktooth
20th November 2006, 15:35
seems it's more frequent in core2duo chips... but it maybe just a casual coincidence.

vanger
28th November 2006, 07:25
I have the similar problem on my AMD Athlon X2 3800+ (Dual Core)
x264 [warning]: VBV maxrate specified, but no buffsize.
x264 [error]: requested bitrate is too low. estimated minimum is -2147483648 kbps
x264 [error]: x264_encoder_open failed

Sharktooth
28th November 2006, 13:26
can you post the avisynth script?

vanger
28th November 2006, 19:13
The source AVI is 720x576x25 (HuffYUV YV12).

DirectShowSource("D:\temp\11.avi").trim(0,11999)
LeakKernelDeInt(order=0,sharp=true)
crop( 8, 4, -8, -4)
Lanczos4Resize(576,464)


The MeGUI log:

Starting job job1-1 at 20:35:34
encoder commandline:
--pass 1 --bitrate 1022 --stats "D:\temp\megu.stats" --bframes 3 --b-pyramid --direct auto --filter -2,-1 --subme 1 --analyse none --vbv-maxrate 25000 --me dia --threads 2 --thread-input --progress --no-psnr --output NUL "D:\temp\megu.avs"
successfully started encoding
Processing ended at 20:40:21
----------------------------------------------------------------------------------------------------------

Log for job job1-1

avis [info]: 576x464 @ 25.00 fps (12000 frames)
x264 [warning]: VBV maxrate specified, but no bufsize.
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 3DNow!
x264 [info]: slice I:2730 Avg QP:34.48 size: 6813
x264 [info]: slice P:4059 Avg QP:29.15 size: 7965
x264 [info]: slice B:5211 Avg QP:30.77 size: 2773
x264 [info]: mb I I16..4: 535590.9% 0.0% 287449.8%
x264 [info]: mb P I16..4: -2241.5% 0.0% -169215.8% P16..4: -31037.2% 0.0% 0.0% 0.0% 0.0% skip:316557.6%
x264 [info]: mb B I16..4: -151957.5% 0.0% -62830.3% B16..8: 70114.5% 0.0% 0.0% direct:-5521.8% skip:-44511.7%
x264 [info]: final ratefactor: 29.29
x264 [info]: direct mvs spatial:94.1% temporal:5.9%
x264 [info]: SSIM Mean Y:0.7980922
x264 [info]: kb/s:1089.7

encoded 12000 frames, 42.11 fps, 1090.90 kb/s

----------------------------------------------------------------------------------------------------------
Job completed successfully and deletion of intermediate files is activated
job job1-1 has been processed. This job is linked to the next job: job1-2
Starting job job1-2 at 20:40:21
encoder commandline:
--pass 2 --bitrate 1022 --stats "D:\temp\megu.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 --progress --no-psnr --output "D:\temp\megu.mp4" "D:\temp\megu.avs"
successfully started encoding
Processing ended at 20:40:22
----------------------------------------------------------------------------------------------------------

Log for job job1-2

avis [info]: 576x464 @ 25.00 fps (12000 frames)
x264 [warning]: VBV maxrate specified, but no bufsize.
x264 [error]: requested bitrate is too low. estimated minimum is -2147483648 kbps
x264 [error]: x264_encoder_open failed

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

Sharktooth
29th November 2006, 03:35
try setting the number of threads to 1.

vanger
30th November 2006, 08:42
It works with 1 thread, but how about 20-30% loss in speed? :confused:

vanger
30th November 2006, 09:26
Maybe trying ELDER's program...?

Sharktooth
30th November 2006, 15:03
It works with 1 thread, but how about 20-30% loss in speed? :confused:
There's something spiffy with x264 multithreading...