ArneVogel/concat

Concat stopped working properly.

Closed this issue · 4 comments

When you try to download vod with start and end timestamps, it downloads incorrect part of the vod. The downloader also doesn't work properly on your official site.

From what I tested its always a different delay. Maybe script doesn't calculate chunks properly? I think before (when concat was still working) twitch was sending 5 sec chunks and now they send 12 second chunk.

I just checked with two vods and it worked normal for me. What vod did you try to download?

Hmmm, it still doesn't work. Did you download full vod or chunked? Maybe I should be clearer and specifiy the chunked part of the script doesn't work. Here is an example:

I tried to download CohhCarnage vod.

vod link: https://www.twitch.tv/videos/239796789
From 01:00:45 to 01:20:45 in total 20 min long clip.
This example filled in official concat website. (Doesn't work in downloaded script either)
concat_bug_1

1:00:45 timestamp looks like this in CohhCarnage's vod section:
concat_bug_2

However this is the end result. As you can see the clip doesn't start anywhere even near the given timestamps and clip is 14 minutes long instead of 20.
concat_bug_3

Doesn't look like it happens in every clip. For example I just tried ThijsHS
https://www.twitch.tv/videos/239304303
from 3:10:00 to 3:20:00
and it worked properly. So something weird is going on.

The problem seems to come from the faulty duration information of the m3u8 file. If you compile the newest version that should get fixed.

The old version trusted the chunk information in the header which fails with uneven durations of the chunks. In the vod the target duration was 6s and this is what the actuall duration of the chunks is.

#EXTINF:3.468,
557.ts
#EXTINF:5.632,
558.ts
#EXTINF:5.868,
559.ts
#EXTINF:5.600,
560.ts
#EXTINF:5.315,
561.ts
#EXTINF:4.567,

Just compiled the newest version and it works properly.

Thank you for the help.