Gstreamer-java颜色失真
我正在使用 gstreamer-java 播放视频。
当我将程序移至 ubuntu 并用它播放视频时,红色和蓝色会切换,就像......人们的脸是蓝色的。
如果我在 Windows 上运行相同的程序,则不会出现任何颜色问题。 我在谷歌上做了一些搜索,这是我发现的 https://answers.launchpad.net/ubuntu/+source/totem/ +问题/7373 我在这里遵循了很多这些人的建议,但它在 ubuntu 上仍然不起作用.. ubunutu - totem 中的电影播放器(使用 gstreamer)可以正确显示同一视频文件的颜色。
有什么方法可以使用 gstreamer-java 来控制 gstreamer 来更改颜色设置,使其看起来正确吗?
谢谢!
I am playing video with gstreamer using gstreamer-java.
When I move my program to ubuntu and play video with it, the red and blue colors are switched, like..the people's faces are blue.
If I run the same program on windows, I don't have any color problem..
I did some search on google and here is what i found
https://answers.launchpad.net/ubuntu/+source/totem/+question/7373
I followed a lot of these people's suggestions here, but it still doesn't work on the ubuntu..
The Movie Player in ubunutu - totem (using gstreamer) can display the colors correctly for the same video file.
is there any way I can control gstreamer using gstreamer-java to change the color settings so it looks right?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您正在使用 XVideo (XV) 或 OpenGL 输出。显卡驱动程序可能有问题。一种解决方案是使用非加速 X11 输出,该输出将慢得令人痛苦,但不会出现您提到的工件。
I think you are using the XVideo (XV) or OpenGL output. There is probably a problem in the graphics driver. One solution is to use unaccelerated X11 output which is going to be painfully slow but won't have the artifacts you mention.
您能否提供您也应该在 gstreamer-java api 中使用的 gst-launch 管道字符串?根据您的描述,图像似乎显示为 RGB 而不是 BGR。这是因为视频缓冲区在 Java API 中以 Big Endian 形式接收。您可能需要在 http://groups.google.com/group 上引用此补丁/gstreamer-java/msg/f93e7900d3028c51
Could you provide gst-launch pipeline string which you should also be using in gstreamer-java api? From your description it looks like the image appears as RGB instead of BGR. This is due to video buffers being received as Big Endian in Java API. You may want to refer this patch on http://groups.google.com/group/gstreamer-java/msg/f93e7900d3028c51