| View previous topic :: View next topic |
| Author |
Message |
blenderman
Joined: 12 Oct 2006 Posts: 6
|
Posted: Fri Oct 13, 2006 10:17 am Post subject: Need Variable String in Filname: % |
|
|
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? |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Fri Oct 13, 2006 10:32 am Post subject: |
|
|
Two (documented) ways:
a = video`%d4.jpg
b := "video%d4.jpg" _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
blenderman
Joined: 12 Oct 2006 Posts: 6
|
Posted: Fri Oct 13, 2006 10:34 am Post subject: |
|
|
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... |
|
| Back to top |
|
 |
badmojo
Joined: 11 Nov 2005 Posts: 202
|
Posted: Fri May 15, 2009 3:45 pm Post subject: |
|
|
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" |
|
|
| Back to top |
|
 |
badmojo
Joined: 11 Nov 2005 Posts: 202
|
Posted: Sat May 16, 2009 10:55 am Post subject: |
|
|
| so any ideas why this happens? |
|
| Back to top |
|
 |
|