-
Notifications
You must be signed in to change notification settings - Fork 163
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
Fix x265 2-pass params #636
Conversation
Thanks again! Looks like it needs a rebase though. |
Rebased. |
Hmm, it looks there's 2 issues now.
|
The cause of the second issue seems to be that the parsing code relies on returning |
Rebasing should fix the second issue. |
Error in the first issue is: |
Or it's possible to just use |
Specifying |
|
I see, thanks. In that case that makes things even more simple. Not sure if we want to detect which profile to use based on the resolution, but I'm fine with simply adding |
I think |
That seems OK, but for some reason I seem to get infinite stalling with 4k SDR with |
Yeah, in 2 pass encodes if encoder fails in 1 pass, then it just stalls. That's #240 I think. |
That shouldn't be the case anymore as of the Rust version. The issue you linked was opened when the project was still written in Python. If I add an invalid option to the first pass on purpose (like, in the
The strange thing is that the x265 processes still exist, it just stalls infinitely with 1-2% CPU usage. |
OK, I've added 5.0 level which is a nice middle-ground since it supports 4k (up to 32fps) and can be hw-decoded even in my old tablet made in 2016. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me. Thanks!
Seems like it was copypasted from
x264
, but inx265
some options are different. Plus added--analysis-reuse-file
option which is used for--multi-pass-opt-analysis
and--multi-pass-opt-distortion
and ignored if neither specified.