Page 1 of 1

How can I see what I'm recording?

Posted: 28 Apr 2022 21:08
by Telerin
On Windows 10 I use a batch to open the webcam and start a recording. But while it is recording, the VLC interface shows black. How can I see what is being recorded at the same time on the VLC screen? This is the command line:

Code: Select all

vlc -Idummy -vvv dshow:// :dshow-vdev="myWebCam" :dshow-adev :live-caching=300 --sout=#transcode{vcodec=h264,vb=512}:std{access=file,dst="miVideo.mp4"}
I have tried the following, but the interface appears black:

Code: Select all

vlc dshow:// :dshow-vdev="myWebCam" :dshow-adev :live-caching=300 --sout=#transcode{vcodec=h264,vb=512}:std{access=file,dst="miVideo.mp4"}

Re: How can I see what I'm recording?

Posted: 28 Apr 2022 21:55
by unidan
Hi, untested but you can do that with duplicate and display:

Code: Select all

vlc -Idummy -vvv dshow:// :dshow-vdev="myWebCam" :dshow-adev :live-caching=300 --sout='#transcode{vcodec=h264,vb=512}:duplicate{dst=display,dst=std{access=file,dst="miVideo.mp4"}}'

Re: How can I see what I'm recording?

Posted: 29 Apr 2022 01:42
by Telerin
Dont works

Re: How can I see what I'm recording?

Posted: 29 Apr 2022 09:07
by unidan
You can try in the reverse order then:

Code: Select all

--sout='#duplicate{dst=display,dst=transcode{vcodec=h264,vb=512}}:std{access=file,dst="miVideo.mp4"}'

Re: How can I see what I'm recording?

Posted: 29 Apr 2022 10:03
by Telerin
Perfect, that instruction works, thanks!

Code: Select all

vlc dshow:// :dshow-vdev="miWebCam" :dshow-adev :live-caching=300 --sout=#duplicate{dst=display,dst=transcode{vcodec=h264,vb=512}}:std{access=file,dst=C:\miVideo.mp4"}

Re: How can I see what I'm recording?

Posted: 29 Apr 2022 14:07
by unidan
You're welcome, you made me realize it wasn't documented on the new documentation project : https://docs.videolan.me/vlc-user/3.0/e ... streaming/