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

Set video MaxVideoDecodeResolution to TV resolution #1557

Closed
wants to merge 2 commits into from

Conversation

cewert
Copy link
Member

@cewert cewert commented Dec 7, 2023

This sets MaxVideoDecodeResolution on the video node to the attached devices resolution to try and prevent memory errors when playing certain files. The default is unlimited and that's what we were using before.

Changes

  • Set video MaxVideoDecodeResolution to TV resolution
  • Update the global device state whenever the audio/video codecs change in case the displays resolution has also changed

Issues

Fixes #1554

@cewert cewert added the bug-fix This fixes a bug. label Dec 7, 2023
@cewert cewert requested a review from a team as a code owner December 7, 2023 02:13
@cewert cewert changed the base branch from unstable to master December 14, 2023 15:08
@cewert cewert force-pushed the fix-video-memory-crash branch from e2d5243 to d4e53f9 Compare December 16, 2023 01:55
@jellyfin-bot
Copy link
Contributor

This pull request has been inactive for 21 days and will be automatically closed in 7 days if there is no further activity.

@jellyfin-bot jellyfin-bot added the stale This issue/PR has gone stale. label Jan 7, 2024
@1hitsong
Copy link
Member

@cewert In our testing we found this didn't fix the issue. Is this still a viable PR, or can it be closed?

@cewert
Copy link
Member Author

cewert commented Jan 13, 2024

I wasn't able to test but you guys said this PR didn't help with the error. I don't see how merging this could hurt anything but yea we should probably just close it and wait to mess with this setting until a crash or something forces us to.

@cewert cewert closed this Jan 13, 2024
@cewert cewert deleted the fix-video-memory-crash branch January 14, 2024 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix This fixes a bug. stale This issue/PR has gone stale.
Projects
Development

Successfully merging this pull request may close these issues.

buffer loop exception:Reserve size (61100564) exceeds max_allocation (46976204)
3 participants