# rename this file to something.avs # Avisynth 2.5 script to subtitle HDV frames with time/date/camera info # by John Beale Feb. 2007 # requires two plugins: DGDecode (DGMPGDEC) http://neuron2.net/dgmpgdec/dgmpgdec.html # and HDVInfo from http://forum.doom9.org/showthread.php?t=110021 # also requires d2v info file to be created from .m2t using DGIndex (from DGMPGDEC) LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll") # MPEG2source LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\hdvinfo.dll") # hdvinfo file="C:\your_filename.d2v" # d2v info file from DGIndex.exe MPEG2source(file) # open the video content BilinearResize(1920,1080) # optional: expand HDV to square pixels, from native 1440x1080 HDVInfo(file, size=50, align=2, text_color=$c0c0ff, rec_format="%d %b %Y %X", data_code=TRUE ) # insert timestamp / data subtitle # HDVInfo(file, size=50, align=2, rec_format="%d %b %Y %X") # insert timestamp but no camera data