Documentation:Modules/alsa: Difference between revisions

From VideoLAN Wiki
Jump to navigation Jump to search
Create page marked up/adapted from source code/changelog
 
m Move shortcut(s) to template
 
Line 8: Line 8:


HDMI support is planned for VLC 4.0.0 through the <code>--alsa-passthrough</code> option.
HDMI support is planned for VLC 4.0.0 through the <code>--alsa-passthrough</code> option.
The audio output module has no shortcut. The access module has a shortcut of <code>alsa</code>.


== Options ==
== Options ==
=== Audio output ===
=== Audio output ===
{{Module|name=alsa|type=Audio output|os=Linux|description=[[ALSA]] audio output}}
{{Module|name=alsa|type=Audio output|os=Linux|description=[[ALSA]] audio output|sc=none}}
{{Option
{{Option
|name=alsa-audio-device
|name=alsa-audio-device
Line 29: Line 27:


=== Access ===
=== Access ===
{{Module|name=alsa|type=Access|first_version=1.0.0|os=Linux|description=[[ALSA]] audio capture}}
{{Module|name=alsa|type=Access|first_version=1.0.0|os=Linux|description=[[ALSA]] audio capture|sc=alsa}}
{{Option
{{Option
|name=alsa-stereo
|name=alsa-stereo

Latest revision as of 05:46, 16 May 2019

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.

Options

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

Access

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 Guide • Streaming HowTo • Hacker Guide • Modules)
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.