Page 1 of 1

ERROR: VLC command-line help

Posted: 10 Feb 2024 01:55
by NOYB
The VLC command-line help section, "Transcode stream output (stream_out_transcode)", "Audio:", says...
--sout-transcode-samplerate=<integer [0 .. 48000]>
Audio sample rate
Sample rate of the transcoded audio stream (11250, 22500, 44100 or
48000).

Believe that to be in error. When using 11250 or 22500 the VLC player codec indicates 44100 Hz sample rate.
Using 11025 or 22050 appears to work correctly (factors 2 and 4 of 44100).

Example (Windows batch script):

Code: Select all

START "Some Stream" /B "C:\Program Files\VideoLAN\VLC\vlc.exe" -I null ^ dshow:// ^ :dshow-vdev=none ^ :dshow-adev="Line In" ^ :dshow-audio-channels=1 ^ :live-caching=300 ^ --sout "#transcode{vcodec=none,vb=0,scale=1,acodec=mp3,ab=64,channels=1,samplerate=11025,scodec=none} :standard{access=http,mux=mp3,dst=xyz:65535/Some_Stream}" ^ :sout-all :sout-keep ^ --one-instance

VLC command-line help:
https://wiki.videolan.org/VLC_command-line_help/

VLC media player
3.0.20 Vetinari

Re: ERROR: VLC command-line help

Posted: 10 Feb 2024 11:14
by RĂ©mi Denis-Courmont
Yes, this is a mistake in the command line help. It has no consequences on the actual functionality