pauloo27 / tiktok-live

A simple NodeJS application to download TikTok lives by the share URL.
GNU General Public License v3.0
61 stars 15 forks source link

Starts and stop downloading? #3

Closed steve51184 closed 2 years ago

steve51184 commented 2 years ago

So I have this installed correctly but when I run

node index.js https://vm.tiktok.com/[removed]

It outputs the following:

URL > https://vm.tiktok.com/[removed]/ Found live "[removed]": m3u8 URL: https://pull-hls-f11-va01.tiktokcdn.com/stage/stream-29933070622830665_or4.m3u8 flv URL: http://pull-flv-f11-va01.tiktokcdn.com/stage/stream-29933070622830665_or4.m3u8 Writing live to 7104045166184418054.flv. Press Ctrl C to STOP.

But it does all this in under 1-2 seconds and the .flv file it made is only 462 bytes and contains the following text:

EXTM3U

EXT-X-VERSION:3

EXT-X-ALLOW-CACHE:YES

EXT-X-MEDIA-SEQUENCE:1654040968

EXT-X-TARGETDURATION:3

EXT-X-PROGRAM-DATE-TIME:2022-06-01T07:49:38+08:00

EXTINF:2.240, no desc

stream-29933070622830665_or4-1654040968.ts

EXT-X-PROGRAM-DATE-TIME:2022-06-01T07:49:40+08:00

EXTINF:2.120, no desc

stream-29933070622830665_or4-1654040969.ts

EXT-X-PROGRAM-DATE-TIME:2022-06-01T07:49:42+08:00

EXTINF:2.040, no desc

stream-29933070622830665_or4-1654040970.ts

What's happening here?

Edit: it works if I run the command a second time but not the first time..

pauloo27 commented 2 years ago

can you please update and test it?

steve51184 commented 2 years ago

Confirmed working thank you

pauloo27 commented 2 years ago

Thank you for the report