- yt-dlp now officially supports downloading a section of the video, please see https://github.com/yt-dlp/yt-dlp#download-options
- You can still use this repo if you don't want run the download process on your device
- Fork this
- Go to the Actions tab in your forked repo
- In the left sidebar, click the Clip workflow.
- Above the list of workflow runs, select Run workflow
- Input the url,start and end time, then click Run workflow
- Wait for the action to complete and download the artifact
- note:Due to the nature of video stream itself, it is not possible to accurately download the segments you specify when using "c:v copy." When downloading segments, please make sure to add a few extra seconds at the beginning and end, and then use video editing software to edit it yourself.
- Or use Clip and re-encode workflow in Actions. (very slow!)