I don't need help to generating a random number to add to a file name because there are many ways and I know a few methods of doing so. However, I am particularly interested in the double dollar sign '$$'.
for example, I wanted to make a few short clips from a video and I wanted the filename to have a random number for each filename.
Quote:
ffmpeg -i video.mp4 -t 300 -vcodec copy -acodec copy out-$$.mp4
|
it created a file called out-28079.mp4
When I ran the code again to generate another file, ffmpeg complain
Quote:
File 'out-28079.mp4' already exists. Overwrite ? [y/N]
|
I though the double $$ sign always generate a new random number on each execution. Am I using the $$ characters wrong?
For now, I have to use the other methods for a random number.