View Single Post
Old 30th September 2002, 16:23   #18  |  Link
Neoze
Registered User
 
Join Date: Sep 2002
Location: France
Posts: 28
@SILICON

if you want to export a few picture from a clip why not do:
clip=avisource...
picture1=trim(clip,500,-1)
picture2=trim(clip,1500,-1)
picture3=trim(clip,2500,-1)
picture4=trim(clip,3500,-1)
.../...
pictures=picture1+picture2+picture3+picture4
return pictures

and you open your file via tmpgenc and choose file/output to file/sequence

It's possible to automatise the process with tmpgenc with a little script you will name scriptxxx.vbs

dim osh
set osh = wscript.createobject("wscript.shell")
osh.run "C:\PROGRA~1\TMPGEN~2.146\TMPGEnc.exe",0
wscript.sleep 2000
osh.sendkeys "%F{u}"
wscript.sleep 500
osh.sendkeys "{DOWN}"
wscript.sleep 100
osh.sendkeys "{DOWN}"
wscript.sleep 100
osh.sendkeys "{DOWN}"
wscript.sleep 500
osh.sendkeys "{ENTER}"
osh.sendkeys "c:\temp\picture"
wscript.sleep 500

Maybee there is some tmpgenc command line who can do the job?
Or better to drive tmpgenc via dde or objects?
If somebody know a better way to do this job, if will appreciate any suggestion or reading.

Cheers
Neoze is offline   Reply With Quote