Log in

View Full Version : Remove pulldown - FPS changes when audio is included.


broxburn
27th November 2008, 17:19
Removing pulldown from OTA HDTV transport stream.
Demuxed by Dgindex.

This script loaded into VirtualDub reports the video is 29.97

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
Mpeg2Source("C:\ch 62.d2v")
Video=Mpeg2Source("C:\ch 62.d2v")
Video=Video.Telecide()
Video=Video.Decimate()
LanczosResize(720,368,0,2,1920,1076)
AddBorders(0,56,0,56)

If I add the lines for audio to the script, the video is reported as 23.976:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
Mpeg2Source("C:\ch 62.d2v")
Video=Mpeg2Source("C:\ch 62.d2v")
Video=Video.Telecide()
Video=Video.Decimate()
audio=NicAC3Source("C:\ch 62 PID 034 3_2ch 384Kbps DELAY -302ms.ac3")
audiodub(video, audio)
DelayAudio(-0.302)
LanczosResize(720,368,0,2,1920,1076)
AddBorders(0,56,0,56)

Also loading the second script into DVD Flick, it re-applies pulldown.

Guest
27th November 2008, 17:30
No. In the first script you IVTC'ed to the clip Video, but you returned the implicit clip 'last', which is just the unmodified source. And you opened the source twice! Change the script to this:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
Mpeg2Source("C:\ch 62.d2v")
Telecide()
Decimate()
LanczosResize(720,368,0,2,1920,1076)
AddBorders(0,56,0,56)

or the more verbose:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
Video=Mpeg2Source("C:\ch 62.d2v")
Video=Video.Telecide()
Video=Video.Decimate()
Video=Video.LanczosResize(720,368,0,2,1920,1076)
Video=Video.AddBorders(0,56,0,56)
return Video

Your second clip also opens the source twice.

broxburn
27th November 2008, 18:53
Thank you - much obliged.