From VideoLAN Wiki
Jump to navigation Jump to search

oss and alsa audio capture support were removed from v4l and v4l2 in VLC 1.0.0, but accesses were provided as sub-modules. To emulate old behaviour, use --input-slave oss:// or --input-slave alsa://.

In the module options below AOUT_CHANS_FRONT and other variables are defined in include/vlc_es.h. The values are not defined here because of their complexity.

Audio channels in VLC 2.0.1 must be configured manually (bugs) but --alsa-audio-channels defaults to stereo.

The access module option --alsa-format has been deprecated since VLC 2.1.0.

HDMI support is planned for VLC 4.0.0 through the --alsa-passthrough option.


Audio output

Module: alsa
Type Audio output
First VLC version -
Last VLC version -
Operating system(s) Linux
Description ALSA audio output
Shortcut(s) (none)
  • alsa-audio-device <string> : Audio output device (using ALSA syntax) default value: default
  • alsa-audio-channels <integer> : Channels available for audio output. If the input has more channels than the output, it will be down-mixed. This parameter is ignored when digital pass-through is active default value: AOUT_CHANS_FRONT


Module: alsa
Type Access
First VLC version 1.0.0
Last VLC version -
Operating system(s) Linux
Description ALSA audio capture
Shortcut(s) alsa
  • alsa-stereo <boolean> : Stereo default value: enabled
  • alsa-samplerate <integer> 192000, 176400, 96000, 88200, 48000, 44100, 32000, 22050, 24000, 16000, 11025, 8000, 4000 : Sample rate (Hertz) default value: 48000

Source code

This page is part of official VLC media player Documentation (User GuideStreaming HowToHacker GuideModules)
Please read the Documentation Editing Guidelines before you edit the documentation
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.