I am trying to start VLC using command line arguments in order to record the screen activity. The recording duration will be variable : between 2 h and 3 h. One image per second is enough. It should start as soon as a user opens a windows session and should stop as soon as soon as he logs out.
The following code produces a valid mp4 file :
Code: Select all
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" screen:// --no-one-instance --screen-follow-mouse --screen-fps=1 --no-audio --sout "#transcode{vcodec=h264,vb=400,fps=1,scale=1,width=auto,height=auto,acodec=none}:duplicate{dst=std{access=file,mux=mp4,dst='Test.mp4'}}"
I am stuck there. I feel that VLC does not close itself right when I use vlc://quit and --start-time=0 --run-time=30 --stop-time=30. Could it be that some kind of recording buffer is lost when VLC quits ?"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" screen:// -I dummy --dummy-quiet --no-one-instance --screen-follow-mouse --screen-fps=1 --no-audio --start-time=0 --run-time=30 --stop-time=30 --sout "#transcode{vcodec=h264,vb=400,fps=1,scale=1,width=auto,height=auto,acodec=none}:duplicate{dst=std{access=file,mux=mp4,dst='Test.mp4'}}" vlc://quit
Do you have any suggestions ? Am I doing something wrong ? Thanks in advance.