chandler-stimson / live-stream-downloader

Download M3U8 live streams to the local disk
https://webextension.org/listing/hls-downloader.html
Mozilla Public License 2.0
240 stars 83 forks source link

Add sequential downloading to preview to video while downloading to start watching the video before the download finishes #54

Open trimechee opened 10 months ago

trimechee commented 10 months ago

Hello, thank you again Mr @chandler-stimson for this great rare exceptional open-source extension the best in the world ! 🥇 💯

Update : Edit : Hello, i discover this issue affect several download managers and a possible solution proposed seems to be according to a developer ::

" For streaming media, the use of a single thread or multiple threads for downloading makes no difference. During the download process, the downloader creates independent files for each segment locally, which are then merged into a single file after downloading. This is why the file cannot be played. To resolve this, the solution is to add an option to enable sequential downloading using only one connection and creating a single file, allowing the player to function properly. However, the player's fast-forward and rewind functions may not be available. While many players support direct playback of m3u8 files, they may not bypass certain download restrictions or decrypt content like download manager do, unless making a new video player....."

I discover a wonderful option in our beloved Live-stream-downloader :

“Auto-close when done” this is an important and essential option to save resources especially when the battery is low!

And therefore "Live-stream-downloader" becomes a great autonomous download manager like idm, fdm, jdownloader....and we can uninstall these famous download managers and use our favorite download manager "Live-stream-downloader" because it is lighter and faster and efficient and we hope please an option to preview the video while donwloading, preview in a simple way with a quick single click for for beginners, I put in the Live-stream-downloader settings: "Number of threads: 1" and we would like to see a "preview video" option because sometimes the video can have a very large size and we have to wait a long time before being able to see the video, there are streaming videos which are not in complex dash or hls format so we can watch them during the download and even with Number of threads: 1, I I tried to download the uqload video from this site:

https://french-anime.com/animes-vf/1387-solo-leveling.html

and I discover that the downloading is very very fast from uqload video and other streaming platforms despite number of threads: 1, in addition Number of threads = 1 perhaps allows us to avoid a possible IP ban its we download a lot of the same site...Thank you so much :)

I have idea please : either Live-stream-downloader sends the video that is being downloaded to our default video player, for example potplayer, qmplay2, moon player, kikoplay, gridplayer, mpcq, implay....

or our beloved Live-stream-downloader integrates a native internal video player into the extension that we can install optionally, perhaps an html5 player will be good to preview videos and avoid streaming freeze lags, because the advantage of Live-stream-downloader video native media player would be to avoid lag and jerks when our internet connection is very weak and the video is in high definition, because unfortunately the browser or streaming site only allows a small amount of video buffering and we don't have smooth playback when our wifi connection is weak because many family members are connected to wifi !

Thanks a lot !

web html5 HTML players

https://9xplayer.com/

https://github.com/inbasic/media-player/

https://github.com/shaka-project/shaka-player

https://github.com/aliyunvideo/AliyunPlayer_Web

https://haven.pages.dev/ https://thaunknown.github.io/?pwa-haven https://github.com/ThaUnknown/pwa-haven

https://haven.pages.dev/video-player/public/ https://haven.pages.dev/ https://github.com/ThaUnknown/pwa-haven

https://github.com/nt1m/media-player https://nt1m.github.io/media-player/

https://github.com/inbasic/media-player

https://github.com/ltguillaume/music-folder-player

HLS Player - m3u8 Streaming Player https://www.hlsplayer.org/ https://chrome.google.com/webstore/detail/hls-player-m3u8-streaming/eakdijdofmnclopcffkkgmndadhbjgka

Reproductor M3U8 - HLS + DASH Player https://chrome.google.com/webstore/detail/reproductor-m3u8-hls-%2B-da/lcipembjfkmeggpihdpdgnjildgniffl

Reproductor M3U8 - HLS + DASH Player

Native MPEG-Dash + HLS Playback

https://github.com/Palethorn/native-adaptive-streaming

https://github.com/ghouet/chrome-hls

hls in web browser browsers

Video m3u8 Sniffer - Find HLS Streaming URLs M3U8 finder and HLS player http://sigmafxdx.com/m3u8Sniffer/ https://chromewebstore.google.com/detail/video-m3u8-sniffer-find-h/akkncdpkjlfanomlnpmmolafofpnpjgn

Play HLS https://chromewebstore.google.com/detail/play-hls/hahkjjkedonglpienpfiganogikkkoii?hl=en-US

M3U8 Downloader https://chromewebstore.google.com/detail/m3u8-downloader/pibnhedpldjakfpnfkabbnifhmokakfb?hl=en

Online Version: https://m3u8.dev

M3U8 Player - HLS Player Video Player Online: https://m3u8play.dev https://chromewebstore.google.com/detail/m3u8-player-hls-player/nlhnjkakhcjdjacgojecmegdmmbciifg

Online Screen Recorder: https://record.m3u8.dev

https://www.hlsplayer.org/

Stream Recorder - download HLS as MP4 https://www.hlsloader.com/

Native HLS playback by Gaetan Hervouet https://github.com/ghouet/chrome-hls Native MPEG-Dash + HLS Playback by David Cavar https://github.com/Palethorn/native-adaptive-streaming https://cavar.net/

*I discover also this tool, i don't know if it can help to integrate video preview....

https://github.com/kanishka-linux/hlspy

"A simple headless browser based on QtWebEngine (Chromium) as backend

Main objective is to create curl/wget like terminal based utility but for javascript heavy web pages. However, it can be also used as a python library for accessing dynamic web pages asynchronously."

Thank you very much !

krystiangorecki commented 10 months ago

Whenever I download a file abc.mkv, a temporary file named abc.mkv.crswap is created. This file is playable and can be opened in your video player. You can even check "Always use this app to open .crswap files" to make it easier.

trimechee commented 10 months ago

@krystiangorecki Ohh thank you very much for your valuable and precious explanation! the little problem is when we start playing the video before the download is finished and then the download ends and so it happens that the playback freezes and the progress bar no longer advances... plus apparently we have to go to the windows settings to display hidden files...and it can be a little complicated for non-expert beginners....

that's why a native integrated video preview mechanism which keeps the progress state of the video and lets playback progressing despite the end of the download will be a rare and important option that distinguishes our beloved Live-stream-downloader from other donwloaders....so when we activate the preview video option, the downloader displays a warning prompt the number of threads and download segments automatically becomes 1 and may be the download become a little slow.....

trimechee commented 7 months ago

Edit : Hello Mr @chandler-stimson , i discover this issue affect several download managers and a possible solution proposed seems to be according to a developer :

" For streaming media, the use of a single thread or multiple threads for downloading makes no difference. During the download process, the downloader creates independent files for each segment locally, which are then merged into a single file after downloading. This is why the file cannot be played. To resolve this, the solution is to add an option to enable sequential downloading using only one connection and creating a single file, allowing the player to function properly. However, the player's fast-forward and rewind functions may not be available. While many players support direct playback of m3u8 files, they may not bypass certain download restrictions or decrypt content like download manager do, unless making a new video player....."

trimechee commented 5 months ago

Mr @krystiangorecki, thank you very much for your advice :) 👍 💯 I tried, if I wait 30 seconds or 1 minutes or 5 minutes while our beloved Live-stream-downloader starts downloading part of the video, I I can only watch a very small part of the the video even though the download continues, so it is not possible to watch the video continuously without interruption while Live-stream-downloader downloads the video, perhaps this info would interest Mr @ chandler-stimson :) Thank you again Mr Stimson for this amazing awesome extension the best extension in the world th download videos :) 💯 🥇