panzi / get_video_from_m3u

Downloads MPEG-TS chunks from a m3u playlist.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_video_from_m3u

This script downloads MPEG-TS chunks as referred by a given m3u playlist into a local file. Use this if you want to watch a streamed video on another device or if you want to buffer it as a whole at maximum quality, even though your internet connection sucks or when you want to replay it in higher speed using your player software of choice.

Usage

Start video playback in a browser (e.g. Chrome), open the developer tools, search the network tab for an .m3u or .m3u8 URL, right-click -> copy as cURL, start this script, choose an output file and then paste what you copied into the text input field.

Arguments that are not provided on the command line are asked for in the GUI.

python get_video_from_m3u.py [options] [--] [output file name] [URL or cURL]

Options

--help                Show this help message.
--gui                 Use KDE GUI (default if kdialog exists)
--no-gui              No GUI, only output text on command line
--live-assemble       experimental and currently broken!
--ffmpeg              Pipe concatenated chunks through ffmpeg to properly
                      recreate container. (default if ffmpeg exists)
--no-ffmpeg           Just concatenate the downloaded chunks.
--keep-cache          Keep cache folder and files after finishing download.
--thread-count=COUNT  Use COUNT threads for downloading.

Dependencies

About

Downloads MPEG-TS chunks from a m3u playlist.


Languages

Language:Python 100.0%