![]() |
Avisynth: Command to go to an exact frame or second:msecond ?
Is there a command to go to an exact frame or second:msecond in avisynth? Maybe sampler?
I've been looking for a tool to do screenshots from dvd/mpg. I know players and media player classic and such do screen shots, but I was looking for something that resizes too. I came up with (pseudocode) LoadPlugin("C:\AviSynth 254\plugins\MPEG2Dec3dg.dll")#load specific plugin, stops errors mpeg2source("E:\movie\movie.d2v") #resize SeekFrame (5000) #SeekTime(25:125) BicubicResize(2048,1430) #and then some way to save the frame #probably just screenshot in Mpc. |
Wow I found the frame answer anyway.
OneFrame.avs: LoadPlugin("C:\Avisynth\plugins\MPEG2Dec3dg.dll") mpeg2source("E:\movie\Test.d2v") Frames=framecount() FreezeFrame(0,Frames,5000) #removes all frames from 0 to end #replaces them with frame No. 5000 BicubicResize(2048,1430) #resize HUGE Then just open the avs in MediaPlayerClassic and hit F5 (screenshot), a few secs later and a 11MB bmp is in the folder, picture quality is good, better than photoshops resize!! Just need to seek in MPC for the frame numbers (ctrl-G is goto frame or time) anyone know how to set avisynth to a time offset? |
I have not tried this, but I assume
Frames=(seconds from start)*(fps) will work. |
Quote:
Quote:
|
Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.