How to capture screen video (with audio) using VLC media player?

45

16

The steps below do sometimes result in a partial file which can't be played or some file without sound.

  1. Click Media -> Stream -> Capture Device -> Capture Mode = Desktop -> Stream
  2. Then select destination File = test.mp4, leaving Profile = Video - H.264 + MP3 (MP4) intact, and setting FPS=24.
  3. Then press Stream button again. FLV player starts to count time, although Record button looks not pressed.
  4. Then I do some playback of web videos and window manipulations.
  5. Then press Stop button on VLC player.

How to perform complete task? Where is the audio capture setup (what device to capture)?

Suzan Cioc

Posted 2013-06-26T08:27:10.037

Reputation: 2 103

Answers

45

Ok, this isn't about VLC but I'm guessing the real question is "How do I easily record my desktop, with audio, preferably with a free open source app?"

I gave up on obscure VLC command lines and found another piece of software called ShareX, which is free and open source.

It's pretty easy:

  1. Download and install ShareX.
  2. Run it and click Capture->Screen Recording...
  3. It asks you if you want to automatically download ffmpeg.exe, say yes.
  4. Next go to Task Settings->Capture->Screen recorder->Options
  5. Change the video source to screen-capture-recorder (it's a bit fast in my experience), and the audio source to your microphone (or whatever).
  6. Use Capture->Screen Recording again.
  7. It will now even let you select the area of the screen to record!

This is much nicer than VLC. The only downside is that the colours seem a bit off for me - less bright than they actually were. I'm not overly bothered though.

Edit

In recent versions you can hold Shift to do square recordings and Alt to snap to common resolutions.

Timmmm

Posted 2013-06-26T08:27:10.037

Reputation: 1 530

6I can't thank you enough -- your instructions are 100% easy to follow, I was setup in 2 minutes after searching previously for about an hour to find a good screen recording program. You made my day! – degenerate – 2015-05-09T22:07:52.367

3SharedX is the best program for your quick video and audio capturing. I've tested several free hyped programs, like CamStudio, Ezvid and some more, all of them had the audio problem. SharedX worked instantly, with perfect FPS and flawless system sound. Thanx – None – 2016-01-28T17:59:15.973

3Change the video source to screen-capture-recorder <-- looks like you have to click the button Install recorder devices before it appears in that list – wal – 2016-08-26T03:34:42.080

1

ShareX could not download ffmpeg (I'm behind a firewall), so I had to install it by hand. Download from https://ffmpeg.org/download.html, unzip and copy ffmpeg.exe to My Documents\ShareX\Tools Now it works nicely!

– Steve Pitchers – 2016-12-19T14:45:27.490

Best advice I got in my entire life, thanks. Great program. – cheekybanana – 2020-02-27T17:12:18.063

15

(Note: Answer dates from 2014, so better methods may exist today.)

From how to use VLC to stream your desktop live (windows) with audio (or stream a DVD) :

VLC by default comes with a "screen input" option, to capture the desktop. Unfortunately it appears there’s a bug (status: closed wontfix), so currently it can only capture video.

The solution is to use DirectShow as an alternative input. With Directshow, you can choose your video and your audio input device separately, and they do work together out of the box.

So first go and download the direct show screen capture input filter from here.

Next setup your sound card to be able to capture wave out. If it is not there as an option then you may find some helpful notes here.

Now open VLC, choose Media menu -> Stream -> Capture Device tab. Set Capture mode to "Directshow", set Video device name to "screen-capture-recorder", and set Audio device name to "virtual-audio-capturer".

Now click on "stream" and follow instructions.

harrymc

Posted 2013-06-26T08:27:10.037

Reputation: 306 093

1Just tried this and VLC Bombs immediately. Simply cannot get VLC to do a screencast with audio, fails everytime. I downloaded the latest Video Filter from the link you included. – Jammer – 2015-05-24T21:59:46.907

@Jammer: Start a new post, detailing your setup and the exact problem you are encountering. – harrymc – 2015-05-25T07:26:12.330

@harrymc: we need to capture audio input and audio output too, how? – YumYumYum – 2015-09-02T08:49:10.647

@harrymc I'm on windows10 can't same options as http://betterlogic.com/roger/2010/07/how-to-setup-your-sound-system-to-record-what-you-hear/

– user75875 – 2019-10-18T17:44:41.183

1

Step 1: In capture mode, there will be three options, Directshow, TV digital, and desktop. You have to choose desktop from there.

Step 2: In desired frame rate for the capture, there will be 1 frame per second, modify it and make it 10 frames per second or 15 fps.

Step 3: On the third menu, click on show more options. It will display advanced menu bar there. If you want to play any audio files synchronously with your recording, you can click on play another media synchronously and choose files from your local drive to play with your screen recording.

Step 4: Click on the dropdown menu shown at the play button and click on convert option from there. - See more at: How to article and YouTube Tutorial

Bhavesh

Posted 2013-06-26T08:27:10.037

Reputation: 39

0

Advice to Ubuntu 18 users: use KAZAM. VLC is excellent, but for capturing video and audio KAZAM is the right tool.

sudo apt install kazam

Beto Aveiga

Posted 2013-06-26T08:27:10.037

Reputation: 141

The kazam homepage shows 2014 as the latest release date for kazam.

– shadi – 2019-09-12T05:13:06.770

But indeed I just tried it and it does the job perfectly :) – shadi – 2019-09-12T05:19:32.730

Yeah @shadi it works :) – Beto Aveiga – 2019-09-12T15:31:14.897