lay295 / TwitchDownloader

Twitch VOD/Clip Downloader - Chat Download/Render/Replay
MIT License
2.68k stars 261 forks source link

VOD Downloads Stuck at 100% #940

Open BayPatates opened 9 months ago

BayPatates commented 9 months ago

Checklist

Edition

Windows GUI Application

Describe your issue here

"VOD Download" tab downloads every ".ts" part of the VOD, then stops at 100%. This problem frequently occurs on long VODs that i download. Edit: I found out "574.ts" part not fully downloaded.

Add any related files or extra information here

Stuck at 100%: Twitch Downloader v1 54 0

All the parts are downloaded (Edit: except "574.ts"): Every  ts downloaded

Nothing is happening, program just waits: Nothing is happening Nothing is happening - 2

Here is the VOD id: 2004152263 I think it downloaded every necessarry part according to m3u8 index file but stuck, here is the m3u8 file link of this VOD: https://d1m7jfoe9zdc1j.cloudfront.net/da9fd02540afafc1ed74_jerma985_49926032829_1702587318/chunked/index-dvr.m3u8

Start and end of the m3u8 file is like this :

EXTM3U

EXT-X-VERSION:3

EXT-X-TARGETDURATION:10

ID3-EQUIV-TDTG:2023-12-15T04:33:03

EXT-X-PLAYLIST-TYPE:EVENT

EXT-X-MEDIA-SEQUENCE:0

EXT-X-TWITCH-ELAPSED-SECS:0.000

EXT-X-TWITCH-TOTAL-SECS:27458.989

EXTINF:10.000,

0.ts

EXTINF:10.000,

1.ts

EXTINF:10.000,

2.ts

EXTINF:10.000,

3.ts

EXTINF:10.000,

... ... ...

EXTINF:10.000,

2743.ts

EXTINF:10.000,

2744.ts

EXTINF:8.989,

2745.ts

EXT-X-ENDLIST

BayPatates commented 9 months ago

After looking at the parts again, i found out "574.ts" not fully downloaded and i think this was causing the problem. 574 not fully downloaded When i tried to delete that file i couldn't. ("File in use" error) (I could not take screenshot.) After canceling the download, all the files except "574.ts" were deleted and that file was still locked (in use) by TwitchDownloader. I was only able to delete the file after closing the program. 574 ts not deleted

ScrubN commented 9 months ago

How long did you let the downloader sit at 100% completed? Sometimes the connections end up getting stalled, and when that happens we have a timeout: https://github.com/lay295/TwitchDownloader/blob/eb8124ed0587bd362e7906773380b0d8de683388/TwitchDownloaderCore/VideoDownloader.cs#L598-L610

BayPatates commented 9 months ago

I additionally waited for 1 - 2 hours when i saw it was at 100% and nothing was happening. "574.ts" was not changing in file size, there was no other parts needed to be downloaded and there was no network activity (my internet connection was fine).