Hello,
I am currently using plex via bitcasa's linux client. I would like to develop a plugin that would allow me to add content to plex via scanning the Bitcasa API. But I realized, PMS seems to actually open files as part of the scan. So I figured before I REALLY started trying to build something like this are the following things even possible:
1. "Safely" add media to the plex database directly
2. Point plex to a cloud folder via link and have it scan its sub directories via xml tree
3. Join multiple plex databases? (One of which would be custom created)
b. Give plex xml/json metadata to add to its db
Any help/direction you could give on this would be much appreciated. :)
Why would you want to do this? What would be the advantage?
The easiest way to put it is to manually create a cloudsync section. It would use the bitcasa api for streaming which is way more efficient than running the client.
Sent from my iPhone using Tapatalk
The easiest way to put it is to manually create a cloudsync section. It would use the bitcasa api for streaming which is way more efficient than running the client.
Sent from my iPhone using Tapatalk
It wasn't clear that that's what you were trying to do.
You should keep an eye out on this: https://github.com/thejinx0r/BitcasaF4JS
It's probably the simpler solution. It implements a fuse filesystem in nodeJS.
What it does is download files in small chunks (user defined) and then it can stitch them back together.
Outside of plex, I can watch 1080p videos without any problems using VLC, which is pretty neat.
On a VPS, I have been able to download a 750mb file (from bitcasa) in 2 minutes.
In an older implementation of the code, where there was no FUSE filesystem involved, I was able to download at around 65MB/s, (or around 520Mbits).
I cant say im having any issues streaming via the client. The issues are more with ram usage. But what im hoping to accomplish is removing the server from the picture in that the user will be streaming via a bitcasa api url as opposed to via the bitcasa client
Sent from my iPhone using Tapatalk
I cant say im having any issues streaming via the client. The issues are more with ram usage. But what im hoping to accomplish is removing the server from the picture in that the user will be streaming via a bitcasa api url as opposed to via the bitcasa client
Sent from my iPhone using Tapatalk
The Fuse filesystem I wrote is not memory heavy. It might be at times, but its definitely lighter than the Bitcasa client itself. The highest I've seen it use is around 200mb.
The only downside is that I think plex does need to rescan the whole library, but it's an option.
For now though, there does seem to be parallelism issues, where the fusefs cannot be accessed and download at the same time. This causes plex to stutter, but it should be fine if using PlexHT since it has its own cache system.
I actually would like to have a slight different solution. I have unlimited Google Drive storage, and a very limited local storage. In my case bandwidth is not an issue, I have a 240Mbps pipe, so my idea would be to have all my original files on Google Drive, and have Plex scanning a Google Drive folder, then once I request a file it streams to the device.
It would be quite nice to see that.
I actually would like to have a slight different solution. I have unlimited Google Drive storage, and a very limited local storage. In my case bandwidth is not an issue, I have a 240Mbps pipe, so my idea would be to have all my original files on Google Drive, and have Plex scanning a Google Drive folder, then once I request a file it streams to the device.
It would be quite nice to see that.
This would be a great starting point for me as well actually. It seems like the most realistic approach to this.
Just gonna leave this here: https://github.com/dsoprea/GDriveFS
;)
*Laughs at inside joke*
My goal is bigger than a single provider's performance. I want to remove the pms host server as a "third party" in between communicating with the content stored on Google drive, for example.
If PMS was able to look at the Google Drive (even via Google's APIs) just to index the contents, Google Drive WILL play back streams of audio/video/photos at this point WITHOUT other software. So, if a device was able to stream from Google Drive (say a Chromecast for example) it would be cool if the Plex client could look at the information on the PMS host, then tell the Chromecast to get the video from Google Drive INSTEAD of the PMS host. This would reduce all sorts of things getting in the middle and needless bandwidth usage.
Maybe something like Couchy TV or DriveCast on the Roku.....
Just a thought.
*Laughs at inside joke*
My goal is bigger than a single provider's performance. I want to remove the pms host server as a "third party" in between communicating with the content stored on Google drive, for example.
Wouldn't that be something like XBMC / Kodi basically with a centralized MySQL (or whatever it is) database?
I love this idea…I brought it up when CloudSync was new (via twitter) and elan replied, saying it was a great idea. Pretty sure it’s on their radar. If plex streamed from bitcasa directly vs. mounted cloud drive, that would most likely improve remote streaming, which I would absolutely love.
Wouldn't that be something like XBMC / Kodi basically with a centralized MySQL (or whatever it is) database?
The centralized db could solve half the problem but being able to supply cloud storage api stream links as opposed to file paths would still be an issue.
I love this idea...I brought it up when CloudSync was new (via twitter) and elan replied, saying it was a great idea. Pretty sure it's on their radar. If plex streamed from bitcasa directly vs. mounted cloud drive, that would most likely improve remote streaming, which I would absolutely love.
When cloudSync was first introduced I was trying to figure out why this wasn't implemented first lol
Does anyone know if this is something the Plex developers would be looking at? It would be awesome to remove my local server out of the equation and have all content in Google Drive and the Plex Web Server indexing the contents of specified folder in the Google Drive account.
There is another thread here that also touches on this with a slightly different approach. However, the base functionality is still the same.
Please go over and like that post.
Does anyone know if it would be possible to implement some sort of fuse file system that would link to an http url as a redirect as opposed to a stream?
So for example,
Does anyone know if it would be possible to implement some sort of fuse file system that would link to an http url as a redirect as opposed to a stream?
So for example,
What's the difference between "http url as a redirect as opposed to a stream"?
The fuse filesystem does allow Plex Media Server to stream directly from https://mycloudprovider.tld/?apikey=&hash=
This what I did with this project: https://github.com/thejinx0r/BitcasaF4JS
Essentially, the fuse filesystem presents the file to PMS, for example, /path/to/fuse/myfile.mp4, in a format plex can understand. Behind the scenes, the fuse filesystem will know where "/path/to/fuse/myfile.mp4" is in the cloud (https://mycloudprovider.tld/?apikey=&hash=) and fetches (and hopefully caches) the required data when needed.
Going back to the feature vote you linked, it should be possible to do this with fuse.
I've seen someone create a fuse filesystem for reddit (https://github.com/redditvfs/redditvfs) and there have been other attempts at it too if you look on google/github.
So a fuse FS for spotify and netflix? Very well possible, but it just takes time to build.
The difference here, for me anyway, is that I want plex to realize that the file is "remote" and then pass the stream url on to the client so that PMS and the host server aren't involved with the stream. (Sorry should have said Client above)