Giter Club home page Giter Club logo

Comments (23)

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024 1

You wouldn't believe it but that's exactly where I went.
This is me starting playback, scrubbing to 24:05 letting it get to 24:14 and it restarting playback.
image
Kind of worried about Content-Length is -1 (of total: -1) and - got played 0ms by account 1!

And also:
image
Not sure what to think about this ^

from plex_debrid.

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024

Oh and it also skips around quite a bit, like I just pressed play for the first time on this movie and it did play ~3s and then skipped to 30 and turned to mash.
image

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

Hey, thanks for using the code, makes me even more sorry you are experiencing these errors.

  1. The playback issues look like some kind of fault with rclone. Did you try restarting rclone? What command are you using to mount? There are quite a few settings that you could try, which might improve your playback. One I would suggest is expanding or lowering the chunk size in which rclone downloads your files. The default is 128M I believe, you could try lowering it to 64M for example. The mounting tag would be: --vfs-read-chunk-size 64M.
    Have you checked whether or not plex is transcoding the movies you watch? Realdebrid will work best if you play in original quality.

  2. Have you checked wether your api key has changed? Perhaps after the refund your token was renewed/ you have a different account now,

from plex_debrid.

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024

Ok to summarize what happened: slow ssd is a big no no, and still couldn't get much functionality.

  1. Yeah, I restarted rclone multiple times since, even the whole computer.
    I'm using rclone cmount funny-remote: Y: --dir-cache-time=10s --vfs-cache-mode=full.
    I just copied the one from your readme, and tbh I haven't looked into the other settings as I didn't have time this past week.

I did check transcoding and even tried turning everything down to the minimum and upped the buffer size, to no avail.
image
It gets to exactly 36 seconds each time and then stops with the error h3 (Decode)
image
And if I completely disable video stream transcoding it says there isn't enough CPU for that. Alright...

Then I tried it with the tag you gave me, using 64M and 256M, changed the cache drive and it seemed to actually work for a solid 10 minutes.
(rclone cmount funny-remote: Y: --dir-cache-time=10s --vfs-cache-mode=full --vfs-read-chunk-size 64M --cache-dir=D:\RCloneCache)

And then out of the blue this happened:
image
This one I have no clue what it means. (also it's only happened once, haven't seen it since)

64M seems to have helped somewhat (as in, it decodes longer now).

So I sat down to watch the movie but, again, after everything I tried it still just randomly shits the bed:
image
^^^ There is clearly enough buffer for it to continue playing but it just refuses. I tried buffer sizes of 60, 120, 240, 300, 600.
(Yes I tried combinations of buffer sizes and the two different size cache flags. just hoping something would work)

At this point I'm starting to believe the files are corrupted in some places or I'm getting those random cosmic bit flips that screw everything up 🤷

  1. Yes that's the first thing I went to check and the key is exactly the same. Sorry I should have mentioned it, although, I don't seem to be getting that error anymore.

  2. Kind of unrelated but GPU decode should definitely not be a plex pass feature, at that point I might as well buy subscriptions for all the streaming platforms that exist. Not your fault obviously, just blowing off some steam...

Also sorry for the essay :)

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

That rclone error indeed looks weird.. might have been one of those cosmic bitflips ;)

As for 1):
Alright, that already rules out a whole lot of possibilities! One way to check if the issue is only with plex would be to just open the movie with VLC or some other media player.

If everything plays fine when directly opening the file, plex should be able to direct play it too. Its very weird that Plex tells you you dont have enough CPU performance for direkt play, since direct play wouldnt need transcoding at all! When watching through the browser, Plex is sometimes forced to transcode since browsers don't support all file formats. You could try to download the Plex HTPC (Home Theater PC) client, which should support more formats for direkt play. There is also an option in the plex web player you could try out, as detailed in this post on the plex forums. Without a Plex subscription, your mobile devices are limited to a 720p stream (i think). This will force your plex server to transcode any media item that is higher quality than 720p, which could lead to this error on your other devices. If plex really is the culprit here, could you tell me what kind of hardware you are trying to run this on?

If the files seem to be broken when playing with VLC, the issue lies either with rclone or the file itself. To check if the file works properly, you could just download it from realdebrid to your local disk and try to play it with VLC.

If everything works fine with the downloaded file, the issue lies with rclone. There are some more tags that we could try: --vfs-cache-mode off for example. If the issue really is with rclone we can definitly try some more things.

If the file really is broken (which is pretty unlikely i think) your only option would be to download a different release and try again :/

Edit: Do you have any media items that are not in the h/x265 codec? The codec should be named in the torrent or file title (e.g. .x/h265. or x/h264). Could you try to play one of the h/x264 files and see if the errors are the same? Perhaps your hardware doesnt support h/x265. In the standard release sorting x265 releases are prefered.

  1. Does the script still work when downloading new content? From the first logs you showed it almost looks like it works fine despite the error.

  2. Yeah. Plex really isnt great, but i still think its the best option out there.. If you are running this on windows, you wont be able to use your GPU for transcoding anyway. Plex for windows only supports CPU hardware en/decoding as far as i know.

from plex_debrid.

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024
  1. Ok it turns out chrome bugs something fierce and absolutely refuses to play the video at original quality without any transcoding. Plex HTPC definitely works and so does the mobile app (couldn't tell you why it didn't work before, makes no sense but ok). It's still having issues with randomly stopping or skipping small stretches of video. Opening the file with VLC works for a bit but has the same issue of corruption? Then downloading a file from real debrid works completely fine with no artifacts or skipping. The --vfs-cache-mode off flag didn't have any noticeable impact so I just reverted to 64M of cache.

How would I download a different release?
I removed some indexers that were slow but that didn't change anything.

Also both movies I tried apparently are h.264/5
image

  1. It appears to have been a one off thing, haven't gotten the error since. I really wouldn't know what to tell you :(
  2. Oh, well idk I googled GPU decoding for plex when I got those "not enough CPU" errors. The one answer I found was them telling off someone because they didn't have plex pass.

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

Alright, then the problem lies with rclone :) rclone doesnt seem able to keep up with plex. I would recommend you read the rclone mount dochmenation, but here are a few things you can try:

  • Add this flag in addition to the chunk size flag: --vfs-read-chunk-size-limit 128M (could be better if its even less)
  • Change the mount type to a network drive If you are on windows

Here's the entire dochmenation: https://rclone.org/commands/rclone_mount/

from plex_debrid.

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024

Hey, I tried that chunk size flag, even turned it down to 64M and changed the mounting drive to a network drive.
And it was all going smoothly until about half an hour in, then the movie just restarted :c

Also sorry for the delayed response, it's taking even longer now that it sort of works to properly test it.

I genuinely don't know what flag I could use from the docs, I'm not very well versed in the science of virtual drives. Hope you understand. (Yes this is me asking to be spoon fed, please)

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

No problem at all. Could you tell me the sort of hardware you are trying to run this setup on? One unlikely possibility is that your servers hardware just isnt good enough for a setup like this. Your internet connection does seem quick enough, but perhaps your RAM or HDD disk space is too small or too slow. Your CPU could also be too slow.

The network drive mode would be this flag, but it looks like you found it already:

To mount as network drive, you can add option --network-mode to your mount command. Mounting to a directory path is not supported in this mode, it is a limitation Windows imposes on junctions, so the remote must always be mounted to a drive letter.

rclone mount remote:path/to/files X: --network-mode

There is also the buffer size which could be helpful:

The --buffer-size flag determines the amount of memory, that will be used to buffer data in advance.
Each open file will try to keep the specified amount of data in memory at all times. The buffered data is bound to one open file and won't be shared.
This flag is a upper limit for the used memory per open file. The buffer will only use memory for data that is downloaded but not not yet read. If the buffer is empty, only a small amount of memory will be used.
The maximum memory used by rclone for buffering can be up to --buffer-size * open files.

You could try to set the dir cache time higher, which could result in smoother performance.

There are some more commands that can improve performance, as detailed here:

--no-checksum     Don't compare checksums on up/download.
--no-modtime      Don't read/write the modification time (can speed things up).
--no-seek         Don't allow seeking in files.
--read-only       Only allow read-only access.

Id recommend you try mounting with this command:

rclone cmount funny-remote: Y: --dir-cache-time 60s --network-mode --vfs-cache-mode full --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit 64M --buffer-size 128M --no-checksum --no-modtime --read-only --cache-dir D:\RCloneCache

This is about as restricted as you can get rclone, so if this doesnt work try to increase the vfs-read-chunk-size, vfs-read-chunk-size-limit and buffer-size. With the read-only flag you will not be able to delete content, but it might improve overall speed.

Oh and of cource try to get Plex to 'direct play' the movie/show you are trying to watch, as we discussed earlier :)

from plex_debrid.

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024

See I put in my specs multiple times before but I just scrapped it when I found a solution to something, whoops :)

Windows 11
i9 9900k - 8 cores 16 threads up to 5.0ghz (only ever got to 100% when chrome was doing it's hardest not to play the video)
RTX 2070 (basically never touched)
16GB 3200mhz DDR4 (didn't see much over 500mb of usage from plex/the script/rclone/jackett combined)
2tb m.2 SSD with 3000 read 2000 write (5-15% usage when the movie is playing)

You could say it's a bit outdated hardware or not suited for a server but it's not some 2009 laptop for sure.

I'm assuming this doesn't help much but the movie "Hustle" gets to 24m14s and restarts with my old command and the command you gave me. Increasing read-chunk-size, size-limit and buffer-size still gives the same results
image
^ No difference from 32M - 64M - 128M
Scrubbing forward and backward works fine, it only restarts when it gets to certain points...

And on mobile when it gets to 24m14s it actually just jumps to 25m52s

Yes, Direct Play is enabled (HTPC):
image
I didn't see an actual "Direct Play" button (Mobile):
Screenshot_20220621-123608_Plex
Screenshot_20220621-123712_Plex

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

That hardware is good enough for sure!! You shouldn't need any of the buffer size restrictions at all.. I'll try to look for a solution online, someone must be experiencing similar issues.

from plex_debrid.

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024

Oh I feel really bad, you shouldn't have to google for me... I'll give it a shot as well :)

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

Alright I did find another option, try adding --vfs-read-ahead 200M ?

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

Are you using any sort of proxy or VPN?

from plex_debrid.

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024

Might be completely unrelated but it's worth a shot, found a thread on plex forums and people think it's something to do with the AC3 audio format, which is what one of the movies has
image
And the other doesn't
image

--vfs-read-ahead 200M didn't work, still skips at 24:14

Not using a VPN but I am using the cloudflare 1.1.1.1 DNS

from plex_debrid.

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024

And that codec theory is a nope.

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

Damn.. dns shouldn't be a problem either. You could try to set the Plex cache directory to some specific folder on your ssd, but I doubt that will help either

Screenshot_20220621-134909_Chrome

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

It could very well be the audio issue you mentioned, but movies with other audio stop playing too, right?

from plex_debrid.

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024

I mean it shouldn't be transcoding anything anyway but yeah, no success.

Tried disabling this relay thing in the network tab and it behaved like the mobile version once (skipping about a minute ahead) but it went back to restarting playback when I scrubbed back to 24:14
image

Yep...

It could very well be the audio issue you mentioned, but movies with other audio stop playing too, right?

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

OK so I'm basically out of ideas now :( is there anything interesting in the plex logs? You can view the logs by navigating to settings/manage/console

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

I get the query parser issues too, I don't think that's a problem.
I honestly have no idea how to proceed :/ Have you tried restarting you PC? :D
You could try to reinstall plex, aswell as WinFSP (the software needed for rclone)..
Here would be the latest winfsp release, with official win 11 support.
I don't know. This might be some windows 11 issue with rclone or plex, I don't think there is much else I can do to help you unfortunately :(

from plex_debrid.

BluePotatoBP avatar BluePotatoBP commented on May 16, 2024

I don't know how up to date this article is but it doesn't mention Windows 11, and yeah I've just done a reinstall of plex server, rclone and winfsp but it didn't change anything. I guess I'll just leave it and check in after a few weeks. I hope something magically fixes itself or an update does it. Thank you so much for your help and sorry for wasting your time once again :)

from plex_debrid.

itsToggle avatar itsToggle commented on May 16, 2024

Hey, just a quick update: RealDebrid now implemented a WebDav server. This might be a long shot, but you could try to mount their webdav server with the official rclone software, instead of my fork. You can find instructions on the plex_debrid readme page.

Their Webdav server is currently in beta, and at the moment its definitly a feature-downgrade from my fork, but perhaps using the official software will fix your issues? May be worth a try :)

from plex_debrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.