karesch
7th October 2011, 15:28
I use HV20 footprints with DGDecNV, that are cut and filtered in avisynth then converted to AVC by x264. All footprint files are opened and deinterlaced by DGSource, so the avisynth script sees all the footprints as one file.
The problem is, that the last 3-5 frames of the original footprint files are usually useless, as the last frames are mixtures of the current and the next scenes. (each scene is in a separate file)
So I have to cut out the wrong frames of the footprint files manually, playing through the whole video and placing quite a few trims into the avisynth script; like this:
DGSource("G:\footprint\test.dgi", deinterlace=2, use_pf=true, debug=false)
AssumeFrameBased()
trim(0,1800)+trim(1806,3150)+trim(3155,4400)+trim(4405,6250)+trim(6255,7430)+trim(7435,8896)+...
Could this be somehow automated? Like the script would
open all video files in the given folder,
count the number of frames in the files,
store the number of frames (the length of the file) in a table,
close the file (if needed or applicable, just to save memory),
and open all the files at once with DGSource, do the trimming based on the numbers in the table, and further processing.
I had a quick look at AVSLib, but the steep learning curve scared me a bit.
Any help would be appreciated.
The problem is, that the last 3-5 frames of the original footprint files are usually useless, as the last frames are mixtures of the current and the next scenes. (each scene is in a separate file)
So I have to cut out the wrong frames of the footprint files manually, playing through the whole video and placing quite a few trims into the avisynth script; like this:
DGSource("G:\footprint\test.dgi", deinterlace=2, use_pf=true, debug=false)
AssumeFrameBased()
trim(0,1800)+trim(1806,3150)+trim(3155,4400)+trim(4405,6250)+trim(6255,7430)+trim(7435,8896)+...
Could this be somehow automated? Like the script would
open all video files in the given folder,
count the number of frames in the files,
store the number of frames (the length of the file) in a table,
close the file (if needed or applicable, just to save memory),
and open all the files at once with DGSource, do the trimming based on the numbers in the table, and further processing.
I had a quick look at AVSLib, but the steep learning curve scared me a bit.
Any help would be appreciated.