Friday, 30 September 2016

How-To Use VLC to Record Video from WebCam

I have spent a few of hours to make use of VLC to record an video from my webcam. This is an how-to guide for my founding so far.

My Environment


How-to Guard

  1. Select Media > Open Capture Device (Ctrl + C), The dialog "Open Media" should appear;
  2. In the dialog "Open Media":
    1. For "Capture Mode", select "DirectShow";
    2. For "Video device name" & "Audio device name", select Webcam from the drop-down list;
    3. Click the button of "Advanced options":
      1. Specify the appropriate ratio for "Picture aspect-ratio n:m" if default value(4:3) is not what you desire. The best ratio for my case is 16:9;
      2. Specify the appropriate frame rate for "Video input frame rate". The best rate for my case is 30;
    4. Click the drop-down list beside the button of "Play", select "Convert" (Alt + O), and then Convert dialog should appear;
  3. In the dialog "Convert":
    1. In the section of "Profile", select appropriate Profile
    2. Specify the output video file location in the section of "Destination file";
    3. Click the button of "Start" to start video-recording;
    4. The captured video should not shown in the screen, but the timing number should be updating during recording;
    5. Click the button of "Stop" to stop recording;

Additional Note

The profiles in the dialog of "Convert" could be edited, copied and deleted. The profile of "Video for Youtube HD" can record videos which work fine for VLC, but lost its sound by Windows 10 built-in film app. To fix this, I made a new profile to use "MPEG 4 Audio (AAC)" for the audio codec.

To enable mp4a encoder (for AAC), we have to set a special value in preference as follows:
  1. Select Tools > Preferences (Ctrl + P), the dialog of "Preferences" should appear;
  2. In the section of "Show settings, select "All" instead of "Simple";
  3. Select "Input / Codecs" > "Video codecs" > "FFmpeg";
  4. Under the section of "Encoding", assign the value of "-2" (default is "0") to "Strict standard compliance";
  5. click the button "Save", and mp4a encoder should work properly now;

References

  1. VLC Media Player Tutorial #12 - How to Record a Video Using VLC and Your Webcam
  2. VLC media player for Windows Troubleshooting: VLC 2.0.7 MPEG 4 Audio (AAC) Encoding (MP4A) 
  3. How to Record Webcam Video using VLC Media Player
  4. Youtube video: know how to record webcam with VLC media player