Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ytDownloader compatible with --no-part commandline to download sequentially force the download to write directly to the output file=we can playback temporary unified video while downloading= avoid small fragment videos slices #284

Open
trimechee opened this issue Mar 4, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@trimechee
Copy link

Hi, thanks so much for th new awesome versions !

i remember that i saw in previous changelog of ytDownloader that ytDownloader added support of m3u8 ! 💯

hence my request please :

my ADSL internet connection can become very weak when my mother and sisters connect to wifi, to solve this problem, I use Cat catch extension compatible with N_m3u8DL-RE parser and i added in URL Protocol m3u8dl settings of Cat Catch this command line :

--tmp-dir "E:" --save-dir "E:"

to see and playback temporary video while downloading, the problem the temporary video is in the form of multiple small fragments videos slices impossible to play back with local media player in a seamless playback smooth playback without interruption silence between the small files videos .....

i do some research and it seems that yt-dlp which uses ffmpeg to download, yt-dlp has a special command :

--no-part

to force the download to write directly to the output file :

yt-dlp/yt-dlp#2783

yt-dlp/yt-dlp#9050

we hope please a similar command line function/option for ytDownloader to make the dream ture to be able to download sequentially force the download to write directly to the output file when we copy paste m3u8 links detected by Cat-Catch extension =we can playback temporary unified video while downloading= avoid small fragment videos slices, thanks a lot !

let's note a developer of another m3u8 downloader advised me this trick :

"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. "

So we hope great generous Mr Andrew will implement this trck out of the box please , thanks !

and for more ease for non-expert users, please would be good idea to add graphical option "download sequentially in .ts video formatto playback temporary video while downloading":

by including this code that I talked about previously out of the box, thanks !

concerning N_m3u8DL-RE :

Full of hope, I search in the command lines of N_m3u8DL-RE and I find this command line:

--live-real-time-merge

which seems to me a promising command and can perhaps remove the small fragments of video slices to have a temporary unified video in order to playback while downloading, I try to download this streaming hls video :

https://v6.voiranime.com/anime/fate-stay-night-vf/fate-stay-night-21-vf/

but same result, there are small fragments of video slices .ts while donwloading impossible to playback ,

but I notice an interesting thing about this command line: its description is:

--live-real-time-merge : 录制直播时实时合并 [default: False]

so it seems this command line is disabled by default in Cat Catch even if we add it to URL Protocol m3u8dl settings of Cat Catch

https://github.com/nilaoda/N_m3u8DL-RE?tab=readme-ov-file#%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%8F%82%E6%95%B0

also,

I notice this: yt-dlp which has the ability to download temporary hls video in an unified manner with --no-part command line without slices small fragments videos, yt-dlp develops its own version of ffmpeg customized with some patches necessary for smooth integration with yt-dlp and the builds provided are only meant to be used with yt-dlp and any unrelated issues/patches will be rejected!

https://github.com/yt-dlp/FFmpeg-Builds

so maybe the ultimate secret to make the dream come true and save an expensive internet plan and an expensive laptop expensive cpu and to avoid videos jerk lag in the web browser of full HD videos i.e. download temporary hls video in a unified way with --no-part command line without slices small fragments videos is to develop own customized personalized ffmpeg adaptable to ytDownloader , like yt-dlp does?

so indeed the ultimate dream is to put fantastic ytDownloader and N_m3u8DL-RE and mp4decrypt in the same folder and these three magnificent softwares will cooperate together and will be compatible between them, then use Cat catch extension to detect media links of embedded streaming hls videos and send media link to ytDownloader which will show us a nice graphical interface of the progress of the sequential download of the hls video without slices fragments, thanks !

@trimechee trimechee added the enhancement New feature or request label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants