视频中的图像在不同计算机上处​​理时显示出细微的差异

发布于 2024-12-07 15:41:45 字数 416 浏览 5 评论 0原文

我有一个小视频剪辑,我已经通过我的视频到图像软件运行了它,并注意到图像出现了不同。两组图像是相同的,都是以 1 秒的片段进行切割的。它们的不同之处在于其中一组图像似乎比另一组图像更亮。我试图思考是什么导致了这种微妙的差异,但我不知所措。

我想也许是因为硬件不同会导致这种情况,但我没有在 GPU 上做任何事情。我还认为这可能是正在使用的编解码器,但是如果使用相同的编解码器和信息以相同的方式对视频进行编码,那么解码真的会以这种方式影响它吗?

下面是该程序的列表:

  • 拍摄视频并将其保存为 1 秒图像
  • 使用 C# 中的 DirectX 加载视频并保存纹理。
  • 视频是使用 MPEG-4 类似的压缩进行编码的,

我知道这可能没有太多信息,但我不知道在哪里可以看到。

非常感谢任何建议。

I have a small video clip that I've run through my video to image software and noticed that the images come out different. Both set of images are identical in which they are cut at 1 second segments. Where they vary is one of the images seem to be brighter then the other set. I'm trying to think what can cause this subtle difference, but I'm at a loss.

I thought that maybe because the hardware is different that would cause this, but I'm not doing anything on the GPU. I also thought that it could be the codec being used, but if the video is encoded the same way using the same codec and information then would decoding really effect it in this way?

Below is a list of what the program is:

  • Takes a video and saves it out as 1 second images
  • Uses DirectX in C# to load in a video and saves out the texture.
  • Video is encoded using MPEG-4 similar compression

I understand that this may not be much information to go off of, but I am at a loss of where I can look.

Any advice is greatly appreciated.

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

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

发布评论

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

评论(1

时光是把杀猪刀 2024-12-14 15:41:46

我想说图像实际上并没有什么不同。 MPEG-4 解码不太可能使用任何 GPU 资源。嗯,可以对 MPEG-4 Part 10 进行硬件解码,但它也受到某些条件的限制。更有可能的是,该效果是由于以下原因(或两者)造成的:

  • 如果您在视频流上下文中显示图片,或者正如您提到的使用中的纹理 - 图像可能会出现在视频硬件所在的 YUV 表面上与桌面等常规设备的管理方式不同,并且视频硬件可能具有一组不同的亮度/对比度/伽玛控制,这会导致不同的呈现效果,
  • 您安装了不同的编解码器/解码器,并且它们对视频进行了某些差异的解码,例如后处理;对于所有相同的编码视频,解码后的呈现可能会有点不同

I'd say that images are not actually different. It is unlikely that MPEG-4 decoding uses any GPU resources. Well, it's possible to hardware decode MPEG-4 Part 10, but it's subject to certain conditions too. Far more likely, the effect is due to on of the reasons below (or both):

  • if you show the picture up within video streaming context, or as you mentioned textures in use - the images might be appearing from YUV surfaces which video hardware is managing differently from regular stuff like desktop, and video hardware might be having a different set of brightness/contrast/gamma controls for those, which result in different presentation
  • you have different codecs/decoders installed and they decode video with certain differences, such as with post-processing; with all the same encoded video, decoded presentation might be a bit different
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文