here's the post on converting .h264 to hd dvd
http://www.avsforum.com/avs-vb/showpost.php?p=13940881&postcount=2934
basically..
=================================================================
Here is an outline of what I did to get a H264 encoded file into a HD-DVD formatted DVD disk.
Software used
-------------------------------------------------
AVISynth, I used version 2.5.7
MEGui from Doom9 forum
DGmpgdec I used version 1.5 rc5
DGavcdec (for H264 sources)
tsMuxeR from Doom9 forum
DGDecode.dll, Decomb521.dll copy to AVIsynth-plugins folder
h264info
The start is different depending on what kind of file you are starting with. Most of my recordings are mpeg2 and usually film source. So this is how I have done it.
Load the mpeg2 file into the latest version of DGIndex and save project. This will demux the audio and create a .d2v file that you use with MEgui X-264 encoder from Doom9 forum. You need to create a text file with notepad saved with a .avs extention to use AVISynth. Here is a sample--
LoadPlugin("C:\Program Files\AviSynth 2.5.7\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5.7\plugins\Decomb521.dll")
mpeg2source("F:\Yourfile.d2v", upConv=1)
Telecide(1,guide=1,vthresh=0)
Decimate(cycle=5)
FieldDeinterlace(Full=False,threshold=15,dthreshold=9)
ConvertToYV12()
This script will de-interlace and convert the film back to progressive frames. I found that doing this makes the motion much smoother, but about doubles the encode time. I am trying to remove the 3-2 pulldown in other ways, but nothing is as smooth as this script.
Load .avs text file you created into MEgui and if you get no error messages, you should see a frame of the source file you are going to encode. Close video frame and use the bitrate calculator in the tools menu to find the bitrate use the audio file that was created by DGindex and for a double layer DVD disk I use a file size of 7.8 GB. Select the SA-HD-DVD profile and set the fourCC to avc1 in MEgui. Select RAWAVC for the output format, you will get a .264 file. For more info on using MEgui see the Doom9 forum. Two pass file encoding for a 2 hour mpeg2 file takes about 18 hours on my overclocked core2duo computer.
After encoding load the .264 file into h264info and select 3-2 pulldown and run to get a 29.97 version of the encoded file as MF6+ only likes 29.97.
Then load the video file just created along with the audio file created by DGindex, noting the time delay in the file name into tsMuxeR. click on audio file and enter the time delay in the file name into tsMuxeR audio delay window. Then mux into .ts file.
=========================================================
not for the faint of heart.............................and yes,
this is going from mpg->.h264 (so if the source is already .h264 no problems)..
the fps have to be changed, i'm working on it..
details, details..............
later
-1