Add support for TS/MKV video download format output configuration ( single ts/mkv file) like ffandown m3u8 parser to play the video while downloading using software such as IINA or VLC or Potplayer
Hi, i wish you Ramadan moubarak , so I have a weak internet connection weak old cpu laptop, so I need to play temporary videos while downloading. The problem is that N_m3u8DL-RE downloads the HLS file in many small video slices fragments, and we have to wait for the download to complete and the merge, and I prefer not to wait because my Wi-Fi is slow = slow download !
I discussed this problem with the developer of an m3u8 downloader, Mr. Helson-lin, the developer of ffandown. Mr. Helson-lin had this brillant idea and implemented it recently in ffandown:
"Added support for TS/MKV video format output configuration #
Ps: If you choose the TS or MKV video download format, you can play the video while downloading using software such as IINA or VLC.
If you want to download videos in mpd format, please clear the lib folder first."
Before adding this new commit, he gave me this advice to fix my problem:
"I have found a new idea: when downloading, do not directly download the video in the specified format (mp4/flv), but rather a single ts/mkv file, and finally convert it to the specified video format. The ts/mkv video format naturally supports streaming playback, so it can be downloaded and played simultaneously.
You can test with this code:
ffmpeg -referer https://0472.org/ -i https://0472.org/hls/cgtn.m3u8 -max_muxing_queue_size 9999 -preset fast -c:v copy -c:a copy $PWD/1740732513283.mkv
Make sure you have the ffmpeg executable file."
Sadly, ffandown doesn't have until now native integration with the Cat catch extension, so it seems a bit difficult to send the media links detected by cat catch to ffandown, even though Mr Helson-lin informs me he has a modified version of cat catch extension compatible with ffandown ,but I haven't received this special version of cat catch yet...... so until now , it seems ffandown cannot receive automatically data sent from the cat catch extension to ffandown out of the box, unlike N_m3u8DL-RE which has native integration with cat catch...
So the alternative is to use an out-of-the-box download manager like Brisk that automates this entire process.....
So, we hope please that the great, generous, and compassionate Mr. @AminBhst will add such a crucial capital feature : "support for TS/MKV video download format output configuration ( single ts/mkv file)" just lke ffandown m3u8 parser to play videos while downloading. thank you a lot :)
Isn't this practically the same as #87 ?
Maybe, honestly, I forgot what I wrote, but I think if I opened a new issue, it's probably because I found new elements that can help...
Here's my new suggestion, please, to the great Mr. @AminBhst to be able to download videos from some complex platforms like media in videojs object.
So Mr. Xifangczy, the developer of famous Cat Catch extension, added several commits to make his extension compatible with third-party download managers and parsers, i.e., to be able to send data to third-party downloaders and external parsers , even though there is only official support for N_m3u8DL-RE external parser :
https://github.com/nilaoda/N_m3u8DL-RE
Mr. Helson-lin, the developer of ffandown, asked Mr. Xifangczy to make changes so Cat Catch can send data to ffandwon parser, Cat Catch added that but Cat Catch can't add an official option to support the ffandown download manager otherwise the code is getting huge, which why why Mr. Helson-lin developed a special fork of Cat Catch compatible with and with specific native support for ffandwon download manager , but sadly, this fork extension isn't updated frequently:
https://github.com/xifangczy/cat-catch
So here's my new proposal please : to avoid the hassle of developing from scratch with the Brisk extension and the hassle of adapting extension detection to new streaming defense protocols, I propose that Brisk fork Cat Catch, obviously with adding native compatibility with Brisk, as Mr. Helson-lin did with his fork of Cat Catch specifically compatible with his downlad manager ffandown, or keep the original version of the Brisk extension and also offer a second Brisk extension based on the Cat Catch code for cases where Brisk users don't detect certain videos. Thanks!
As a reminder, to detect media in a videojs object, we should first click the Cat Catch search button, which seems to be the equivalent of heavy improved media detection. I've asked the Cat Catch developer for an option to permanently enable this option "search button"; perhaps it will be implemented in the next version!
If Mr. @AminBhst agrees with this proposal to add a fork of Cat Catch, I'll open a new issue for reference purposes. Otherwise, integrate the Cat Catch code directly into the original Brisk extension if technically possible. I spoke with the Cat Catch developer, who informed me that he allows reproduction and modification of the Cat Catch code, provided that the modifications are made public and open source and shared with the community!