Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nmr50 opened this issue Feb 23, 2017 · 8 comments
Closed

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

nmr50 opened this issue Feb 23, 2017 · 8 comments

Comments

@nmr50
Copy link

@nmr50 nmr50 commented 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!

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented 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 yan12125 closed this Feb 23, 2017
@nmr50
Copy link
Author

@nmr50 nmr50 commented Feb 23, 2017

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

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Feb 23, 2017

Ramdisk is costs some money

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

@nmr50
Copy link
Author

@nmr50 nmr50 commented 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?:/

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented 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)

@nmr50
Copy link
Author

@nmr50 nmr50 commented 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"..

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Feb 23, 2017

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

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

@nmr50
Copy link
Author

@nmr50 nmr50 commented Feb 23, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.