Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Latest commit

 

History

History
75 lines (47 loc) · 2.87 KB

FAQs.md

File metadata and controls

75 lines (47 loc) · 2.87 KB

FAQs

How to get m3u8 file link ?

Open your browser and visit the website which streams m3u8 media. When video get starts playing right click and inspect the webpage. Go to Network tab and filter m3u8 extension and copy the master or first m3u8 file link. Read More

How to convert .ts to .mp4, .mkv etc. ?

First download and install ffmpeg and then in output flag specify your desired format.

vsdownload save <m3u8 url or file> -o video.mp4

If ffmpeg is not in system binary path then use --ffmpeg-path flag.

vsdownload save <m3u8 url or file> --ffmpeg-path <path to ffmpeg binary> -o video.mp4

How to speed up downloading speed ?

Downloading ts files with more multiple worker threads would be a good option and also using a higher chunk size will reduce the file i/o operations. vsdownload can handle those things by using some flags.

Downloading m3u8 files with 16 threads with 4k chunk size.

vsdownload save <m3u8 url or file> --chunk-size 4096 -t 16 -o video.ts

Downloaded hls stream size in bytes and corrupted ?

This problem arises when vsdownload makes get request to ts file and it returns a bad response body which results in corrupted downloads.

This error maybe caused by incorrect segment url which is auto parsed by vsdownload. You can manually override it by following the given steps.

Steps resolve this error:

  1. Check for m3u8 uri and other ts files uri/s from your browser's network logs or use vsdownload capture command. you will notice a comman url attached to very ts file uri, then note it down as baseurl.
Example:

1. http://videoserver.com/playlist.m3u8
2. http://videoserver.com/stream_0.ts
3. http://videoserver.com/stream_1.ts
4. http://videoserver.com/stream_2.ts

Baseurl (comman url / base endpoint): http://videoserver.com/
  1. After getting a baseurl try to download stream by using this command.
vsdownload save <m3u8 url or file> -b <baseurl> -o video.ts
Example:

vsdownload save http://videoserver.com/playlist.m3u8 -b http://videoserver.com/ -o video.ts
  1. If stream doesn't download till now then you can check few options given below.

Some extra things to try for websites which don't make their hls streams publicly open.

  1. Maintain a connection to server by playing stream in browser or from any other means.
  2. Check for maximum supported parallel connections from server. If it can use more than 1 connection, then streams maybe downloaded by following the above steps.
  3. Use --proxy-address flag.