AniSmall for iOS
Convert and compress videos/audios.
Wondershare UniConverter
Enriched with 20+ lightweight features, we offer an ultra-high-speed video converter and compressor designed to process 4K/8K/HDR files.
  • Accelerated GPU conversion for high-resolution videos/audios/images.
  • Easier 8K video compression, less quality loss.
  • Empowered with 9 AI features, efficiently processing files.

7 VLC Command Lines You Need to Know

by Christine Smith • 2024-01-11 10:25:33 • Proven solutions


1. Playing with VLC+
  1. 1.1 Play Blu-Ray Movies
  2. 1.2 Play DLNA Content
  3. 1.3 Play Videos in VLC with Airplay
  4. 1.4 Play YouTube Videos in VLC
  5. 1.5 Play M2TS with VLC
  6. 1.6 Play MTS with VLC
  7. 1.7 Play M4V with VLC
  8. 1.8 Play MP4 in VLC
  9. 1.9 Play RTMP with VLC
  10. 1.10 Play ISO with VLC
  11. 1.11 Play AVI with VLC
  12. 1.12 Play WMV with VLC
  13. 1.13 Play MIDI with VLC
  14. 1.14 Play 3D Movies with VLC
  15. 1.15 Play AVCHD with VLC
  16. 1.16 Play Sopcast in VLC
  17. 1.17 FLAC Not Playing
  18. 1.18 MP4 Not Playing
  19. 1.19 FLV Not Playing
  20. 1.20 MKV Not Playing
  21. 1.21 MOV Not Playing
  22. 1.22 UNDF Not Playing
  23. 1.23 Use VLC for PS3
  24. 1.24 VLC Assistant
  25. 1.25 VLC Alternative
2. Convert & Stream+
  1. 2.1 VLC Streamer
  2. 2.2 Stream From VLC to TV
  3. 2.3 VLC Video Converter
  4. 2.4 vlc to mp3
  5. 2.5 VLC to MP4
  6. 2.5 Convert FLAC to MP3 with VLC
3. Editing with VLC+
  1. 3.1 Edit vidoe Using VLC
  2. 3.2 Rotate Video Using VLC
  3. 3.3 Cut Video Using VLC
  4. 3.4 Lopp Videos in VLC
  5. 3.5 Adjust & Sync VLC Subtitle
4. VLC for Mobile+
  1. 4.1 VLC for iOS
  2. 4.2 VLC for iPad
  3. 4.3 VLC for Windows Phone
5. Tips & Tricks+
  1. 5.1 Download VLC 64 bit
  2. 5.2 VLC Latest Version
  3. 5.3 Download VLC for Mac
  4. 5.4 VLC for Windows 7
  5. 5.5 VLC for Windows 8
  6. 5.6 VLC Skins
  7. 5.7 VLC Command Line
  8. 5.8 VLC as Default Player
  9. 5.9 Convert CD with VLC
  10. 5.10 Burn VLC Files to DVD
  11. 5.11 VLC Web Plugin
  12. 5.12 Remote Control VLC
  13. 5.13 VLC Shortcuts
  14. 5.14 Screen Capture with VLC
  15. 5.15 Sync VLC Audio
  16. 5.16 KMPlayer vs. VLC
  17. 5.17 MPC vs. VLC
  18. 5.18 MPlayer vs. VLC
  19. 5.19 VLC Old Version
  20. 5.20 Snapshots in VLC
  21. 5.21 Change XBMC to VLC
  22. 5.22 Is VLC Safe
  23. 5.23 Best Torrent Player
  24. 5.24 How to Control the Speed
  25. 5.25 VLC Player Doesn't Have Sound

VLC is one of the most loved media players out there. Free, open source and compatible with almost every operating system, it can do almost everything that one expects it to do and sometimes even more. However, there is something that makes VLC even more special on Linux-the command line. The command line lets you bypass the graphical interface of VLC and makes it very easy to create and use scripts to get what you want done from the media player. We are going to go through 7 of such command lines that you must know.

Command Line 1: Starting VLC via Command Line to Play A Video as Desktop Wallpaper

"C:Program Files (x86)VideoLANVLCvlc.exe" rel="nofollow" --qt-start-minimized --video-wallpaper --no-video-title-show --repeat "C:DownloadsTutorial.mp4"

In this command, replace the paths C:Program Files (x86)VideoLANVLCvlc.exe (default location of VLC Media Player) and C:DownloadsTutorial.mp4(location of the video file) with the ones that are appropriate for your computer.

vlc command line

Command Line 2: How to Capture A Screencast Using VLC Command Line

c:path ovlc.exe screen:// :screen-fps=24 :screen-follow-mouse :screen-mouse-image="c:tempmousepointerimage.png" :sout=#transcode{vcodec=h264,venc=x264{scenecut=100,bframes=0,keyint=10}, vb=1024,acodec=none,scale=1.0, vfilter=croppadd{cropleft=0,croptop=0,cropright=0,cropbottom=0}}: duplicate{dst=std{mux=mp4,access=file,dst="c:tempscreencast.mp4"}}

Please note that this is a long command as you can see and the whole things is one single line. So you have to copy & paste it or type it exactly the same way for it to work. The sections that you may have to change are as follows:

  • c:pathtovlc.exe: You can change this to the actual path to your vlc.exe file as on your computer.
  • :screen-fps=24: This one is simple, set this to your choice of the frames-per-second rate you want to record with.
  • :screen-follow-mouse: This will record the the mouse pointer as well. You may exclude this section if you do not want the mouse pointer recorded in your screencast.
  • :screen-mouse-image: If recording the mouse pointer too, this little piece of command will fetch the pointer image as you want.
  • vb=1024: This is used to set the bitrate you want to record with. Remeber, that a higher bitrate produces better quality video but with a larger file size (also, this will work combined with the fps value). Values of 1500 / 2048 are the recommended ones for improved quality.
  • :scale=1.0: This value helps in reducing or enlarging your video proportionally. A value of 0.5 would help in creating a screencast of your desktop in a scaled down to half-size version, for example.
  • cropleft,croptop,cropright,cropbottom: This is the set of values that will determine the pixel size of the crop areas. If you choose to set it to 0, it will capture your complete desktop. And, let's say that you decide to set cropleft to 100, then the recorded desktop will end up being with cropped out width from the left side of your desktop by 100 pixels exactly.
  • dst="": This indicates the complete path and the file name of the video you are creating.

Command Line 3: How to Play Only A Part from A Video with VLC Command Line

start "C:Program FilesVLCvlc.exe" rel="nofollow" "D:MoviesThe Italian Job.avi" --start-time 12 --stop-time 20

You simply have to use the command line as given above, with the file paths and the time changed as needed. The numbers 12 and 20 in the command line indicate 12 seconds and 20 seconds respectively.

We also suggest an amazing alternative for this since not all of us would be comfortable using command lines to get these results. The way out for those who prefer a less complicated means to achieve this would be using Wondershare UniConverter (originally Wondershare Video Converter Ultimate)instead.


Wondershare UniConverter (originally Wondershare Video Converter Ultimate) - Your Complete Video Toolbox

  • Play what VLC cannot play, one player to play all!
  • Converts files 120x faster than other converters.
  • Convert to fast all Formats Including 4K/3D.
  • Edit, Enhance & Personalize Your Videos File.
  • Download videos from 1000+ video sharing sites.
  • Record streaming online videos or screens.
  • Burn & Customize your video to DVD with free DVD menu templates.
  • Best video converter for Apple TV, Samsung TV, LG TV, etc.

Command Line 4: Capture Video from VLC Command Line with A Stop Time

cvlc -vvv rtp://address:port --start-time=00 --run-time=300 --sout file/ts:test.ts

Adjust the run-time to the time in seconds you want the video to be captured.

Command Line 5: Using VLC to Record MP3 Streams

vlc --sout "#duplicate{dst=std{access=file,mux=raw,dst=C:OUT.mp3}" --stop-time 10

You only have to change the file path accordingly to your choice and can even include the line --stop-time 10 to control how much of the file do you want recorded.

Command Line 6: Make VLC Stop Automatically after Recording

vlc --sout "#duplicate{dst=std{access=file,mux=raw,dst=C:OUT.mp3}" --stop-time 10 vlc://quit

In order to make VLC stop / quit after the recording is over, just add this small section vlc://quit to the end of the above command line.

Command Line 7: Run VLC from the Command Line on Mac OS X and Stream Internet Radio (Such as Radio Paradise)

#!/usr/bin/env bash
/Applications/ -I rc "$@"

You may also make this executable after having saved it to /usEr/local/bin-chmod +x /usr/local/bin/vlc

Or, try to run it with VLC inside the Terminal-vlc

In case the audio starts skipping, you may use the option of direct stream-vlc

Another option is to use the Ogg stream-vlc

vlc command line

Christine Smith

Christine Smith

chief Editor

Resource > VLC Users > 7 VLC Command Lines You Need to Know

All Topics