Hacker News new | ask | show | jobs
by dylan604 1599 days ago
I have no idea what the code looks like for ytdl, but the concept seems straightforward enough for DASH/HLS segmented encodes. Determine the duration of each segment, do the math to find which segments would be required for the requested part, then do ytdl magic. I'd be more than happy to be forced to have a few seconds before/after the requested time just to avoid the necessity of breaking segments. Just straight download/concat.

We all know how well concept to working code goes though

1 comments

Not so sure that'll work due to the fact that the first segment in a subset of segments is not the init segment (thus missing atoms like moov, ...)
Just cut it with ffmpeg? Ok you will have to download the whole thing first... but yeh