PDA

View Full Version : Help With Reference Frames


ps3hacker
25th September 2007, 07:47
Im trying to make a hddvd compatable avc stream. The source is Evo file and am using this graph File1.EVO->Haali Media Splitter->WMVideo Decoder DMO. The only problem I am having is if I use more than 1 reference frames, video becomes distorted consistantly every second or less. If I use only one, video is fine. I would of course like to use more than one reference frame.Here are my megui settings

--pass 1 --bitrate 14000 --stats "E:\Video Encoding\Movie1.stats" --level 4.1 --keyint 15 --min-keyint 4 --no-fast-pskip --bframes 3 --ref 3 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -1,-1 --subme 7 --trellis 2 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 19000 --ratetol 2.0 --me umh --threads auto --thread-input --progress --no-dct-decimate --no-psnr --no-ssim --output NUL "E:\Video Encoding\Movie1.avs"

--pass 2 --bitrate 14000 --stats "E:\Video Encoding\Movie1.stats" --level 4.1 --keyint 15 --min-keyint 4 --no-fast-pskip --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -1,-1 --subme 7 --trellis 2 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 19000 --ratetol 2.0 --me umh --threads auto --ref 3 --thread-input --progress --no-dct-decimate --no-psnr --no-ssim --output "E:\Video Encoding\Movie1.264" "E:\Video Encoding\Movie1.avs"

Dark Shikari
25th September 2007, 08:28
Out of curiosity, tried it without --b-pyramid?

ps3hacker
25th September 2007, 09:56
Tried it with all advanced options off. Played with the files alot before I finally figured out what was causing it to look like crap. I had reference frames set to 16, the max. It only happens when I set the avc level to 4.1 instead of unrestricted, but I need the level at 4.1.

dattrax
25th September 2007, 12:59
There is a whole thread on this

http://forum.doom9.org/showthread.php?t=125568

to make HDDVD compatible you need the build from this thread

This is the 2nd pass....

$ ./x264.exe --pass 2 --bitrate 14000 --stats "1.stats" --aq-strength 0.25 --aq-sensitivity 5 --keyint 12 --min-keyint 3 --nal-hrd --pulldown 32 --vbv-maxrate 29400 --vbv-bufsize 14811 --level 4.1 --weightb --ref 3 --mixed-refs --deblock
-1:-1 --qcomp 0.75 --ipratio 1.10 --pbratio 1.10 --partitions "all" --8x8dct --me hex --subme 5 --mvrange 511 --threads auto --no-fast-pskip --aud --sar 1:1 --deadzone-intra 6 --deadzone-inter 6 --non-deterministic --progress --output bbc.h264 "F:\HD Streams\bbchdTS-sample.avs"


If you want to encode true interlace then there is a patch for this, but you wont get some of the adaptive quant stuff. Its up to you what you take.


obviously you can tweak the motion comp settings to suit

Jim

ps3hacker
26th September 2007, 01:36
I am not having a problem with pulldown. Tested patched h264.exeand no help. I use h264info.exe to apply pulldown, same results. Ive went ahead and used all the slowest and best settings in megui(all except reference frames which are set to 1) and dvd works great great in xbox360 hddvd player connected to xbox360. I guess I'll just deal with the only 1 reference frame issue.

dattrax
26th September 2007, 20:31
I wasn't commenting on pulldown specifically, I just posted my config which works in a HDDVD player (HD-E1) and has more than one reference frame. You want to be careful with some of your other settings because the vbv is too low and the distance between key frames is > .6006 seconds for starters. Like the other comment --b-pyramid is also not usable if I remember correctly.

You may have had success in the xbox360 as it is more forgiving than a compliant player.

Jim

ps3hacker
27th September 2007, 04:33
I'm not really looking to be a 100 percent hddvd compliant. Im just looking for the best possible settings for h.264 that work.
You want to be careful with some of your other settings because the vbv is too low and the distance between key frames is > .6006 seconds for starters.
Sorry for such a newbish qustion but how did you figure out distance between key frames and what should they be?

dattrax
27th September 2007, 07:34
very simple answer.... its in the spec :)

Jim