VLC Record from Webcam and Save to File - Windows Command Line

About encoding, codec settings, muxers and filter usage
ohanlon
New Cone
New Cone
Posts: 3
Joined: 28 May 2019 17:35

VLC Record from Webcam and Save to File - Windows Command Line

Postby ohanlon » 28 May 2019 18:06

Hello, I am trying to record a video from a camera and save the recording to a file, using the command line on Windows.
(My comprehension of the vlc documentation is poor at best, and I need some help figuring this out.)

I can get VLC up, displaying my camera, and recording using the command:

Code: Select all

vlc dshow:// :dshow-vdev="USB2.0 Camera"
I tried a number of variations of the command:

Code: Select all

vlc dshow:// :dshow-vdev="USB2.0 Camera" --sout "#std{mux=ts,access=file,C:\Users\username\Documents\video.avi}"
This results in VLC starting but unable to display my camera and no recording taking place. Additionally, no file is created. (I have tried multiple code paths, also.)

What am I doing wrong?
Thanks!

--
VLC version 3.0.6
Windows 10

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: VLC Record from Webcam and Save to File - Windows Command Line

Postby mederi » 29 May 2019 11:06

Stream wizard can help you: Media > Stream...

Christoffel
New Cone
New Cone
Posts: 3
Joined: 31 May 2019 10:50

Re: VLC Record from Webcam and Save to File - Windows Command Line

Postby Christoffel » 31 May 2019 13:21

I use this to record a live stream IP camera
--sout=#transcode{vcodec=h264}:std{access=file,dst='c:\aaa\temp.mp4'}

According to the Stream wizard this should record and display but it only record don't display
--sout=#transcode{vcodec=h264}:std{access=file,dst='c:\aaa\temp.mp4'} :display :sout-keep

Hope it helps

ohanlon
New Cone
New Cone
Posts: 3
Joined: 28 May 2019 17:35

Re: VLC Record from Webcam and Save to File - Windows Command Line

Postby ohanlon » 04 Jun 2019 16:24

SOLVED

I got it working using:

Code: Select all

vlc dshow:// :dshow-vdev="USB2.0 Camera" --sout file/avi:test.avi --run-time=5

Nickolas1979
New Cone
New Cone
Posts: 1
Joined: 15 Jul 2019 05:24

Re: VLC Record from Webcam and Save to File - Windows Command Line

Postby Nickolas1979 » 24 Jul 2019 22:04

Stream wizard can help you: Media > Stream...


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: Google [Bot] and 15 guests