62

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)?

surfmuggle
  • 275
  • 3
  • 5
  • 18
Suzan Cioc
  • 2,543
  • 12
  • 38
  • 52

3 Answers3

60

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
  • 2,284
  • 25
  • 27
  • 7
    I 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 May 09 '15 at 22:07
  • 4
    `SharedX` 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 –  Jan 28 '16 at 17:59
  • 5
    `Change 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 Aug 26 '16 at 03:34
  • 2
    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 Dec 19 '16 at 14:45
  • 1
    Best advice I got in my entire life, thanks. Great program. – Faruk D. Feb 27 '20 at 17:12
  • @cheekybanana - it's a great app and everything... but dude you need to get out more often. Just saying. ;-) – ashleedawg Nov 10 '22 at 21:24
19

(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
  • 455,459
  • 31
  • 526
  • 924
  • 1
    Just 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 May 24 '15 at 21:59
  • @Jammer: Start a new post, detailing your setup and the exact problem you are encountering. – harrymc May 25 '15 at 07:26
  • @harrymc: we need to capture audio input and audio output too, how? – YumYumYum Sep 02 '15 at 08:49
  • @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 Oct 18 '19 at 17:44
1

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
  • 151
  • 1
  • 11