I would like to do the following two things:
- Capture a video of my desktop using VLC media player via the command line. So that I can,
- Create a shortcut that I can use over and over without having to modify output file names using a timestamp (with milliseconds)
output_yyyyddMMhhmmssSS.mp4
I can capture the video of my desktop OK using the VLC user interface... Media > Convert / Save... > Capture Device tab > Capture mode : Desktop > Convert / Save button > Destination : output.mp4. I'm just having trouble formatting the command line to work. I seem to only be able to create an endless loop.
I also don't know how to format the timestamp.
What I'm using:
Command line which is broken (I produce a screen within a screen within a screen...):
vlc screen:// sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=file{no-overwrite},mux=mp4,dst='C:\Temp\output.mp4'}I haven't even gotten to the timestamp part but I saw this when hunting around and the main answer appears to only be the date part. I'm not sure how to add time into the mix:
Please help.