Sunday, January 3, 2021

download VIDEO STREAMING tool

 There are many different type of download video streaming tool.  I believe many people used it before, but I still wants to share it to you. 


Before introduce this tool, I would like to teach how to capture video streaming file from browse. I believe from people would know that when I mention about browser you would reflect it to devtool, well that's right. I am using the devtool to teach how to capture the stream, which is pretty good tool to used.


I like to used YouTube as an example, please notice that youtube steaming split the audio and video stream into two part, the file for video will be webm, and audio would be weba. 

Today many web development's security are improvement, some site would not be easy to capture. 

Procedure: 

1. Lauch your site to youtube and click any video you like

2. left click and presss "inspect"

3. go to "network" and go to xhR 

you can see there is a playlist, click on it, you will see the url requst, and content type to make sure it's video type. Note that each pair will have one video one audio stream. 

4. select the url and right click to direct to the page and download it. (downlaod both audio and video)




The next thing I wants to intoduce the tool, whic is FFMPEG, this is an oepnsource tool, but it's not GUI, you need to type this command. This tool is to convert the file to any format you like. If you have a mp4 file, and can also convert to mp3. You don't have to used any other tool. 

Got to this page to download it: https://ffmpeg.org/download.html

You can click on documentation to understand more command. 

I will only teach you 2 command: 

1. convert single file: ffmpeg -i filename xxx.[mp3 or mp4 or any file you want)

ffmpeg -i video.mp4 mysong.mp3

2. convert audio and video and merge into one file. 

ffmpeg -i video.webm -i audio.weba -c:v copy -c:a aac myvideo.mp4

After you know the command, and download ffmpeg tool, put the two file you download from youtube and copy it into the same directory and used the second command will be able to see the video. 

But there is another tool you can use it's much easier, called youtube-dl, command is youtube-dl "youtube url" that's it, you don't need to open devtool.