Disable audio when playing or streaming video with VLC

Sometimes, you don’t want to play audio from the input, you can disable it easily via command-line by adding the option –no-audio,

$ vlc video.mp4 — no-audio

Specifically, it is useful for playing from camera, you don’t need sound and want to make an output for streaming, such as RTSP…you will need to add acodec=none to the transcode module.

$ vlc v4l2:///dev/video0 --sout ‘#transcode{acodec=none,vcodec=h264}:rtp{mux=ts,sdp=rtsp://IP:PORT/cam.sdp}’

That’s it, VLC will remove audio stream while streaming.