Quantcast Avisynth: Command to Go to an Exact Frame or Second:Msecond ? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
04-29-2004, 01:49 AM
Fluffbutt Fluffbutt is offline
Free Member
 
Join Date: Apr 2004
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
|
Meeow!
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
04-29-2004, 03:29 AM
Fluffbutt Fluffbutt is offline
Free Member
 
Join Date: Apr 2004
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
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?
__________________
|
Meeow!
Reply With Quote
  #3  
04-29-2004, 09:25 PM
Peter1234 Peter1234 is offline
Free Member
 
Join Date: Feb 2003
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
I have not tried this, but I assume
Frames=(seconds from start)*(fps)
will work.
Reply With Quote
  #4  
04-29-2004, 09:58 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Peter1234
I have not tried this, but I assume
Frames=(seconds from start)*(fps)
will work.
Not in this way, but:
Quote:
LoadPlugin("C:\Avisynth\plugins\MPEG2Dec3dg.dll")
mpeg2source("E:\movie\Test.d2v")
Frames=framecount()
fps=Framerate()
Freeze=fps*[seconds from start]
FreezeFrame(0,Frames,Freeze) #removes all frames from 0 to end
#replaces them with frame = Freeze Results
BicubicResize(2048,1430)
#resize HUGE
[seconds from start]: You must to set this value (without brackets).
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Nero won't show exact file size oxycotton420 Authoring VCD, DVD, Blu-ray 6 06-25-2004 06:25 PM
Avisynth: Frame server source in AVS? Hydeus Avisynth Scripting 2 03-17-2004 04:43 PM
Avisynth 2.52 frame size problems cruz Avisynth Scripting 6 11-11-2003 12:01 PM
BBMpeg: Calculate exact output size? azel Video Encoding and Conversion 3 07-22-2003 06:15 PM
KVCD: how do i keep the exact aspect ratio of the dvd? Adder Video Encoding and Conversion 0 01-25-2003 08:42 PM




 
All times are GMT -5. The time now is 05:54 AM  —  vBulletin © Jelsoft Enterprises Ltd