Plex “Downloads” testing

Hey everyone, been doing some testing with the new plex downloads. I initially shared this feedback in Reddit but followed Daves advise to use the oficial foruns for this. So copy paste below:

I’m been testing it lately, on an oneplus one device running a clean android 10 rom, hopefully it’s old enough to work as a semi worst case scenario, as well as, as up to date as possible.

I’ve tried downloading single content and an entire season. None seemed to work properly. I’ll be honest, I’m bummed with this. I constantly get errors saying “failed to download” and I need to tap on it to retry. When I come back, another error. Constantly.
One thing I didn’t like was that I no longer have the option to transcode the downloaded content. If I had a 32 gig storage device I wouldn’t want to download 9 gig movies to it. At least add the possibility of pressing and holding the download button to show a list of resolutions, where we can pick one to transcode to that. (Doesn’t have to be a resolution, it’s just an example) this way if I want to reduce the size of the files I can just pick a different “optimized version”. Yes it’s slower but it’s an option the user should pick. Otherwise, just clicking on the download arrow will trigger the download which on that regard is looking great. (Edit: some of the Reddit comments seemed to hint that this is in fact possible. I might be going blind…)

Now, synced content. I requested it to download an entire season (small one, 13 episodes). Started downloading the 2nd episode. Then the third. Then the first one. Then the 8th. It’s all over the place. This is the worst option because it does not allow me to watch anything until it finishes downloading. And I kept getting the error where it says “couldn’t download x items, swipe to remove or tap to retry” constantly.
I feel like the error handling needs to be looked at because every time the error “1 item couldn’t be downloaded” appears it stops downloading until I tap it again. This is the exact same issue I had with sync in the past. So something is still not right here. I also feel like whenever the screen turns off it throws the error. Not necessarily immediately but frequently enough that I turned on the “caffeine mode” to keep the screen on for 15 minutes to see if it gave the same error - and it did. So I’m not sure what’s up. -

Another thing, you’ll probably want to add more technical details in the download menu. Not knowing what it’s doing (is it downloading anything? It just says “preparing” but it’s been 5 minutes and it’s still preparing… ) is confusing. And the errors make it even worse because there’s no information and the pops out of nowhere.
Edit: On the other hand THANK YOU for adding the total used space in the Downloads menu - life changer!!! -

So yeah. Decent effort. Not quite there it would seem. Contact me if you want logs or to look at the issue directly, I’d be more than happy to assist/share screen/send screenshots or clips if needed.

Example of error below: Plex downloads - Album on Imgur

Edit: oh forgot to add, unifi network in 5ghz channel with ap in the same room. Tried it on an ASUS router, same issues. I do have a pihole but I have no issues with it and plex, nor am I blocking anything plex related, so I don’t think it’s related, but again, available for a check up if needed.

Logs:
plex-log-SeveranExp.zip (2.2 MB)

This is my first time creating logs for plex so if needed I’ll repeat my testing to ensure that I did it properly.

That is there. Look in the Downloads settings. You can set the quality there and all Downloads will follow that. There isn’t a way to set the quality on individual Downloads like you could previously.

It should be going in order. I’ll need to check your logs to see what’s going on. Can you also provide your PMS logs?

It depends on the error. In some cases, Downloads will automatically retry right away, some times, it will retry at a later time, some won’t automatically retry.

It’s possible your phone is disconnecting from your server when the screen goes off. This is controlled by the OS. The app is not active when the screen is off. I don’t know what caffeine mode is, but if you leave the app on the Items tab, the app will keep the device awake.

1 Like

Are you using an original OnePlus One? Your logs show it’s running Android 10. That device was never updated to use Android 10. So are you using a custom ROM? We can’t predict or guarantee that things work with custom ROMs.

1 Like

Ok, so I see the mixed up order of the files. I checked, and apparently, the order is not guaranteed. I’m going to ask if that can be changed.

The error shown is that the length of the original file could not be determined, so the app stopped until it can determine the size to make sure it will fit in the available space. It’s the same error on multiple files. I don’t know why it couldn’t determine the size. I am investigating this. Do you have the files split onto different drives and maybe the drive these files are on is asleep?

1 Like

Yes, original one plus one running lineage OS. It’s an old device, and the os fully supports it.

I have access to multiple xiaomi devices running the original os if needed to cross check the difficulties I’m seeing, if you notice anything weird in the logs I’ll test in the other devices as well- is this acceptable??

Hmm I’m afraid I might have misunderstood your question but I’ll try to answer based on what I understood.
Yes the files are spread across different drives (movies in the movie drive, anime in anime drive - though some libraries are spread in multiple drives), but, what I was syncing was in only one drive (no raid, no stripping, just one file in one HDD).
So when I was downloading the anime season, the entire season is in the same drive.
When I was syncing the movie, it was in only one drive.
As for sleeping drives, no, I did not configure Ubuntu server to spin down the drives. They are running in just the stock behavior.

Is there anything I could try to simulate this issue or to help troubleshoot??
If you’d like for me to do a couple of tests let me know. I have access to a pretty varied suite of devices to test.

I was mainly asking about this. I was thinking if the episodes were spread out across different drives so it may have taken time for one of these drives to spin up and why it wasn’t able to analyze the file to determine it’s size. I’m checking if there is something else that may prevent the file analysis.

1 Like

Oops forgot to answer this one.

Of course, I thought as well that when the screen goes off the might app get disconnected. Caffeine mode is just an option to keep the screen turned on for a specified duration of time. You click it and you have a timer counting back from 5 minutes. Screen stays on during that time.
Thing is, I believe you already saw it from your replies, that I’m still getting the same error even with the screen on.
Also, the expected behavior of a user when using this function, is for it to keep downloading while the screen is off.
As an example, when I’m taking a flight I will open Plex, pick a couple of movies, click “sync” and turn off the screen to save battery.
I would expect Plex to continue syncing / downloading the content during that moment. Otherwise it’s a waste of battery.
Think about it. Our smartphone screens stay off during most of the time. If it’s downloading only when the screen is on it will take days to sync / download a series.

Or at least make that transparent to users somehow? Because at least for me it wasn’t clear at all that the app would get disconnected from the server when the screen was off - rather that was in fact the intended behavior -

That’s actually controlled by the OS. We can keep the screen from turning off while the app is active, and we do as I mentioned above. If something else forces the screen off, there’s nothing the app can do.

However, the screen turning off is not the cause of your problems. It’s not being able to analyze the file properly. I’m still trying to figure out what’s going on. I’m unable to reproduce this issue on my end so it’s hard to pin down.

Okay that makes sense. Do you know off the top of your head the settings that influence that?

Correct.
What information would assist? PMS logs?
Funnily enough there’s one type of content I can download just fine: music. Instant download…
Is there any troubleshoot that I could do to compare what happens when it’s downloading music vs other stuff?

If you recreate downloading that season and grab both the app and server logs so we can compare both ends to see what’s going on.

Can you try the same from another device to see if this might be specific to your device?

Look around the power/battery settings. I know for Samsung devices, they added their own power management options that have caused a bunch of issues.

1 Like

Sorry for the delay, today was a busy day.
Okay, so first, whatever you already did made a world of difference, holy cow. I was actually able to download stuff now! Though now I noticed other things. This time I took notes :slight_smile:

Alright, short description:
Two smartphones, one xiaomi note (8 or 9 , not sure) bone stock, and the other the same oneplus one from before. Same app.

I downloaded a movie, a tv series, and an anime tv series. The anime was the same that I tried to download the last time. Afterwards I did a couple of other tests, better detailed below.

Each content is located in a different HDD.
All downloads were completed successfully! :slight_smile: one small error again in the one plus, but this time clicking on it made it resume and it finished correctly. Maybe it was a bug? Not sure. Hopefully it will pop in the logs.
But regarding the downloads… I dunno, it’s working now!

Now, here’s a funny thing. It’s transcoding even when set to download in original quality… I can’t very well describe it because of cannot see it in Plexamp, or in the dashboard, or the syncing menu. But my cpu is at 80%, and Htop tells me plex is transcoding. Oh and the plex “status” (top right corner health button) tells me that its transcoding stuff, even when downloads is set to original quality.
But the other weird thing is that it’s using my cpu for the transcode.

  • Quick explanation: I have a gtx1050 with the unlocked transcode limit (yes yes you cannot ensure support, don’t worry, it works fine)

So if the download function is transcoding I would expect to see it using the gpu and not put my cpu up to 80%. But it’s definitely hitting my cpu hard.
Buuuut… yes there’s more… my gpu is running transcode processes. (Picture 1 below)
I also noticed that htop has the transcode process running with the flag : -hwaccel:0 maybe that’s it? (Picture 2 below)

One other test I did was to force transcode something - my gpu kicks in, I have the hw flag in my dashboard and everything is fine.
Then, I switched the Downloads option to force 480p, and downloaded the same thing - cpu is hit again.

And that’s it. I don’t think I’ve ever shared these many logs except back in the final fantasy XIV alpha :slight_smile: hope this helps in improving plex!

Pictures:
1)


2)

Logs:

Oneplus one
plex-log-SeveranExp.zip (3.2 MB)

Xiaomi something something
plex-log-tabtab.zip.zip (1.4 MB)

PMS
Plex Media Server Logs_2021-07-06_23-42-09.zip (5.2 MB)

I’d like to chime in on this discussion with a point about hardware transcoding: it seems like hw transcoding works great for the first set of items to be downloaded, but any subsequent items do not use the full processing power during the process. With subsequent items I mean any items from a different series or movie, or next episodes; basically, anything queued after the original first batch of items. This holds up the downloading process and results in continuous downloading errors, until I restart the Plex server, which fixes the issue.

1 Like

The error is the same as before, where the length of the file can’t be determined. We’re still looking into why this happens. Glad it you were able to continue and get it downloaded this time.

According to your logs, it was transcoding due to a bitrate limitation of 1.5 Mbps. Were you trying to stream a video while you were downloading? And did you change the stream quality?

07-06 23:16:39.050 i: [VideoQualityBehaviour] Quality has been updated to Convert to 480p.

That last bit “ quality updated to convert to 480p” was the last test I made - after I tested the other files and noticed that it was transcoding but the gpu wasn’t being used, I forced it to transcode by reducing the quality directly in Downloads.
So this change should appear right as one of the last changes in the logs.
But of course, now that you mentioned this I’m scratching my head and I’ll double check.

And today is going to be another amazing day… unnngh…

Update: I took a look at my devices and double checked that 480p. I didn’t do that change. I changed the Downloads quality to 320. And that was one device (the xiaomi one) only. The one plus wasn’t changed. But I did change the quality of a movie playing to check if the gpu was transcoding properly, maybe that’s what you’re seeing?
Anyway, In round about 10 hours I’ll do more tests to double check.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.