ytarchive icon indicating copy to clipboard operation
ytarchive copied to clipboard

Add start from and download length options

Open Kethsar opened this issue 4 years ago • 8 comments

Allow downloading from a specified start time and downloading a specified length. Support both positive and negative values in the form of HH:MM:SS for start time, only positive for length. Will end up being inaccurate as stream segments are either 1, 2, or 5 seconds in length. ffmpeg can potentially do something about that, will see when implementing. This should make clipping ongoing streams easier and not require screen recording, which is disgusting.

Kethsar avatar Aug 26 '21 15:08 Kethsar

I've had success manually setting cur_frag and cur_seq in download_stream to the offset I want to start from. Allowing that to be a configurable value from the command line would be helpful

shimpossible avatar Mar 29 '23 01:03 shimpossible

Hello @Kethsar : do we have any update on this feature where we can pass --start and duration ?

adding such a feature would make this perfect

jpfl avatar Nov 24 '23 00:11 jpfl

can anyone point me how to edit this in the code? older versions I think were only able to grab 24h and newer one can grab up to 5 days. so it has to be somehow possible to set it to only grab X hours before the current live segments.

jpfl avatar May 10 '24 16:05 jpfl

I think this issue is partially solved by https://github.com/Kethsar/ytarchive/pull/198

But it still lacks the length option. @Kethsar @keredau would that be possible?

paradix avatar Jul 19 '24 20:07 paradix

Yeah I was thinking of trying to put that in place now that keredau has added the other pieces. But as always, am lazy.

Kethsar avatar Jul 19 '24 20:07 Kethsar

I actually have a branch in my fork where i'm working on that feature. :)

keredau avatar Jul 20 '24 02:07 keredau

This compact downloader solves this issue and allows time-back video download. It was actually inspired by ytarchive. Check it out here: https://github.com/com-py/pyarxiver

com-py avatar Aug 03 '24 17:08 com-py