Log in

View Full Version : h264 1080P questions


juGGaKNot
14th April 2008, 19:46
First of all hello people.

I record footage from games at 1080P and i want to use h264 ( for the hardware decoding )

I Record at 1000 FPS
Render with virtual dub at 1000 FPS @ huffyuv
Open in vegas, edit, render huffyuv at 24P and 48P

I have to use vegas because it "blends" thre frames so

1000 from the game with 24 final render 40+ frames are going in one frame via blend.

now, i have the blend, the final lossless render 24P and 48P and i have to render the final version

now i use 2 pass xvid, on older PC it laggs! ( slow procesor )

if i use h264 will the video card "help" the CPU with the video ?

If i open the video on a blu-ray player will it play fine ?

Any links are wellcommed, the quality is good, i just want to render the footage with h264 so its plays perfect on PC's and LCD-TV's > 42

Your reply's are wellcommed, if i posted wrong please move to the thread.

Cheers.

juGGaKNot.

Stakiman
14th April 2008, 20:05
You have to use --level 4.1 and maximum 4 ref frames in order for it to work. There are no other restrictions AFAIK.

This is of course with x264.exe

nm
14th April 2008, 20:22
if i use h264 will the video card "help" the CPU with the video ?
Depends on the video card (NVIDIA GeForce 8500/8600/8800GT/9xxx and ATI Radeon HD support full hardware decoding). Then you'll need a suitable DirectShow decoder filter that supports DxVA (MPC HC has one).

When it still doesn't work, check the renderer, player settings and encoding profile and try again when the moon is in the right phase ;)


If i open the video on a blu-ray player will it play fine ?
You mean a standalone hardware player? This will only work reliably if you follow the exact Blu-ray video specs when encoding. I think there have been some threads about this before.

juGGaKNot
14th April 2008, 21:00
You have to use --level 4.1 and maximum 4 ref frames in order for it to work. There are no other restrictions AFAIK.

This is of course with x264.exe

k, if u can give me the exact link that would be great!

Thanks.

Depends on the video card (NVIDIA GeForce 8500/8600/8800GT/9xxx and ATI Radeon HD support full hardware decoding). Then you'll need a suitable DirectShow decoder filter that supports DxVA (MPC HC has one).

When it still doesn't work, check the renderer, player settings and encoding profile and try again when the moon is in the right phase ;)



You mean a standalone hardware player? This will only work reliably if you follow the exact Blu-ray video specs when encoding. I think there have been some threads about this before.

I have a blu-ray profile, will give it a try.

Great, it works :)

Yes for 8xxx/9xxx and HD series.

If you can provide a link here so i can do more studying it would be great.

Thanks!

ps : I tried staxrip and the quality is bad, on x264 its great .. dunno why

Later : i see that Video Codec is RGB from vegas.

I also found this : Crop 1088 to 1080

if i need the video at 1920x1088 i can just get it like this from vegas and let x264 crop it no ?


Cheers

juGGaKNot.

nm
14th April 2008, 21:12
If you can provide a link here so i can do more studying it would be great.
Here's one: http://forum.doom9.org/showthread.php?t=132924

juGGaKNot
14th April 2008, 21:19
Here's one: http://forum.doom9.org/showthread.php?t=132924

Thanks!

now i use a simple profile for sample's :

echo AVISource("%mypath%\%mymovie%.avi") > "%mypath%\%mymovie%.avs"
echo Crop(0,0,-0,-0) >> "%mypath%\%mymovie%.avs"
echo ConvertToYV12() >> "%mypath%\%mymovie%.avs"

echo ======Encoding AAC audio======
"bin\faac.exe" -b %myabitrate% -o "%mypath%\temp\%mymovie%.m4a" "%mypath%\%mymovie%.wav"
echo ==============================
echo.

echo ======= x264 pass 1/3 ========
"bin\x264.exe" -p 1 --bitrate %myvbitrate% --ref 3 --bframes 3 --subme 6 --weightb --analyse all --8x8dct --qpmin 4 --qpstep 6 --merange 24 --me umh --progress --no-psnr --stats "temp\x264.stats" --output NUL "%mymovie%.avs"
echo ==============================
echo.

echo ======= x264 pass 2/3 ========
"bin\x264.exe" -p 3 --bitrate %myvbitrate% --ref 3 --bframes 3 --subme 6 --weightb --analyse all --8x8dct --qpmin 4 --qpstep 6 --merange 24 --me umh --progress --no-psnr --stats "temp\x264.stats" --output NUL "%mymovie%.avs"
echo ==============================
echo.

echo ======= x264 pass 3/3 ========
"bin\x264.exe" -p 2 --bitrate %myvbitrate% --ref 3 --bframes 3 --subme 6 --weightb --analyse all --8x8dct --qpmin 4 --qpstep 6 --merange 24 --me umh --progress --no-psnr --stats "temp\x264.stats" --output "temp\%mymovie%.264" "%mymovie%.avs"
echo ==============================
echo.

echo === Muxing Audio and Video ===
"bin\mp4box" -new -add "%mypath%\temp\%mymovie%.264#video" -add "%mypath%\temp\%mymovie%.m4a#audio" -fps %myfps% "%mypath%\%mymovie%.mp4"
echo ==============================
echo.

if EXIST "%mypath%\%mymovie%.mp4" rmdir /S /Q temp
del "%mypath%\%mymovie%.avs"

doesn't work with 1080P, only 720P

will give it a try with 1920x1088 and 4 crop.

LATER : if i use

echo AVISource("%mypath%\%mymovie%.avi") > "%mypath%\%mymovie%.avs"
echo Crop(0,4,-0,-4) >> "%mypath%\%mymovie%.avs"
echo ConvertToYV12() >> "%mypath%\%mymovie%.avs"

to get 1920x1080 from 1920x1088 makemp4.bat doesn't work, the 16 error.

Must get the x24 version and give it a try

PS3 profile --level 4.1 --ref 3 --mixed-refs --bframes 3 --b-pyramid no ?

LATER 2 :

The following encoding settings allow DXVA to work @ 1080p:

num_ref_frames=4 ref=1 b-frames=3 b-pyramid=on
--level 4.1 --ref 1 --bframes 3 --b-pyramid --b-adapt --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 25000 --me umh --merange 12

num_ref_frames=4 ref=3 b-frames=3 b-pyramid=off
--level 4.1 --ref 3 --mixed-refs --bframes 3 --no-b-pyramid --b-adapt --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 25000 --me umh --merange 12

num_ref_frames=4 ref=3 b-frames=3 b-pyramid=off b-adapt=off
--level 4.1 --ref 3 --mixed-refs --bframes 3 --no-b-pyramid --no-b-adapt --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 25000 --me umh --merange 12

num_ref_frames=4 ref=3 b-frames=16 b-pyramid=off
--level 4.1 --ref 3 --mixed-refs --bframes 16 --no-b-pyramid --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 25000 --me umh --merange 12

num_ref_frames=4 ref=4 b-frames=0 b-pyramid=off b-adapt=off
--level 4.1 --ref 4 --mixed-refs --bframes 0 --no-b-pyramid --no-b-adapt --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 25000 --me umh --merange 12

Found it :) now just have to get the x264 and the profile no ?

Cheers.

juGGaKNot.

juGGaKNot
14th April 2008, 21:45
DXVA-HD-HQ: --level 4.1 --ref 4 --mixed-refs --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -2,-1 --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --me umh

by Sharktooth

is this the solution ?

going to sleep, will check back tomorow!

Good night!

juGGaKNot.

juGGaKNot
15th April 2008, 09:06
Doesn't work :|

Update done :

http://i286.photobucket.com/albums/ll105/juGGaKNot4cs/1UPDATE.jpg

Settings DXVA-HD-HQ :

http://i286.photobucket.com/albums/ll105/juGGaKNot4cs/2Setting.jpg

And if i press pre-render, enqueue and analysis pass i get errors :

http://i286.photobucket.com/albums/ll105/juGGaKNot4cs/5ERROR.jpg

It works if i dont press pre-render

Also auto encode does not work it all! i get this error :

http://i286.photobucket.com/albums/ll105/juGGaKNot4cs/ERROR.jpg

Only way it works : RAWAVC without pre-render then mp4box with FAAC :

http://i286.photobucket.com/albums/ll105/juGGaKNot4cs/Works.jpg

juGGaKNot
15th April 2008, 10:31
IT WORKS!

kmplayer was the problem, MPC works FINE!

1920x1088 render at 23.967 FPS from vegas

avisource("videp.avi")
crop(0,4,-0,-4)
spline36resize(1920,1080)
Converttoyv12()
ColorMatrix()

x264
RAWAVC format ( so i can add the sound via MP4BOX )
DXVA-HD-HQ

Job commandline: "D:\Megui\tools\x264\x264.exe" --pass 1 --bitrate 10000 --stats "D:\Megui\video.stats" --level 4.1 --bframes 3 --b-pyramid --direct auto --filter -2,-1 --subme 1 --analyse none --me dia --threads auto --thread-input --sar 1:1 --progress --no-psnr --no-ssim --output NUL "D:\Megui\video.avs"

so now i should have 1080P video that the video card decodes hardware no?

Also : what matrix should i use ?

FLAT ( DXVA-HD-HQ default ) or this one :

Custom Quantizer Matrix "eqm_avc_hr.cfg".

INTRA4X4_LUMA =
6, 9,13,19,
9,14,20,27,
13,20,28,35,
19,27,35,42

INTRA4X4_CHROMAU =
6,10,15,20,
10,16,21,27,
15,21,28,33,
20,27,33,42

INTRA4X4_CHROMAV =
6,10,15,20,
10,16,21,27,
15,21,28,33,
20,27,33,42

INTER4X4_LUMA =
8,11,15,20,
11,16,21,27,
15,21,28,35,
20,27,35,42

INTER4X4_CHROMAU =
8,11,16,21,
11,17,22,27,
16,22,28,35,
21,27,35,42

INTER4X4_CHROMAV =
8,11,16,21,
11,17,22,27,
16,22,28,35,
21,27,35,42

INTRA8X8_LUMA =
6, 7, 8,10,12,14,16,18,
7, 9,11,13,15,16,18,20,
8,11,14,16,17,19,21,22,
10,13,16,18,20,22,24,26,
12,15,17,20,23,25,28,30,
14,16,19,22,25,29,34,38,
16,18,21,24,28,34,46,52,
18,20,22,26,30,38,52,72

INTER8X8_LUMA =
8, 9,10,12,14,16,19,21,
9,11,13,15,17,19,21,23,
10,13,16,18,20,22,23,25,
12,15,18,21,23,24,26,32,
14,17,20,23,25,27,33,40,
16,19,22,24,27,34,41,52,
19,21,23,26,33,41,53,64,
21,23,25,32,40,52,64,80

This one is made by Sharktooth in 08'.

UPDATE :

http://files.filefront.com/final+rendermkv/;10014728;/fileinfo.html

Its done, does it work ? please try and post.

juGGaKNot
16th April 2008, 22:23
link down, new link :

http://files.filefront.com/final+rendermkv/;10021753;/fileinfo.html

@ohropax confirmed that the file is DXVA !