Command Prompt (also known as CMD) is a software that is too familiar to Windows users, right.
Born more than 30 years ago, but at present, CMD is still an important tool on Windows operating system, it is very useful and powerful in Microsoft operating system.
We can do a lot of things with this tool, and you can also realize that by the Command Prompt appearing in many tutorials on the blog.
Although PowerShell is said to be a tool with many new and more powerful features, many of them still prefer and use the Command Prompt, simply because of the familiar interface and very simple command usage. easy to understand.
One of the interesting things that you can do with this tool is to use VLC to listen to music using commands in CMD, note that listening to music with VLC, not by CMD: D. How to do it, please also see the article below!
How to use VLC Media Player with Command Prompt
VLC Media Player is one of the best video players for Windows 10 in particular and many other operating systems in general.
With an extremely simple and user-friendly interface, VLC is currently being used by millions of users around the world.
More than just a music player, a video player, this software also does more than that: capture screen videos, convert video formats, trim and edit videos, download and watch videos on Youtube, type remove audio from video, install plugins to expand functionality, …
You may not know, but you can completely use VLC Media Player to listen to music, watch videos on Youtube with just a few commands in that Command Prompt.
This one is quite the opposite because no one is going to use the command to get tired when you can manipulate it faster with the mouse. But if you know, it’s better, isn’t it?
We go into the first one, which is listening to music, watching a video that you have pre-loaded on your computer, ie opening the file. video.mp4
or nhac.mp3
with that VLC.
Perform:
+ Step 1: Before following the instructions your computer must be preinstalled VLC Media Player Okay, if not please go in the VLC home page to install and then continue.
=> Now enter the keyword search box cmd
=> then click on the line Run as Administrator
in the right pane to open a Command Prompt with Admin rights.
Or You can also visit this article to see more ways to open a cmd as administrator.
+ Step 2: Now to use VLC Media Player you need to access the installation directory of this software already, in Windows we use File Explorer, and in Command Prompt and for macOs, Linux uses the command cd
home.
When installing VLC Media Player in Windows 10, if you launch the combo “Next”, its default installation directory will be C:Program FilesVideoLANVLC
If you choose your own path, you must remember it yourself.
After finding the path then use the command cd + đường dẫn
Only, for you to have the default path as I will use the following command:
CD C: Program Files VideoLAN VLC
Finish using the command and see the command prompt from C:WINDOWSsystem32>
turn into the path of VLC then OK, go to the next step.
+ Step 3: At this point, you can use VLC Media Player with Command Prompt already. To watch a video, a song has been downloaded on your computer, use the command in cmd with the syntax:
vlc path-to-file-mp4, mp3, wav,….
Inside:
- vlc is the command that calls out to VLC Media Player.
- And the file path is where you save the * .mp4, * .mp3 file.
=> For example, I have a video of the song Nếu ngày mai không đến - CHILLIES
name is Neu-ngay-mai-khong-den-Chillies.mp4
in the directory Nhac
on the drive C:
then I will use the following command => then press Enter
to run the command:
vlc C: Downloads Neu-tomorrow-no-den-Chillies.mp4
Tip : Leave the video name of the song in the form without accents and special characters, for example you should like day-la-ten-bai-hat.mp4
will make it easier for you to type commands than Đây là tên bài hát.mp4
!
If you correctly type the included command vlc + đường dẫn file .mp4, mp3
Immediately, the video playback window you selected of VLC will appear as shown below.
Otherwise, the error message can not open the file due to the wrong path will appear, you need to review the correct path.
Just saying that, in fact, no one uses this method, just refer to it, but using the mouse is much faster and convenient ?
In addition to opening the video available on the computer’s hard drive by Command Prompt, you can also quickly watch Youtube video with VLC Media Player without having to do as many steps as in the previous tutorial.
The way is extremely simple, you also use the command vlc
But this time, please enter the URL of the video you want to watch on Youtube instead of the MP4 file path as above.
For example, the song HỒNG NHAN
of the JACK
the address on Youtube is https://www.youtube.com/watch?v=8x2NjwwHUbQ
If I want to watch directly on VLC Media with Command Prompt, I will use the command:
vlc https://www.youtube.com/watch?v=8x2NjwwHUbQ
Remember that the Command Prompt must still be in the installation directory of VLC as above, otherwise CMD will error the command “vlc” doesn’t exist.
The above can be a bit complicated, but for watching videos on Youtube with VLC, using Command Prompt is much more convenient. But let’s use the browser to speed up, why don’t you type these commands ?
By default, when you use the two commands above, VLC Media Player will play in windowed mode, if you want to full screen, add --fullscreen
in after each command before Enter
Please.
Epilogue
So I have just finished sharing with you How to open a video with the command CMD with VLC Media Player software to watch videos saved on your computer or watch videos on Youtube.
Pretty interesting too (• ‿ •)
In general, this is just a reference, an example that the Command Prompt can do a lot of things, but it is not feasible to apply this way in practice: D. Hope this article gives you interesting knowledge. Good luck !
CTV: Nguyen Thanh Tung – techtipsnreview
Note: Was this article helpful to you? Don’t forget to rate, like and share with your friends and relatives!
Source: How to open a video by cmd command on Windows 10, using VLC
– TechtipsnReview