tgbot-collection / ytdlbot

Download videos from Youtube and other platforms through a Telegram Bot
Apache License 2.0
585 stars 547 forks source link

Implement video cut #431

Open PROger4ever opened 2 months ago

PROger4ever commented 2 months ago

Proposal

It'd be great to have a feature to cut downloading videos like:

https://www.youtube.com/watch?v=y0sF5xhGreA 00:14-00:17

Youtube native time query-parameter t can be used too:

https://youtu.be/y0sF5xhGreA?si=-Jqi0FkG4YVtuf1x&ab_channel=ThePetCollective&t=14

I think timings should be parsed independently like:

/(([0-9]+):)?([0-9]+):([0-9])+/g

if 2 of them found - the beginning and the end of the video. if only 1 found - the beginning of the video.

ffmpeg can be used to cut video.

SanujaNS commented 2 months ago

Hello @PROger4ever ,

Thank you for taking the time to share your valuable suggestions with us. We will carefully review your input and assess the feasibility of incorporating these ideas into our project. Please allow us some time to thoroughly evaluate your suggestions. We will get back to you as soon as we have a clear understanding of how to proceed.

Thank you.