Page 1 of 1

How to use varible within RunWait command

Posted: 09 Dec 2020, 02:27
by joekingcool
ive tested with percent signs and without around variables, im assuming some kind of syntax. i seen someone else suggest storing the whole command as a variable. but its a little messy.

Code: Select all


Video_Orig_Loc =: Orig\test.mp4
Video_Edited_Loc =: Edited\FFMETADATAFILE

RunWait ffmpeg -i Video_Orig_Loc -f ffmetadata Video_Edited_Loc,,Hide


Re: How to use varible within RunWait command

Posted: 09 Dec 2020, 05:22
by DyaTactic
Assigning a string value to the variables and using precent signs:

Code: Select all

Video_Orig_Loc := "Orig\test.mp4"
Video_Edited_Loc := "Edited\FFMETADATAFILE"

RunWait ffmpeg -i %Video_Orig_Loc% -f ffmetadata %Video_Edited_Loc%,,Hide
Or force RunWait to use an expression:

Code: Select all

Video_Orig_Loc := "Orig\test.mp4"
Video_Edited_Loc := "Edited\FFMETADATAFILE"

RunWait % "ffmpeg -i " Video_Orig_Loc " -f ffmetadata " Video_Edited_Loc,,Hide