PDA

View Full Version : Need Help Creating AVS file from HD-DVDs


Toti
14th June 2007, 17:41
I have been encoding from sources MPEG2 & AVC. I have used indexers from Neuron2 "DGMPG" & "DGAVC" it works great.

Now, I am trying to re-encode HD-DVDs but the source is VC1. Since I don't know of an indexer for VC1 I used "DirectShowSource". I did the following:
1. Decode the VC1 file with EVODemux 0.626
2. Create and AVS file that reads:
Directshowsource("C:\TheDeparted.vc1",audio=false, framecount=328422, fps=23.976)
framecount from EVODemux.

The problem is that the video now reads 3:48:17 and still does not reach the end. See picture below.
http://aycu21.webshots.com/image/18100/2001694983618073298_rs.jpg

then I tried Graph Edit
http://aycu33.webshots.com/image/16832/2001135249902284069_rs.jpg
and got the same results, the video still doesn't reach the end.
http://aycu16.webshots.com/image/20215/2001109077338283360_rs.jpg

Also tried a different approach to graph Edit.
http://aycu31.webshots.com/image/18310/2004869585624360995_rs.jpg

And still video does not reach the end. CineVision can accept the VC1 directly but it will encode it at 29.97fps and I want it at 23.976fps with pulldown.

How is everyone doing to avisynth HD-DVDs correctly? please post your scripts :script:

seekrtz
14th June 2007, 18:48
Demux the vc1 stream to mpv. Use the counted frames value for framecount.

I find that the framecount is always too long so I have to run a test encode in xvid to see where the correct ending is (it's only off by a couple secs).

BTW: the preview you see in vd is aways wrong, never try to view the video before encoding it as general rule but do check the length to see if its right then re-open it and encode.

Directshowsource("C:\TheDeparted.vc1",audio=false, framecount=328422, fps=23.976)
You DO NOT open the vc1 file directly with DirectShowSource, you create a grf file in graphedit and open that with DirectShowSource.

Toti
14th June 2007, 22:26
Thanks SeekRTZ, I appreciate your input. I'll try that as well.

However, I did find a way that works.

1. I did Graph Edit first with each EVO (since is larger than 10Gigs the movie). Using Sonics filters like explained above.

2. Wrote the AVS script as follows.

Directshowsource("C:\Part01.GRF",audio=false, fps=23.976)+Directshowsource("C:\Part02.GRF",audio=false, fps=23.976)

Crop(4,0,-4,0)

BilinearResize(1920,1080)
Don't put the framecount since it will mess it up.

3. Created the fake avi with VFAPIConv then to CineVision.

They all now report the right framerate, frames and timecode. See the pictures below:

http://aycu37.webshots.com/image/17076/2001895874844002798_rs.jpg

http://aycu33.webshots.com/image/19392/2001821422398701618_rs.jpg

http://aycu05.webshots.com/image/17444/2001800736525290398_rs.jpg
Yes, I know the frames on Virtual Dub are not right but the slider is not at the end. I just put it close to the end to show the end credits and more~less the frames.

It's encoding now, I'll post the results when finished.

bond
15th June 2007, 00:44
moved, as a vc1 issue

bluesk1d
15th June 2007, 21:47
You dont need to do that much work =) Your graphs for each EVO are fine. I usually use EVO file(haali splitter) -> Windows media decoder DMO.

To get the frame count for each of the EVOs, in EVOdemux uncheck continue to next evo on the options tab and then read each evo separately and note the calculated frame count. Enter the correct frame count in each of your DirectShowSource statements with a frame rate of 23.976 and you should be golden. Thats how I do all my HD DVDs.

Toti
22nd June 2007, 09:59
In order for HD-DVD -> GraphEdit -> Sonic Filters to work. You MUST install Scenarist Standard Content 4.12

Sonic Scenarist Advanced Content won't install the proper filters nor CineVision 1.2/2.0

Tested!!

bluesk1d
22nd June 2007, 15:40
Are you dead-set on using Sonic filters for your graph? I have had nothing but problems with them inaccurately modifying the frame rate of the source. Try the included Microsoft VC-1 decoder and haali splitter. You dont even have to demux the evo (some suggest to mux to mkv first but I have never had any problem).

Nasgul
23rd June 2007, 00:55
Hi bluesk1d,

Are you dead-set on using Sonic filters for your graph? I have had nothing but problems with them inaccurately modifying the frame rate of the source. Try the included Microsoft VC-1 decoder and haali splitter. You dont even have to demux the evo (some suggest to mux to mkv first but I have never had any problem).

could you please post the exact AVS-script and graph you use?

Thanks,
Nas

HookedOnTV
23rd June 2007, 17:32
Are you dead-set on using Sonic filters for your graph? I have had nothing but problems with them inaccurately modifying the frame rate of the source. Try the included Microsoft VC-1 decoder and haali splitter. You dont even have to demux the evo (some suggest to mux to mkv first but I have never had any problem).


I tend to see green blocking here and there when using the MS decoder. I've just found the latest ffdshow to work pretty good with haali.