omega-gg / MotionBox

Video Browser for Motion Freedom
http://omega.gg/MotionBox
GNU General Public License v3.0
115 stars 14 forks source link

[Feature Request] Save files #10

Closed kilon closed 2 years ago

kilon commented 5 years ago

Thank you for this amazing app , I love it !

I would like to save a streaming video to a file, do not know if this is already possible. I see that they are saved in cache folder but they do not have names that are easy to identify.

I would like to save playlists with my own filenames as well.

3unjee commented 5 years ago

Hello kilon,

Video downloads is something I would like to add down the road. Unfortunately I have loads of other things to do before. Contributions on that topic are welcome.

What do you mean exactly by "save playlists" ?

kilon commented 5 years ago

I dont mind putting my money where my mouth is, so contribution is doable and its fair for you to ask for help but I must warn you me and C++ do not like each other much 💃 (I code in C and Python, 3d graphics stuff mostly)

I dont think you understand what I am suggesting. You already download those videos because you have the cache , or else how it would be possible to watch them ?

What I ask is the ability to take these cache files when they become a complete download and easily rename them and of course keep them around. Playlist the same, I want to pick the name of their files and their folders by myself so I easily know which is which. This then will make it much easier to say move my playlists from one computer to another.

I have no idea what you mean by "add video download down the road" because I dont see how the app can allow me to watch videos without downloading them first.

Seriously what kind of dark magic this is ? 🤣

So in my mind those dowloads already exist but obviously are not kept around cause are used as temporary files and as a user I have no means to rename unless I go manually inside the folder find which is which and rename them manually.

Is that make more sense now ?

PS: I do not mind contributing but I will need help to figure out the code. I am already battling with 2 million lines of C code in Blender without comments and documentation so as you can imagine I would like this to be a more pleasurable experience. So if you dont mind slow coder bombarding you with a thousand question (I wont ask you to teach me C++ or QT of course) , count me in.

3unjee commented 5 years ago

Yes, technically streaming is downloading, except you don't necessarily keep the entire file at all time. It could be a chunk depending on the seeking position, or you could have the data in memory instead.

Thus, implementing a way to download the entire file and have it saved on the hard drive isn't something trivial. Especially when you consider the fact that you want to keep streaming functional while you download the file.

As for playlists they are currently "saved" under the "playlists" folder. They are just XML files so you could probably copy paste these from one computer to the other. As long as you copy paste everything since proper export is not implemented.