8000 '--extra-encoder-option' 未按照预期工作 · Issue #1377 · k4yt3x/video2x · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

'--extra-encoder-option' 未按照预期工作 #1377

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

Open
janjin123 opened this issue Apr 25, 2025 · 4 comments
Open

'--extra-encoder-option' 未按照预期工作 #1377

janjin123 opened this issue Apr 25, 2025 · 4 comments
Labels
false positive This isn't a issue state:Backlog This issue will be worked on in the future

Comments

@janjin123
Copy link

【预期现象】

当键入以下命令行时

video2x.exe -i Sample.avi -o Output.mkv -p realesrgan -s 4 -c libx265 -e crf=20 -e preset=veryslow -e psy-rdoq=1.05

Video.exe 命令行工具接受 --extra-encoder-option 参数,本例中,这个参数在 libx265 的形式是 x265.exe --psy-rdoq 1.05

【实际现象】

video.exe 给出错误提示 [warning] Failed to set encoder option 'psy-rdoq' to '1.05': Option not found

该参数未被使用

【复现方式】

绝大多数 libx265 参数均会出现该问题,如

video2x.exe -i Sample.avi -o Output.mkv -p realesrgan -s 4 -c libx265 -e crf=20 -e preset=veryslow -e no-strong-intra-smoothing

@janjin123 janjin123 added the type:Bug Something isn't working label Apr 25, 2025
@github-actions github-actions bot added the state:Backlog This issue will be worked on in the future label Apr 25, 2025
@k4yt3x
Copy link
Owner
k4yt3x commented Apr 25, 2025

FFmpeg 的 libx265 不支持 psy-rdoq 这个参数

Image

我觉得 --extra-encoder-option 没毛病

@k4yt3x k4yt3x added false positive This isn't a issue and removed type:Bug Something isn't working labels Apr 25, 2025
@janjin123
Copy link
Author

FFMPEG 中的 -x265-params 是可以支持 libx265 中的绝大多数参数参数的,如

ffmpeg [ foo bar ] -x265-params crf=26:psy-rd=1

参见 https://ffmpeg.org/ffmpeg-all.html#libx265

但是,如果 video2x.exe -foo -bar -c libx265 -e x265-params psy-rd=1

仍会报错

@k4yt3x
Copy link
Owner
k4yt3x commented Apr 28, 2025

-e x265-params psy-rd=1

我不觉得 video2x 能认得这个格式,你可以试试看 -e x265-params=psy-rd=1

@janjin123
Copy link
Author

诸如:
video2x.exe -foo bar -e x265-params=psy-rd=1.01
或:
video2x.exe -foo bar -e x265-params=psy-rdoq=1.05
均有效,ffmpeg 可以识别 psy-rd=1.01psy-rdoq=1.05 参数

但是诸如:
video2x.exe -foo bar -e x265-params=psy-rd=1.01 -e x265-params=psy-rdoq=1.05
则出现问题。具体为:
ffmpeg 只收到其中一个参数(个人测试为,只收到后面那个参数,也就是 x265-params=psy-rdoq=1.05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false positive This isn't a issue state:Backlog This issue will be worked on in the future
Projects
None yet
Development

No branches or pull requests

2 participants
0