AutoHotkey Community

It is currently May 26th, 2012, 7:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: October 13th, 2006, 11:17 am 
Offline

Joined: October 12th, 2006, 10:08 am
Posts: 6
Hello,

i need the follwo string in my autohokey script:
video%d4.jpg

(its for ffmpeg video%d4.jpg means video####.jpg)


How i have do declare it?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2006, 11:32 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Two (documented) ways:
a = video`%d4.jpg
b := "video%d4.jpg"

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2006, 11:34 am 
Offline

Joined: October 12th, 2006, 10:08 am
Posts: 6
You are so fast... Thank you very much

And sorry - I don“t found it - for search is % to short and my englisch to poor...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 4:45 pm 
Offline

Joined: November 11th, 2005, 3:13 am
Posts: 202
i'm trying to make some video thumbnails with ffmpeg.exe but i can get only 'thumb14.jpg' instead of 'thumb####.jpg' like what the OP wanted. can someone take a look at my code and tell me what's wrong?

Code:
ffmpegpath=c:\ffmpeg\ffmpeg.exe
SeekTime=250

FileSelectFile, InputFile, 3, , Select the video file, AVI (*.avi)
if InputFile =
    MsgBox, The user didn't select anything.
else
{
ffthumb=%ffmpegpath%%A_Space%-i%A_Space%"%InputFile%"%A_Space%-vcodec mjpeg -vframes 1 -an -f image2
ffthumb=%ffthumb%%A_Space%-ss%A_Space%%SeekTime%
ffthumb=%ffthumb%%A_Space%thumb`%d4.jpg

SplitPath, Output, InputFile, getDir, getExtension, getNameNoExt, getDrive
RunWait, %ffthumb%, %getDir%, UseErrorLevel
If ErrorLevel <> ERROR
  TrayTip,, Thumbnail successfully created.,,1
}


this is what i wanted to put in the script:
Quote:
ffmpeg.exe" -i "inputfile" -vcodec mjpeg -vframes 1 -an -f image2 -ss 250 "thumb%d4.jpg"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2009, 11:55 am 
Offline

Joined: November 11th, 2005, 3:13 am
Posts: 202
so any ideas why this happens?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Azevedo, perlsmith and 67 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group