-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
[Feature Request] The fastest way to download the time interval from Youtube #686
Comments
For this case, it is already possible to pass the args before the -i using
For this, you are right. I never noticed that the seeking is slow. But running a few tests, it seems significant. Let me see how to extend the --ppa syntax to the downloader as well |
btw, this isnt needed. The verbose |
How about just a native |
This was a planned feature in youtube-dl at some point (ytdl-org/youtube-dl#8851) and the basic version of this feature actually exists in youtube-dl already but is intentionally disabled. I believe the reason is that we do not allow ffmpeg to download dash formats. So depending on the format selected, the clipping may or maynot happen. Or conversely, the format selection must be restricted when using this feature. Due to the same reason, I always suggest that users provide a PS: While I was looking into a reference of why ffmpeg can't download DASH, I found that since FFmpeg/FFmpeg@3249c75, it can! If so, we should be able to implement this (#52) and also #159 by allowing ffmpeg to handle the dash fragments |
@pukkandan
Since the download process is done for both video and audio together from DASH URLs, it is naturally slow. An example for 480p AVC/AAC DASH:
An example for 1080p AVC/Opus DASH:
That's why if I'm going to get the duration range of a video on Youtube, I choose the parameters without DASH. So
I hope it will be possible to do this workaround with a single command by YT-DLP. |
Thank you very much for this support and writing the all codes that provided it. I just installed and tried the master branch of YT-DLP: Format 18 (AVC 640x360, AAC) and (AVC 1280720, AAC)
Result: Fastest Download/seeking. Thanks to YTP-DLP's support for using pre Of course, the seeking/download process, when if use -format containing DASH links, is slow. For example:
This is normal. Because, as mentioned before, FFmpeg is incapable DASH URLs of YouTube. Nevertheless, with this new support, it's now easier to download specific time intervals from a Youtube video directly with YT-DLP without assigning audio-video URLs to a environment variable. @pukkandan , Thank you so much for your all efforts. |
If this is the wrong place, or off topic, please tell me or delete. Using the above information, I set up a bash alias to download a portion of a video: But in order for the alias to be genuinely helpful, I need to be able to pass the start Thanks. |
vs() { yt-dlp -f 18 --external-downloader ffmpeg --external-downloader-args "ffmpeg_i:-ss $1 -to $2" "$@"; } Use as:
|
That is amazing. Worked perfectly. Many Thanks! Follow up:
Once the errors are done processing, the actual URL is processed correctly. Also, according to the ffmpeg manual, the
|
Ah yes, change Since you are already using |
Here's the command I now have:
I'm still getting errors of the type:
But again, when the actual URL kicks in it works correctly. |
I made a trivial change in the command, and now it's working perfectly. No idea why that should be.
This is great. Thanks much for your help. |
I'm having issues getting this code to operate in cmd. I've tried using doskey to take the place of the alias, but now I'm experiencing issues with getting it to run beyond that, I've added the program I've made to regedit as an auto run. I've realize I need to replace alias with doskey, and I've tried copying the code given and mashing it up in a couple ways to play with it and see if it would work and so far I can't get it to manage. I double checked my path in regedit and in system enviornment varriables. the path isn't wrong. My path is c:\users\myself\youtube-dl> and i'm trying to run from that path in cmd too when I put in the vs command. It doesn't seem to recognize the vs command though despite the doskey. I've tried a few variations of this code: TL;DR TIA, P.S. it'd be great if this shortcut was programmed into yt-dlp in an update. I'm new here too so idk if it's planned and in the works and just hasn't release yet or I just didn't find it in the --help stuff or on the main github page for it. Sry. v.v |
Questions regarding doskey/autorun have nothing to do with yt-dlp and should be asked in appropriate forums, not here.
This is an extremely old issue. |
Sorry this wasn't the right place, Your info helped me complete my work though. So thank you! So thanks pukkandan for the help :) |
Maybe, it's old stuff, but it worked. Now, when I write |
What makes you think that is correct syntax? Lines 574 to 581 in 17ca19a
|
Aha! This worked when I put |
The old commands work exactly as it did before. There's just new better/easier method to do the same |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
How about downloading a specific range from a live video stream from youtube? Is it possible youtube player allows going back about 24h back so the data is there and seekable |
Firstly, thank you for YT-DLP. This fork have very useful new features. Besides, features increasing day by day.
I have a request.
There are different methods to download a specific time interval of a video on Youtube.
But this methods cause slow download. Because
YT-DLP
/Youtube-DL
uses--external-downloader-args
/--postprocessor-args
after the-i
(source direct URL) in external/internal FFmpeg. For example fromProcMon
:The fastest download for a given time interval is possible only if the
-ss
and-to
arguments are specified before the-i
switch in FFmpeg. The popular workaround:Is there a way to make (internal and external) FFmpeg use
--postprocessor-args
&--external-downloader-args
arguments before the-i
switch (source downloadable link)?If you add this support as an option, no longer will need the two-command workaround to fastest way download the audio/video range from Youtube.
The text was updated successfully, but these errors were encountered: