I am trying to stream / record a video from my webcam. I get it to work by configuring everything via the VLC GUI (e.g. How to record your webcam with VLC).

I have to do this multiple time, so I wonder, if I can "export" the configuration to run it from the command line.

I didn't find anything appropriate in the documentation.


I did not find a solution to "export" the full configuration. But I found the necessary parts, which have to be put together for my use case (recording from webcam).

1) The input query

2) The output query

Which lead to a complete command line string like this:

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" dshow:// :dshow-vdev=Integrated Camera :dshow-adev=Mikrofon (2- High Definition Au :live-caching=300 --sout "#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:file{dst=C:\\test.mp4}"
| improve this answer | |

I only tried the output part for a different conversion task, but I found one can find the options by opening the "Messages" window (Ctrl+M) and increasing the verbosity to 2.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.