Page 1 of 1

Auto filename in command line

Posted: 23 Apr 2020 14:56
by Andrei Iosifescu
I am using a script which is streaming the video from an IP camera to a file (rec.mp4). I want, if possible, to create a new filename every time I start the script, like rec-date-time. This is the script

Code: Select all

vlc -vvv "http://86.127.212.113/control/faststream.jpg?stream=mxpeg" --sout=#transcode{vcodec=h264,scale=Automat,scodec=none}:file{dst=C:\\Users\\my username\\Videos\\rec.mp4,no-overwrite} :no-sout-all :sout-keep
.