Create Video Thumb with random value for timestamp

@runmode:hide

"C:\Program Files\ImageMagick\ffmpeg.exe" -ss 0.5 -i "{filepath}" -vframes 1  -f image2  "{sourcepath}\thumbPrev.png"

Go REFRESH

the above code works but i was trying to create thumb at random time.. so i can chose the thumb.

am not able get this working.

@runmode:hide
set /a num=%random% %%100
"C:\Program Files\ImageMagick\ffmpeg.exe" -ss %num% -i "{filepath}" -vframes 1  -f image2  "{sourcepath}\thumbPrev.png"

Go REFRESH

Make sure the button type is set to MS-DOS Batch Function, and add a line with @externalonly at the top.

@externalonly will make it so the DOS set command is run instead of the Opus one.

This will break the Go REFRESH line, but you should not need that anyway.

1 Like

Hi Leo Thank you
Changing MS-Dos Function and adding @externalonly
works. :slight_smile:
sorry for delayed reply.
last few months have been crazy..

1 Like