Record Stream Using VLC
I just needed to record a video stream. Usually, I use mplayer for these kinds of jobs, but this time it failed. However, on the internet I found a way to do it using VLC, which apparently has quite a command line interface.
This comment revealed that the VLC media player comes with some command line magic. Of course, not much is documented in the man page, but the user guide on their website seems to be useful.
Long story short, I ended up with the following command to save the stream http://STREAM.mp4
to /tmp/file.mkv
:
Cool.
For the records, here are some alternatives:
Leave a comment
There are multiple options to leave a comment:
- send me an email
- submit a comment through the feedback page (anonymously via TOR)
- Fork this repo at GitHub, add your comment to the _data/comments directory and send me a pull request
- Fill the following form and Staticman will automagically create a pull request for you:
4 comments
Usually, I am using
youtube-dl
. It is a good alternative but only for well-known sites. Check here:https://rg3.github.io/youtube-dl/supportedsites.html
Ah, interesting! I thought
youtube-dl
is just for youtube.. O.oCool, I never thought that VLC could have such useful function. I will try it later. Aside from using VLC, Acethinker Free Screen Recorder is another good choice to do screen recording, it’s my first choice, it’s free and even allows for editing.
This post is useful! p.s. share this article regarding how to record desktop screen with VLC step by step displayed by pictures: https://www.joyoshare.com/record-screen/record-desktop-screen-with-vlc.html I install VLC as well as Joyoshare screen recorder on my computer. Use Joyoshare more often. It can record videos in 720P or 1080P. I can use it to cut recordings, skip unwanted content, set 60FPS, etc.