mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[Issue]: ffmpeg needs custom arguments #6096
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @podhorsky-ksj on GitHub (Jul 7, 2024).
Please describe your bug
Hardware (vaapi) does not support videos with higher resolution. See the log bellow
I have found some arguments for ffmpeg, which could help - https://stackoverflow.com/questions/54063902/resize-videos-with-ffmpeg-keep-aspect-ratio?rq=1.
I can't put it to jellyfin encoding.xml configuration. Not even after ffmpeg path. It is always rewritten.
Also ffmpeg seems to have noautoscale argument (see log), which will be probably against this configuration I would add.
Reproduction Steps
Jellyfin Version
10.9.0
if other:
No response
Environment
Jellyfin logs
FFmpeg logs
Please attach any browser or client logs here
No response
Please attach any screenshots here
No response
Code of Conduct
@jellyfin-bot commented on GitHub (Jul 7, 2024):
Hi, it seems like your issue report has the following item(s) that need to be addressed:
This is an automated message, currently under testing. Please file an issue here if you encounter any problems.
@podhorsky-ksj commented on GitHub (Jul 7, 2024):
It was needed to do like that. If needed, I will provide more, but I don't think to. Issue is known.
@felix920506 commented on GitHub (Jul 7, 2024):
Sorry but your hardware is too old to be of any use to Jellyfin. Please refer to https://jellyfin.org/docs/general/administration/hardware-selection to select appropriate hardware.
@gnattu commented on GitHub (Jul 7, 2024):
To clarify this: your hardware decoder cannot decode videos higher than 2K width/height and the "custom argument" you provided cannot workaround this. You have to disable hardware acceleration if you want to play the file beyond your hardware capability.
@podhorsky-ksj commented on GitHub (Jul 7, 2024):
Yes I know. But I would like to somehow separate bigger videos (without hw acceleration) from smaller with hw acceleration. When I was looking on google for solution, I have found similar issues with e.g. resolution limit 4000. So this issue will be still here and sometimes it will block someone.
I'm thinking about workaround. Create script, which would wrapup ffmpeg and selected as default ffmpeg in jellyfin. And when there are send videos with attributes and location, it would parse it and check the video resolution and if it is bigger, remove vaapi acceleration. But it would be better to have something like this directly in jellyfin.
@podhorsky-ksj commented on GitHub (Jul 9, 2024):
Hmm, I just finished the script. It is working ok, but the speed without HW acceleration is really slow.
But what is interesting, encoded parts, which had played, were removed in player. I don't have remove encoded parts enabled in settings. It seems some parts are kept in buffer...