v1.1.0 - MP4 Conversion
Added
- Implemented support for monitoring multiple users from a file.
- Added option to convert output FLV files to MP4 using
ffmpeg
. - Introduced signal handling for graceful shutdown on
Ctrl+C
. - Included abort mechanism for promises using
AbortController
.
Changed
- Updated documentation with new usage examples and options.
Fixed
- Resolved issues with signal listener removal.
- Fixed import error for
deno_ffmpeg
module.
Removed
- N/A
Installation
deno install --allow-net --allow-write --allow-run --allow-read -n tlr https://raw.githubusercontent.com/Hoax017/tiktok-live-recorder-ts/refs/tags/v1.1.0/src/mod.ts
Usage
tlr [-u USER] [-w "USER1 USER2 ..."] [-i INPUT] [-o OUTPUT] [-c [optional ffmpeg_path]]
Options
-u, --user USER
: Record a livestream from the username.-w, --watch "USER1 USER2 ..."
,-i, --input INPUT_FILE
: Automatic live recording when a user from the provided list is live.-o, --output OUTPUT
: Output directory.-c, --convert [optional ffmpeg_path]
: Convert output FLV files to MP4.-h, --help
: Prints help information.-d, --debug
: Enable debug mode.
Examples
Start recording a user’s livestream:
tlr -u username
Monitor users and start recording when they start streaming:
tlr -w "username1 username2"
Monitor users from a file and start recording when they start streaming:
tlr -i lives.list
Convert recorded FLV files to MP4:
tlr -u username -c /path/to/ffmpeg
Permissions
--allow-net
to fetch the data from TikTok.--allow-write
to save the video.--allow-run
to runffmpeg
.--allow-read
to read the input file.