figured out solution to question 1: timeout 15 cvlc -I dummy screen:// --screen-fps=30 --quiet --sout "#transcode{vcodec=h264}:standard{access=file,mux=mp4,dst="screeb.mp4"}" --run-time=10 this command will run vlc for 15 second, and record the first 10 second. still looking for ...