Log in

View Full Version : H264 TO MPEG2 issue


hardkorn
24th September 2009, 12:34
Hi guys

I have a video file, h264 in a mkv container, which I encoded, a year ago, and now I'd like to build a dvd after it , so it'll be compatible with my older dvd player that doesn't know h264.

I demuxed the mkv file and have the video stream (*.h264) and the audio stream.
I built an AVS script and dragged it to Cinema Craft trial and every single time I get this:

"Frame size 892x56 is not supported. Supported frame size is up to 720x576"

I tried to resize it using the avs script by adding a lancozresize line, but the same happens.

I've searched the forum and seems I am not the only one who's had problems with this.

Do you know how can I overcome this? I need to build a mpeg2, dvd compatible video. Maybe a dedicated application?

Regards

hardkorn

Arshad07
24th September 2009, 13:12
1) Can we get a sample?
2) DVD formats are 720x480(NTSC) & 720x576(PAL).
3) You have to resize your video to either one of these ^.
4) You may have to add borders in order to obey the a/r.

hardkorn
24th September 2009, 13:20
I know what the DVD formats are, I'm not a newbie.

Sample coming right up.

prenz
24th September 2009, 13:23
"Frame size 892x56 is not supported. Supported frame size is up to 720x576
Have you tried playing the .avs using mplayer? This frame size seems to suggest that AviSynth encountered an error (probably a typo in the script), which it does display instead of the target video.

hardkorn
24th September 2009, 13:38
Yes I tried. Media Player Classic won't play it. I checked the avs and nothing stands up.

LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
loadplugin("c:\Program Files\AviSynth 2.5\plugins\DGAVCDecode.dll")
LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\Decomb.dll")
avcsource("e:\work\test.h264")
Lancozresize(720,576)

I also tried with DirectShowSource and the dga file created by dgavindex and the same thing happened.

Didée
24th September 2009, 13:48
Lancozresize(720,576)

Lanczosresize

rack04
24th September 2009, 13:49
What Avisynth script are you using with the DGA file generatred by DGAVCIndex?

It should be something like:

LoadPlugin("[PATH\]DGAVCDecode.dll")
AVCSource("[PATH\]project.dga")

Guest
24th September 2009, 13:51
AVCSource() cannot take an h264 file. It has to be a DGA file.

Read and follow the quick start guide that comes with DGAVCDec.

hardkorn
24th September 2009, 14:13
ok

If I add this avs to cinema craft

LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
loadplugin("c:\Program Files\AviSynth 2.5\plugins\DGAVCDecode.dll")
LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\Decomb.dll")
avcsource("e:\work\test.h264")


Cinema Craft accepts it,but the time code is all wrong. It shows that the video is just 10 minutes long instead of over 90 minutes.

If add the dga file

Loadplugin("c:\Program Files\AviSynth 2.5\plugins\DGAVCDecode.dll")
Loadplugin("c:\Program Files\AviSynth 2.5\plugins\Decomb.dll")
LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
avcsource("E:\work\test.dga")

I get "Frame size 1280x688 is not supported...


But thanks to Didée which pointed the spell error, I added Lanczosresize(720,576) to the last script and Cinema Craft sees the right length.

Thank you all.

Guest
24th September 2009, 14:42
No thanks for the people that told you you have to pass a DGA file to AVCSource()?