7 VLC Command Lines You Need to Know

VLC

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
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
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 iPhone
  4. 4.4 VLC for Android
  5. 4.5 VLC for Windows Phone
5. VLC Assistant+
  1. 5.1 VLC Assistant
  2. 5.2 VLC Alternative
6. Tips & Tricks+
  1. 6.1 Download VLC 64 bit
  2. 6.2 VLC Latest Version
  3. 6.3 Download VLC for Mac
  4. 6.4 VLC for Windows 7
  5. 6.5 VLC for Windows 8
  6. 6.6 VLC Skins
  7. 6.7 VLC Command Line
  8. 6.8 VLC as Default Player
  9. 6.9 Rip CD with VLC
  10. 6.10 Burn VLC Files to DVD
  11. 6.11 VLC Web Plugin
  12. 6.12 Remote Control VLC
  13. 6.13 VLC Shortcuts
  14. 6.14 Screen Capture with VLC
  15. 6.15 Sync VLC Audio
  16. 6.16 KMplayer vs VLC
  17. 6.17 MPC vs VLC
  18. 6.18 MPlayer vs VLC
  19. 6.19 VLC Old Version
  20. 6.20 Snapshots in VLC
  21. 6.21 Change XBMC to VLC
  22. 6.22 Is VLC Safe

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" --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" "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 Video Converter Ultimateinstead.

box

Wondershare Video Converter Ultimate - Your Complete Video Toolbox

  • Play what VLC cannot play, one player to play all!
  • Converts files 30x 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 screen.
  • Burn & Customize your video to DVD with free DVD menu templates.
  • Streaming your Media to TV.

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 http://mp3.live.tv-radio.com/fip/all/fiphautdebit.mp3 --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 http://mp3.live.tv-radio.com/fip/all/fiphautdebit.mp3 --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/VLC.app/Contents/MacOS/VLC -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 http://www.radioparadise.com/m3u/aac-128.m3u

In case the audio starts skipping, you may use the option of direct stream-vlc http://stream-tx4.radioparadise.com:80/aac-128

Another option is to use the Ogg stream-vlc http://stream-sd.radioparadise.com/rp_192m.ogg

vlc command line

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

All Topics

Top