StefanLobbenmeier / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add time selection

System32ita opened this issue · comments

I'd like an option to select the piece of video to download (ex. download from minute 1:22 to 5:30). It would save me A LOT of time.
Thanks

Looks like there is support for this from yr-dlp:

--download-sections REGEX       Download only chapters that match the
                                regular expression. A "*" prefix denotes
                                time-range instead of chapter. Negative
                                timestamps are calculated from the end.
                                "*from-url" can be used to download between
                                the "start_time" and "end_time" extracted
                                from the URL. Needs ffmpeg. This option can
                                be used multiple times to download multiple
                                sections, e.g. --download-sections
                                "*10:15-inf" --download-sections "intro"

but not sure how I would go about having the user select the time interval. Surely this is a setting per video. Maybe some „expert options“ per video?

Looks like there is support for this from yr-dlp:

--download-sections REGEX       Download only chapters that match the
                                regular expression. A "*" prefix denotes
                                time-range instead of chapter. Negative
                                timestamps are calculated from the end.
                                "*from-url" can be used to download between
                                the "start_time" and "end_time" extracted
                                from the URL. Needs ffmpeg. This option can
                                be used multiple times to download multiple
                                sections, e.g. --download-sections
                                "*10:15-inf" --download-sections "intro"

but not sure how I would go about having the user select the time interval. Surely this is a setting per video. Maybe some „expert options“ per video?

Well, I'm not really a programmer so I don't think I can help you, but I imagined something like this:
Cattura1

Nice I appreciate the mockup. For me that solution would be too noisy, but I would rather put an edit button next to the duration, that opens a popup where you can define the start and end time. Maybe also select sponsorblock there as well, or select chapters (but start with timestamps)

An edit button would be perfect. Mind that (in my opinion obviously) a feature like that is really important. A lot of times I have to download videos that may be 40-50 minutes long just to have a couple of seconds long clip. If I could just select the portion of video to download it would save me a lot of time

Hello i have zero code knowledge too, but an edit button next to the duration would be perfect, as i use open video downloader to download small clips of hours-long livestreams, it would also save me a huge amount of time