图像序列到视频质量

发布于 2024-09-07 15:24:20 字数 1459 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

远山浅 2024-09-14 15:24:20

该命令的输出质量很差,原因如下:

  • 它使用 MPEG-1 编解码器进行编码,该编解码器已经非常过时了。
  • 您没有设置比特率,因此它会提出自己的猜测,这可能是不够的。

尝试类似:

ffmpeg -f image2 -i image%d.jpg -vcodec mpeg4 -b 800k video.avi

对于 mpeg 4 视频或:

ffmpeg -f image2 -i image%d.jpg -vcodec libx264 -b 800k video.avi

对于 H.264 视频(您需要安装 libx264 才能正常工作)。您可以调整比特率,因为它取决于帧的大小以及您需要的比特率。此外,如果您想进行更多实验,运行 ffmpeg -formats 将会显示所有输出格式和编解码器。

有关更多选项,请参阅 ffmpeg 文档

The quality of that command's output is bad for a few reasons:

  • It is encoding using the MPEG-1 codec, which is quite outdated.
  • You are not setting the bitrate, so it is coming up with its own guess, which is probably inadequate.

Try something like:

ffmpeg -f image2 -i image%d.jpg -vcodec mpeg4 -b 800k video.avi

for mpeg 4 video or:

ffmpeg -f image2 -i image%d.jpg -vcodec libx264 -b 800k video.avi

for H.264 video (You will need to have libx264 installed for this to work). You can play around with the bitrate because it depends on the size of your frames what bitrate you will need. Also, running ffmpeg -formats will display all of the output formats and codecs if you want to experiment more.

See the ffmpeg documentation for even more options.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文