以可变帧率写入视频帧

发布于 2024-07-14 11:09:46 字数 384 浏览 3 评论 0原文

我正在使用 AVIFile Wrapper 从我的 WPF 应用程序创建视频。 我正在使用 CompositionTarget 抓取每个帧的图像,但我遇到帧速率问题。 当我的应用程序因数据负载过重而变慢时,CompositionTarget 帧速率会下降。 由于视频帧较少,当我播放时,这些部分会显示为快进。

是否有视频格式/库允许我使用可变帧速率,或者我可以修复 WPF 帧速率以便不丢帧吗?

编辑-> AVI 中的帧没有关联的时间代码,其他哪种视频格式有? 有这样做的标准方法吗?

I'm using the AVIFile Wrapper to create video from my WPF app. I'm using CompositionTarget to grab an image for each frame but I'm having problems with framerate. As my app slows down with heavy data load, the CompositionTarget frame rate drops. With less video frames, when I play back these parts appear as fast forward.

Is there a video format/library that will allow me to work with variable framerates, or can I fix the WPF framerate so I don't drop frames?

Edit -> the frames within an AVI don't have a time codes associated with them, which other video format does? Is there a standard way of do this?

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

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

发布评论

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

评论(2

不羁少年 2024-07-21 11:09:46

使用 AVI 文件执行此操作的标准方法是为每个跳过的样本写出一个零大小的视频帧。

The standard way to do this with AVI files is to write out a zero-size video frame for each skipped sample.

一腔孤↑勇 2024-07-21 11:09:46

您链接到的页面在“从视频和声音复制剪辑”下包含有关设置可变帧速率的信息,但没有提供有关将时间代码与帧关联的任何信息。

The page you linked to has information about setting variable frame rates, under "Copy a clip from video and sound", but that doesn't give any information about associating time codes with frames.

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