Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Just another Python implementation of TwitCasting live stream recorder. (TC 录像脚本 / 録画ツール)

License

Notifications You must be signed in to change notification settings

prinsss/twitcasting-recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwitCasting Recorder [WIP]

Just another Python implementation of TwitCasting live stream recorder.

Usage

Install dependencies with pip install -r requirements.txt.

usage: main.py [-h] [--proxy PROXY] [--user-agent USER_AGENT] [-o FILENAME] user_id

TwitCasting live stream recorder.

positional arguments:
  user_id               The user id to record.
                        i.e. the string after "https://twitcasting.tv/" in URL

optional arguments:
  -h, --help            show this help message and exit
  --proxy PROXY         Request with HTTP proxy. e.g. http://127.0.0.1:1080
  --user-agent USER_AGENT
                        Request with custom User Agent.
  -o FILENAME, --output FILENAME
                        File name to save recorded video.

Recorded videos are saved as MPEG-2 TS format, which is designed for live streaming.

You can simply remux them to MP4 format using ffmpeg:

ffmpeg -i xxx.ts -codec copy xxx.mp4

Thanks

License

MIT License (c) 2019 printempw

About

Just another Python implementation of TwitCasting live stream recorder. (TC 录像脚本 / 録画ツール)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages