save-stream-ts-to-mp4-with-python

Using python to save videos from stream url (ts)

INSTALL FFMPEG

MacOS > brew install ffmpeg

ENVIROMENT PYTHON

python3 -m venv ./env/

source env/bin/activate

DEPENDENCES

pip3 install requests

pip3 install python-ffmpeg-video-streaming

CONFIG

  • CURL of authentication submit form (optional)

  • The list of urls with m3u8

  • name of output files

RUN

python3 main.py