puemos / hls-downloader

Web Extension for sniffing and downloading HTTP Live streams (HLS)
https://puemos.gitbook.io/hls-downloader/
MIT License
1.88k stars 233 forks source link

Saves a long .ts file instead of .mp4 - not playable of course #87

Open zb-z opened 4 years ago

zb-z commented 4 years ago

Repro URL: https://tubitv.com/movies/278532/aeon_flux?start=true

You'll have to turn of uBlock for the site (haven't seen any popups, they just refuse to play video when they detect it) .

Extension version: 2.0.0

This could be a tough cookie - Stream Recorder (hlsloader.com) reports "HLS-encryption is not supported : abort", refuses to touch it, doesn't show resolutions ....

Your extension does show resolutions, downloads something (a lot 1.8 GB) but saves it as .ts (.ts re small files) which is nor payable either as is ow when renamed to .mp4.

If you have the time it might be good to dig into what the site's scripts are doing. Could be very instructional and maybe uncover an API for editing binary blocks.

For comparison, here's one from the same site that Stream Recorder doesn't trip. It shows that the problem has 2 parts. This extension again saves a large .ts, but renaming it to .mp4 does make it playable,

https://tubitv.com/movies/278532/aeon_flux?start=true

If there is actual crypto (probably just some garbling unless there's a standard interface) you may need to plan a bit of architecture to carry a config with per-site info and possibly a JS function or two, just to be ready to handle arbitrary messed up, well mess :-)

pauloeli commented 1 year ago

@zb-z Did you discover any workaround for this?

zb-z commented 1 year ago

Oh I gave up long time ago :-) There are more problems with the .ts saved. The video ends up be being chopped in VLC. Win10 player does smooth it but I hate that player :-) since it doesn't give me enough control (like easy skipping with kbd and audio amplification) On Tuesday, November 8, 2022, 03:36:06 AM PST, Paulo Henrique Eli @.***> wrote:

@zb-z Did you discover any workaround for this?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>