I'm using this avisynth script:
LoadPlugin("MPEGDecoder.dll")
MPEGSource("d:\canyon.vob")
ConvertToYUY2
Bob() # Separate fields and interpolate them to full height.
BicubicResize(720, 576) # Resize to PAL square-pixel frame size. (Use 720,576 for CCIR.)
ConvertFPS(50) # Convert field rate to PAL, using Blend Mode.
SeparateFields.SelectEvery(4, 0, 3) # Undo Bob, even field first. Use SelectEvery(4, 1, 2) for odd field first.
Weave # Finish undoing Bob.
The result of this is quite confusing:
When I play the original canyon.vob in PowerDVDŽ, the rpeorted length is 24 s, when I extract the mpeg out of this vob: 37s.
The converted file (from above script) is 37 sec too (as expected and the frame count went from 1136 (@29.97fps) to 948 (@25fps).
I extracted the wav and the length was 37 sec.
So I ended with a mpv and a wav with exactly the same length.So theoretically, the movie should be in sync, right?
Wrong, after authoring to a new vob, the audio was about 5 sec delayed and the vob played 34 sec in PowerDVD and no sync
.
Any ideas, how this happened? Why does it play originally 24 sec, the extraction gave 37+sec, the conversion to PAL too (including) wave length and after authoring everythings goes wrong!
+ Reply to Thread
Results 1 to 8 of 8
-
-
More starnge findings:
When I open the avisynth script with Vdub, add the audio and save as compressed avi, everything is perfect in sync.
After that, Iencoded the avi with CCE and authored the result, everything's perfect still:movie and audio both are the same length (37 sec) and are in sync.
Do I have to make an avi at last? -
DragonSF, your post is confusing
What is your source material? (29.97, or 23.976)?
Is it true interlaced, telecined, or progressive?
Your using CCE + AVISynth right?Impossible to see the future is. The Dark Side clouds everything... -
I think (while trying to answer your question), I found the problem (maybe not the solution):
The DVD is progressive and 29.97 (according to BV) and has 150160 frames.
The AVIs (from DVD2AVI) show 23.976 fps, 150191 frames giving 104.404 min.
The mpg (from AviSynth) give 156606 frames->1:44:404 min
and the audio is 104.240 min.
The problem seems to be the info, that the source is 29.97 NTSC while in reality it is 23.976.When I make the AVI with DVD2AVI, looks like the program sets FORCE FILM correctly, while framserving (from AviSynth directly) presumes the wrong framerate.
So IMHO when video length (in min) is the same as audio (maybe some lag added), the result should be in sync!? -
I wouldn't use Bitrate Viewer to determine the type of frames. Mine reports interlaced for telecined material
. Use DVD2AVI to determine what type of source your working with. Just hit F5 to preview. If your Frame Type flashes between progressive and interlaced, and your Video Type reports FILM, then your source is probably telecined. Use the FORCE FILM option to ignore the pulldown flags. Your output will be true 23.976 fps.
What does DVD2AVI report when you preview it?Impossible to see the future is. The Dark Side clouds everything... -
Then use the Force Film option. Your output should be 23.976 fps. This is the best possible situation, as your output from DVD2AVI will be progressive, with no interlacing, or artifacts.
Don't stress too much over the reported length you get from a VOB. I would trust the timelength reported by CCE, from your AVS file.Impossible to see the future is. The Dark Side clouds everything... -
That's exactly what I did:I extracted the avis before converting and load them from the script.Guess what
erfect NTSC-PAL conversion, no stuttering/jerky movemants and in -sync.Looks the mpeg (from vob) get the fps wrong (or I used it the wrong way),
What can I tell:ends well, everythings's well.
Avisynth lesson learned and I'm expecting more to come.My next project is to convert/adapt my badframe finder into automatic cutter.
Similar Threads
-
Frame rate conversion for NTSC to PAL conversion?
By Trellis in forum EditingReplies: 33Last Post: 27th Jul 2010, 09:55 -
NTSC video with a film-like/PAL to NTSC conversion type of look that shouldn't
By Bix in forum RestorationReplies: 34Last Post: 8th Feb 2010, 15:17 -
PAL to NTSC, NTSC to PAL framerate conversion?
By Baldrick in forum Video ConversionReplies: 44Last Post: 5th Dec 2009, 23:31 -
PAL to NTSC Conversion with DD
By cottage in forum Video ConversionReplies: 5Last Post: 16th Feb 2009, 16:10 -
NTSC to PAL, PAL to NTSC framerate conversion?
By Baldrick in forum Video ConversionReplies: 23Last Post: 23rd Apr 2008, 11:19