7 VLC Command Lines You Need to Know
by Christine Smith • 2024-11-08 17:40:53 • Proven solutions
VLC
- TRY IT FREE TRY IT FREE
- 1. Playing with VLC+
-
- 1.1 Play Blu-Ray Movies
- 1.2 Play DLNA Content
- 1.3 Play Videos in VLC with Airplay
- 1.4 Play YouTube Videos in VLC
- 1.5 Play M2TS with VLC
- 1.6 Play MTS with VLC
- 1.7 Play M4V with VLC
- 1.8 Play MP4 in VLC
- 1.9 Play RTMP with VLC
- 1.10 Play ISO with VLC
- 1.11 Play AVI with VLC
- 1.12 Play WMV with VLC
- 1.13 Play MIDI with VLC
- 1.14 Play 3D Movies with VLC
- 1.15 Play AVCHD with VLC
- 1.16 Play Sopcast in VLC
- 1.17 FLAC Not Playing
- 1.18 MP4 Not Playing
- 1.19 FLV Not Playing
- 1.20 MOV Not Playing
- 1.21 UNDF Not Playing
- 1.22 Use VLC for PS3
- 1.23 VLC Alternative
- 2. Convert & Stream+
- 3. Editing with VLC+
- 4. VLC for Mobile+
- 5. Tips & Tricks+
-
- 5.1 Download VLC 64 bit
- 5.2 VLC Latest Version
- 5.3 Download VLC for Mac
- 5.4 VLC for Windows 7
- 5.5 VLC for Windows 8
- 5.6 VLC Skins
- 5.7 VLC Command Line
- 5.8 VLC as Default Player
- 5.9 Convert CD with VLC
- 5.10 Burn VLC Files to DVD
- 5.11 VLC Web Plugin
- 5.12 Remote Control VLC
- 5.13 VLC Shortcuts
- 5.14 Screen Capture with VLC
- 5.15 Sync VLC Audio
- 5.16 KMPlayer vs. VLC
- 5.17 MPC vs. VLC
- 5.18 MPlayer vs. VLC
- 5.19 VLC Old Version
- 5.20 Snapshots in VLC
- 5.21 Is VLC Safe
- 5.22 Best Torrent Player
- 5.23 How to Control the Speed
- 5.24 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.
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 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
Christine Smith
chief Editor