What software do you use to view m3u8 files on your mobile phone_m3u8 parsing, transcoding, downloading, and merging

Now most of the videos on the Internet need to be downloaded very troublesome, very few are MP4, most of them are m3u8,

Let's talk about video download first.

pc end:

Open the webpage, click the video to play, open the developer tools, find the network column,

cb3c53d01c84a07903da9c0928b4139b.png

After the entire web page is loaded, you can search at the place indicated in the figure below, search for mp4. or m3u8, after searching, right-click to copy the link,

12ff9d94a6a59fdb0e94ccb7a1278f12.png

Open a new window in the browser and copy the link. If it is a video in mp4 format, you can download it directly. If it is m3u8, find an m3u8 downloader.

Copy the link into it and download it directly. If you are using a downloader, the downloader will directly merge the downloaded videos and transcode them.

Mobile browser:

Open the video webpage on the mobile phone browser. If it is a video playback, you can directly click on the cache, and then it will be downloaded to the local, usually mp4, or m3u8

If it is m3u8, what you will find in the file management is a folder, which contains a file ending with .m3u8, several files ending with .ts, and some files ending with .key.

If the file you downloaded does not have a .key file, you can find any software to merge it, and then convert it to the video format you want. Here is a detailed description of the downloaded file that has a .key file in it.

How to merge videos, first you have to copy the whole folder to your computer, and then open the .m3u8 file with a text editor. Then modify the path inside,

Then download ffmpeg on the computer, then configure the environment variables, then run cmd in the folder of your video, and then run the following code

ffmpeg -i index.m3u8 -vcodec copy -acodec copy 1.mp4

If the operation reports an error, it is recommended to change the suffix of the file ending with .key to .m3u8, and then change the file name corresponding to the key in the previous file ending with .m3u8 to ensure that

Corresponds to the key file in the folder.

Then run the above code, and after the operation is completed, a 1.mp4 file will be generated in the file, which is the decoded and merged file.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324508691&siteId=291194637