PDA

View Full Version : Problem with x264 megui and Bluray Profile


Pyth0n
3rd May 2008, 20:28
Trying to convert a 1280x544 video to 1280x720 video by adding 88 borders up and down with megui and avs isn't working here.


When x264 does it's second pass I get this warning.
The video encodes but with a much lower bitrate.


Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --pass 2 --bitrate 4518 --stats "E:\TEMP\Rambo.stats" --level 4.1 --keyint 24 --min-keyint 1 --ref 3 --mixed-refs --bframes 3 --b-rdo --bime --weightb --direct auto --subme 6 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --qpmin 1 --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 30000 --vbv-maxrate 38000 --qcomp 0.5 --me umh --threads auto --thread-input --sar 1:1 --progress --no-psnr --no-ssim --output "E:\TEMP\Rambo.264" "E:\TEMP\Rambo.avs" --mvrange 511 --aud --nal-hrd --sar 1:1
avis [info]: 1280x720 @ 23.98 fps (133995 frames)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMX2 SSE SSE2 SSE3 3DNow
x264 [warning]: target: 4518.00 kbit/s, expected: 149.21 kbit/s, avg QP: 1.0000
x264 [warning]: try reducing target bitrate or reducing qp_min (currently 1)
x264 [info]: slice I:5584 Avg QP:31.33 size: 7997
x264 [info]: slice P:33499 Avg QP:34.82 size: 2293
x264 [info]: slice B:94912 Avg QP:36.57 size: 935
x264 [info]: mb I I16..4: 43.5% 54.6% 1.9%
x264 [info]: mb P I16..4: 7.5% 6.4% 0.2% P16..4: 13.1% 1.0% 0.2% 0.0% 0.0% skip:71.8%
x264 [info]: mb B I16..4: 0.9% 0.9% 0.0% B16..8: 18.2% 0.1% 0.1% direct: 0.1% skip:79.7%
x264 [info]: 8x8 transform intra:50.1% inter:67.8%
x264 [info]: direct mvs spatial:0.1% temporal:99.9%
x264 [info]: ref P 77.2% 15.2% 7.6%
x264 [info]: ref B 85.9% 14.1%
x264 [info]: kb/s:300.9

encoded 133995 frames, 13.56 fps, 305.39 kb/s
desired video bitrate of this job: 4518 kbit/s - obtained video bitrate (approximate): 305 kbit/s



Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --pass 2 --bitrate 6165 --stats "E:\TEMP\Terminator 2.stats" --level 4.1 --keyint 24 --min-keyint 1 --ref 3 --mixed-refs --bframes 3 --b-rdo --bime --weightb --direct auto --subme 6 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --qpmin 1 --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 30000 --vbv-maxrate 38000 --qcomp 0.5 --me umh --threads auto --thread-input --sar 1:1 --progress --no-psnr --no-ssim --output "E:\TEMP\Terminator 2.264" "E:\TEMP\Terminator 2.avs" --mvrange 511 --aud --nal-hrd --sar 1:1
avis [info]: 1280x720 @ 23.98 fps (196499 frames)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMX2 SSE SSE2 SSE3 3DNow
x264 [warning]: target: 6165.00 kbit/s, expected: 149.01 kbit/s, avg QP: 1.0000
x264 [warning]: try reducing target bitrate or reducing qp_min (currently 1)
x264 [info]: slice I:8188 Avg QP:34.65 size: 6095
x264 [info]: slice P:49127 Avg QP:37.97 size: 3158
x264 [info]: slice B:139184 Avg QP:39.88 size: 1563
x264 [info]: mb I I16..4: 45.5% 53.5% 0.9%
x264 [info]: mb P I16..4: 14.2% 14.0% 0.2% P16..4: 13.3% 1.1% 0.1% 0.0% 0.0% skip:57.1%
x264 [info]: mb B I16..4: 2.4% 2.6% 0.0% B16..8: 25.3% 0.2% 0.2% direct: 0.1% skip:69.2%
x264 [info]: 8x8 transform intra:51.0% inter:79.9%
x264 [info]: direct mvs spatial:0.1% temporal:99.9%
x264 [info]: ref P 77.7% 15.3% 7.0%
x264 [info]: ref B 87.2% 12.8%
x264 [info]: kb/s:412.6

encoded 196499 frames, 11.92 fps, 417.08 kb/s
desired video bitrate of this job: 6165 kbit/s - obtained video bitrate (approximate): 417 kbit/s

Just to check the default qp value is 10 and I tried that value too. Tried 16 thats the x264 default and them tried 1.
I also tried 7 wich worked with the sample file but not the whole movie.
Isn't and auto value for that?

It's encoding the file but with a much lower bitrate. All my other searchs the guys where trying absurd values and the program didn't even encode it.
Just can't find the solution anywhere else.

This is the first and second pass log of a sample encode.
But I get the exactly same error with the whole movie.

Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --pass 1 --bitrate 4518 --stats "E:\TEMP\sample.stats" --level 4.1 --keyint 24 --min-keyint 1 --bframes 3 --direct auto --subme 1 --partitions none --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 30000 --vbv-maxrate 38000 --qcomp 0.5 --me dia --threads auto --thread-input --sar 1:1 --progress --no-psnr --no-ssim --output NUL "E:\TEMP\sample.avs" --mvrange 511 --aud --nal-hrd --sar 1:1
avis [info]: 1280x720 @ 23.98 fps (1487 frames)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMX2 SSE SSE2 SSE3 3DNow
x264 [info]: slice I:63 Avg QP:10.33 size: 12302
x264 [info]: slice P:372 Avg QP:16.10 size: 254
x264 [info]: slice B:1052 Avg QP:17.01 size: 80
x264 [info]: mb I I16..4: 96.2% 0.0% 3.8%
x264 [info]: mb P I16..4: 0.0% 0.0% 0.0% P16..4: 1.0% 0.0% 0.0% 0.0% 0.0% skip:99.0%
x264 [info]: mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.2% 0.0% 0.0% direct: 0.2% skip:99.6%
x264 [info]: final ratefactor: -17.86
x264 [info]: direct mvs spatial:11.3% temporal:88.7%
x264 [info]: kb/s:123.1

encoded 1487 frames, 46.83 fps, 128.94 kb/s

Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --pass 2 --bitrate 4518 --stats "E:\TEMP\sample.stats" --level 4.1 --keyint 24 --min-keyint 1 --ref 3 --mixed-refs --bframes 3 --b-rdo --bime --weightb --direct auto --subme 6 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 30000 --vbv-maxrate 38000 --qcomp 0.5 --me umh --threads auto --thread-input --sar 1:1 --progress --no-psnr --no-ssim --output "E:\TEMP\sample.264" "E:\TEMP\sample.avs" --mvrange 511 --aud --nal-hrd --sar 1:1
avis [info]: 1280x720 @ 23.98 fps (1487 frames)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMX2 SSE SSE2 SSE3 3DNow
x264 [warning]: target: 4518.00 kbit/s, expected: 176.69 kbit/s, avg QP: 10.0000
x264 [warning]: try reducing target bitrate or reducing qp_min (currently 10)
x264 [info]: slice I:63 Avg QP:28.49 size: 20660
x264 [info]: slice P:372 Avg QP:32.34 size: 4600
x264 [info]: slice B:1052 Avg QP:34.09 size: 1962
x264 [info]: mb I I16..4: 35.9% 57.3% 6.9%
x264 [info]: mb P I16..4: 3.4% 4.6% 0.4% P16..4: 22.6% 3.3% 0.9% 0.0% 0.0% skip:64.9%
x264 [info]: mb B I16..4: 0.2% 0.3% 0.0% B16..8: 24.9% 0.5% 0.8% direct: 0.3% skip:73.0%
x264 [info]: 8x8 transform intra:56.4% inter:63.1%
x264 [info]: direct mvs spatial:11.6% temporal:88.4%
x264 [info]: ref P 82.4% 11.8% 5.8%
x264 [info]: ref B 88.8% 11.2%
x264 [info]: kb/s:654.8


When I reduce qpmin from 10 to 7 the sample works. But not the movie.
And sometimes the sample even with 7 gives the same erro.

Tried using different's builds of x264. The one from x264.nl, the one from this site and the default megui build.

Dark Shikari
3rd May 2008, 20:38
Its quite clear from that twopass log that the first pass isn't encoding the same video as the second pass; if anything it looks like its encoding a blank screen.

Pyth0n
3rd May 2008, 20:46
The movie tried only with 10 7 and 1.
but the sample I tried 3 times with 7 and sometimes it works and sometimes don't

And the output file I get is the same sample video but with a much lower bitrate than the one I wanted.

It finish the encode process.

Pyth0n
3rd May 2008, 21:01
Problem with ffdshow.

Uninstalled and installed a new version.
Going to test with the big file now.

Pyth0n
4th May 2008, 00:52
Still not working.

What's the problema with that?
megui recognizes the video, recodes it but with a much lower bitrate.

Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --pass 1 --bitrate 4518 --stats "E:\TEMP\Rambo.stats" --level 4.1 --keyint 24 --min-keyint 1 --bframes 3 --direct auto --subme 1 --partitions none --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 30000 --vbv-maxrate 38000 --qcomp 0.5 --me dia --threads auto --thread-input --sar 1:1 --progress --no-psnr --no-ssim --output NUL "E:\TEMP\Rambo.avs" --mvrange 511 --aud --nal-hrd --sar 1:1
avis [info]: 1280x720 @ 23.98 fps (133995 frames)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMX2 SSE SSE2 SSE3 3DNow
x264 [info]: slice I:5592 Avg QP:10.18 size: 11596
x264 [info]: slice P:33581 Avg QP:15.93 size: 180
x264 [info]: slice B:94822 Avg QP:16.89 size: 74
x264 [info]: mb I I16..4: 97.2% 0.0% 2.8%
x264 [info]: mb P I16..4: 0.2% 0.0% 0.0% P16..4: 0.5% 0.0% 0.0% 0.0% 0.0% skip:99.3%
x264 [info]: mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.2% skip:99.8%
x264 [info]: final ratefactor: -22.09
x264 [info]: direct mvs spatial:0.3% temporal:99.7%
x264 [info]: kb/s:111.5

encoded 133995 frames, 45.11 fps, 117.34 kb/s







Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --pass 2 --bitrate 4518 --stats "E:\TEMP\Rambo.stats" --level 4.1 --keyint 24 --min-keyint 1 --ref 3 --mixed-refs --bframes 3 --b-rdo --bime --weightb --direct auto --subme 6 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 30000 --vbv-maxrate 38000 --qcomp 0.5 --me umh --threads auto --thread-input --sar 1:1 --progress --no-psnr --no-ssim --output "E:\TEMP\Rambo.264" "E:\TEMP\Rambo.avs" --mvrange 511 --aud --nal-hrd --sar 1:1
avis [info]: 1280x720 @ 23.98 fps (133995 frames)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMX2 SSE SSE2 SSE3 3DNow
x264 [warning]: target: 4518.00 kbit/s, expected: 114.55 kbit/s, avg QP: 10.0000
x264 [warning]: try reducing target bitrate or reducing qp_min (currently 10)
x264 [info]: slice I:5592 Avg QP:32.72 size: 7759
x264 [info]: slice P:33581 Avg QP:36.16 size: 2245
x264 [info]: slice B:94822 Avg QP:37.94 size: 842
x264 [info]: mb I I16..4: 42.6% 55.7% 1.8%
x264 [info]: mb P I16..4: 7.1% 6.5% 0.1% P16..4: 12.2% 1.0% 0.3% 0.0% 0.0% skip:72.9%
x264 [info]: mb B I16..4: 0.8% 0.8% 0.0% B16..8: 16.8% 0.1% 0.1% direct: 0.1% skip:81.3%
x264 [info]: 8x8 transform intra:51.6% inter:65.1%
x264 [info]: direct mvs spatial:0.3% temporal:99.7%
x264 [info]: ref P 77.2% 15.1% 7.7%
x264 [info]: ref B 86.0% 14.0%
x264 [info]: kb/s:284.4

encoded 133995 frames, 15.05 fps, 288.90 kb/s
desired video bitrate of this job: 4518 kbit/s - obtained video bitrate (approximate): 288 kbit/s

Dark Shikari
4th May 2008, 01:05
Look at your first pass; its obviously not encoding the same video in the first pass as in the second pass, which leads to the problem. I suspect the first pass is simply an empty video (blank screen) or similar.

Pyth0n
4th May 2008, 01:21
When I load the AVS script in media player classic it plays perfectly as it should be played with the addborders. Even when I uninstall the ffdshow codec.

And the resulting video is the same as the avs one plays.


I did what this guide tolde me to do.

http://forum.doom9.org/showthread.php?t=135795&highlight=ps3+video+megui

here's my AVS file

DirectShowSource("E:\TEMP\sample.m2ts",fps=23.9759856527702,audio=false)
addborders(0,88,0,88)


Could it be something with megui?
Is the command line correct?

Pyth0n
4th May 2008, 01:29
Oh and how do u see that it has blank screen?
You saw that it have the same quantity of frames as the first video don't?
How do you see it's not the same video?

Dark Shikari
4th May 2008, 03:30
Oh and how do u see that it has blank screen?
You saw that it have the same quantity of frames as the first video don't?
How do you see it's not the same video?Because of the quantizers and stated ratefactor.

Pyth0n
4th May 2008, 22:37
Trying to call x264 by the commandline but no luck in that.
Same error.

Can x264 call up avs script with no problem? Lot's of other people use that.

I'm using Windows Vista x64 and my AVS script is working fine here.

Any tips about that?
I simply need to use avs to add borders to the video.

Atak_Snajpera
5th May 2008, 00:24
Did you try with Ripbot?

Pyth0n
5th May 2008, 02:47
It doesn't support the new tsmuxer that has SRT support. And I don't like burned in subs.

But i'm looking forward for a new version of RipBot Atak_Snajpera

Pyth0n
5th May 2008, 20:59
It was windows Vista or Nero codecs.

Under Windows XP x64 is everything working good and the ffdshow icon appears now.

Still afraid to install nero.

Thanks for the help everyone.