aajanki / yle-dl

Download videos from Yle servers
https://aajanki.github.io/yle-dl/index-en.html
GNU General Public License v3.0
310 stars 51 forks source link

What a JOY! #119

Closed gunnar12 closed 7 years ago

gunnar12 commented 7 years ago

almost 24h without any BADDIE!, just OKOK!

Note how easy to visually check! (with this as reference I will now switch back to cluster-4196 chunks, maybe something else, some akamai servers too weird wth adobehds, max speed some 50kBps, but next segment comes from different IP adress full speed)

whatajoy

PS times are "modified", note order, Linux finishes writing minimal OKOK file before emptying the cache of the MP4 file tail.

gunnar12 commented 7 years ago

Find the BADDIE (changing it to more visual BADBADBAD)

findthebaddie

gunnar12 commented 7 years ago

Switched back to chunksize 4196..

Bad hair day or something, but 2 disconnects in 3 hours,

gunnar12 commented 7 years ago

OK, finally spare time, found this HLS 10s segnments and protocol-free? bitstream HTML5 selection. LeadThis or LeadThat to Kaltura server.

However, both must have a command for starting video on certain time, although includes finding best segment, closest timestamp in FFMPEG HLS code. (and piecing together code not coded? weird use of concat based on video packet ref pictures?) Cldnt find this command from web-published YLE-API, but it must be there considering normal browser playback (or always doing HLS then, picking closest 10s segments? Wireshark job)

That is, first the problem of resuming from a certain position and then how to piece together the old and new data. Strange if not in standard..considering 5G switching of radios, networks, streaming servers and whatever..

PS also perfect videos to test wget and Curl, SFT EsitelmaMaraton when in 3.5h parts

aajanki commented 7 years ago

For playing back HLS starting from a certain time, you need to select the closest 10s segment and start downloading from that (like you speculated). I think that is what Areena does.

I don't know how to start a HTTP MP4 from a time position. Maybe you should ask this on StackOverflow? It is possible to resume downloading from a certain byte position using the HTTP Range header.