FUNCTION REQUEST: Use free ram to store chunk or other small files #10078

Closed
opened 2026-02-21 04:08:26 -05:00 by deekerman · 8 comments
Owner

Originally created by @nmr50 on GitHub (Feb 23, 2017).

Hello dearest codes!
I've noticed many times when YDL is getting hundreds of chunks then to make one .mkv/.mp4 file at the end. Almost 98% of those 'chunked' files are from news blocks being got from several TV sites yet those blocks are not more than 300-600mb in sum as usual, so: It will be pretty nice to add feature to YDL, to specify what amount of memory YDL can use to store temp.files, instead of using HDD for those files - in case, user like me has 16gb on board, and 8-10gb free.

Thanks in advance!

Originally created by @nmr50 on GitHub (Feb 23, 2017). Hello dearest codes! I've noticed many times when YDL is getting hundreds of chunks then to make one .mkv/.mp4 file at the end. Almost 98% of those 'chunked' files are from news blocks being got from several TV sites yet those blocks are not more than 300-600mb in sum as usual, so: It will be pretty nice to add feature to YDL, to specify what amount of memory YDL can use to store temp.files, instead of using HDD for those files - in case, user like me has 16gb on board, and 8-10gb free. Thanks in advance!
Author
Owner

@yan12125 commented on GitHub (Feb 23, 2017):

Another requested feature at #10993 can achieve this: creating a ramdisk and use that as the temporary directory. Please move there for further discussions.

@yan12125 commented on GitHub (Feb 23, 2017): Another requested feature at #10993 can achieve this: creating a ramdisk and use that as the temporary directory. Please move there for further discussions.
Author
Owner

@nmr50 commented on GitHub (Feb 23, 2017):

Ramdisk costs some money, while this function costs 5 minutes of such guru coders like you, people!:)
Implement this function, please!:)

@nmr50 commented on GitHub (Feb 23, 2017): Ramdisk costs some money, while this function costs 5 minutes of such guru coders like you, people!:) Implement this function, please!:)
Author
Owner

@yan12125 commented on GitHub (Feb 23, 2017):

Ramdisk is costs some money

Ramdisks are implemented by softwares. Not sure what you're referring to?

@yan12125 commented on GitHub (Feb 23, 2017): > Ramdisk is costs some money Ramdisks are implemented by softwares. Not sure what you're referring to?
Author
Owner

@nmr50 commented on GitHub (Feb 23, 2017):

| Not sure what you're referring to?
I mean that good Ramdisk software costs some money while others are pierced with ads inside, very limited in usage... Why not to make such function like specifying /tmp folder or/and use free ram for tmp files?:/

@nmr50 commented on GitHub (Feb 23, 2017): | Not sure what you're referring to? I mean that good Ramdisk software costs some money while others are pierced with ads inside, very limited in usage... Why not to make such function like specifying /tmp folder or/and use free ram for tmp files?:/
Author
Owner

@yan12125 commented on GitHub (Feb 23, 2017):

Ah. I guess you're using Windows? On Linux and Mac ramdisks are built-in features (e.g. available out-of-box). On the other hand, implementing such a feature is almost as hard as implementing a virtual file system. After #10993 is done, we can re-visit this issue and see how it can be extended to support temporary files in the memory.

Another related feature: #9937 (remove the concept of temporary segments from youtube-dl)

@yan12125 commented on GitHub (Feb 23, 2017): Ah. I guess you're using Windows? On Linux and Mac ramdisks are built-in features (e.g. available out-of-box). On the other hand, implementing such a feature is almost as hard as implementing a virtual file system. After #10993 is done, we can re-visit this issue and see how it can be extended to support temporary files in the memory. Another related feature: #9937 (remove the concept of temporary segments from youtube-dl)
Author
Owner

@nmr50 commented on GitHub (Feb 23, 2017):

Yes, I am Win7 user:) But what about implementing flag to specify folder for temp files at least ?
What about removing concept of temp files... I don't think it is good idea because youtube itself could detect this new function to stop giving out videos for "fake browsers"..

@nmr50 commented on GitHub (Feb 23, 2017): Yes, I am Win7 user:) But what about implementing flag to specify folder for temp files at least ? What about removing concept of temp files... I don't think it is good idea because youtube itself could detect this new function to stop giving out videos for "fake browsers"..
Author
Owner

@yan12125 commented on GitHub (Feb 23, 2017):

what about implementing flag to specify folder for temp files at least ?

That's exactly what #10993 is talking about :)

@yan12125 commented on GitHub (Feb 23, 2017): > what about implementing flag to specify folder for temp files at least ? That's exactly what #10993 is talking about :)
Author
Owner

@nmr50 commented on GitHub (Feb 23, 2017):

OK, I'll be waiting for tmp folder flag then :) Thanks !!!

@nmr50 commented on GitHub (Feb 23, 2017): OK, I'll be waiting for tmp folder flag then :) Thanks !!!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#10078
No description provided.