Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Thread Tools Search this Thread Display Modes
Old 12th October 2012, 00:36   #1  |  Link
OvejaNegra's Avatar
Join Date: Dec 2005
Location: Cuba
Posts: 253
seek to specific frame on specific line on script


Let say i have a script like this on avsp, virtual dub or any other tool:

MPEG2Source("C:\STRW\01.d2v", cpu=0,info=3)
interp = separatefields().eedi2(field=-2)
deint = tdeint(mode=2,edeint=interp)
if i seek to frame 900 (for example) i will see the real frame 900 of the stream (after tfm processing of course)

but if i add TDecimate, since is a decimator after all, the frame 900 will be a different frame now.

i want to seek to the frame 900 BEFORE TDecimate to see the new frame 900 after the decimation, sorry its confusing to explain this in english.

what i want:

if i use ovr on TFM and TDecimate to specify a range of frames as interlaced and video section (let say frames from 1000 to 1400) i want to locate those frames but after the decimation (they wont be the 1000 to 14000 now because TDecimate removes frames before them).
The reason? to bob those frames and change the frame count and timecodes after that.

Of course, in the real world, it wont be a single range, so it wont be that easy as seek and look on avsp.

Or maybe decimate the true film sections to 8 fps (if not pans or real motion of course) and change the timecodes after that, but thats another story.
So, it works or not???
OvejaNegra is offline   Reply With Quote
Old 12th October 2012, 12:46   #2  |  Link
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,412
If you add a call to ShowFrameNumber() before calling TDecimate(), you will see the original frame numbers printed on the output. Then you can use these as a guide to seek to the position you want.
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 12th October 2012, 14:30   #3  |  Link
Registered User
Join Date: Sep 2008
Posts: 304
you could just specify tdecimate(display=true), and tdecimate will show which actual frame it's using and some more useful info.
(i have a tendency to drunk post)
mastrboy is offline   Reply With Quote

avisynth, tivtc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 23:06.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.