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

使用rrvideo生成的视频是模糊的 #21

Open
xtlzt opened this issue Jul 11, 2022 · 7 comments
Open

使用rrvideo生成的视频是模糊的 #21

xtlzt opened this issue Jul 11, 2022 · 7 comments

Comments

@xtlzt
Copy link

xtlzt commented Jul 11, 2022

No description provided.

@xtlzt
Copy link
Author

xtlzt commented Jul 11, 2022

ffmpeg 加 "-qscale",
"0.01",解决了这个问题

@shanze680
Copy link

请问在哪里加?

@xtlzt
Copy link
Author

xtlzt commented Jul 25, 2022

Uploading 企业微信截图_16587425943493.png…

@xtlzt
Copy link
Author

xtlzt commented Jul 25, 2022

再index.ts 里面ffmpeg里面加一个这个参数
const args = [
// fps
"-framerate",
this.config.fps.toString(),
// input
"-f",
"image2pipe",
"-i",
"-",
// output
"-y",
"-qscale",
"0.01",
this.config.output,
];

@shanze680
Copy link

解决问题,给老哥点个赞!!!
加个这个参数,视频体积大了好多

@shanze680
Copy link

生成的mp4格式拖进浏览器没法播放,请问怎么加参数转成libx264。我各种加都提示无效的参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@xtlzt @shanze680 and others