视频显示,帧率640x480 @ 30fps可实现吗? [英] Video display, frame rate 640x480 @ 30fps achievable?

查看:168
本文介绍了视频显示,帧率640x480 @ 30fps可实现吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我需要开发一个应用程序,显示视频640x480 16位/每个
像素,30 fps。


我更喜欢用Python(wxPython)做到这一点,但是没有任何

经验,无论是否有可能达到帧率并仍然是

有剩余资源用于其他处理吗?我的开发PC将是一个赛扬1 GHz的
。最终的系统可能是一个更快的系统。


如果有人可以在那个

领域分享一些经验,我将不胜感激。


感谢您的帮助。


Guenter

Hi,

I need to develop an application that displays video 640x480 16-bit per
pixel with 30 fps.

I would prefer to do that with Python (wxPython) but don''t have any
experience whether it is possible to achieve that frame rate and still
have some resources for other processing left? My development PC would
be a Celeron 1 GHz. The final system could be a faster system.

I would appreciate if anybody could share some experience in that
field.

Thanks for any help.

Guenter

推荐答案

Guenter写道:
Guenter wrote:
我需要开发一个应用程序,以每秒30帧的速度显示每个像素640x480 16位像素。

我更喜欢用Python(wxPython)来做但是没有任何经验,是否有可能实现该帧率并仍然有一些资源可用于其他处理?我的开发PC将是赛扬1 GHz。最终的系统可能是一个更快的系统。
I need to develop an application that displays video 640x480 16-bit per
pixel with 30 fps.

I would prefer to do that with Python (wxPython) but don''t have any
experience whether it is possible to achieve that frame rate and still
have some resources for other processing left? My development PC would
be a Celeron 1 GHz. The final system could be a faster system.




至少,你应该看看Pygame,因为wxPython

不是真的打算做那种事。是否可以管理所需的帧速率完全取决于你将要显示的内容......显示...单个像素移动,全屏视频或

介于两者之间? ;-)


参见例如
http://mail.python.org/pipermail/pyt...ay/106546.html

第一手资料用Pygame报告可能的帧速率(无论是否b
准确与否我都不知道)。


-Peter



At the very least, you should be looking at Pygame instead, as wxPython
is not really intended for that kind of thing. Whether or not you can
manage the desired frame rate depends entirely on what you will be
displaying... a single pixel moving around, full-screen video, or
something in between? ;-)

See for example
http://mail.python.org/pipermail/pyt...ay/106546.html for
one first-hand report on frame rates possible with Pygame (whether it''s
accurate or not I don''t know).

-Peter


Peter Hansen写道:
Peter Hansen wrote:
我需要开发一个应用程序,显示视频640x480 16位每
像素有30 fps。

我更喜欢用Python(wxPython)做到这一点,但是没有任何经验,是否有可能达到帧率并仍然
有剩余的其他处理资源吗?我的开发PC将是赛扬1 GHz。最终系统可能是一个更快的系统。
I need to develop an application that displays video 640x480 16-bit per
pixel with 30 fps.

I would prefer to do that with Python (wxPython) but don''t have any
experience whether it is possible to achieve that frame rate and still
have some resources for other processing left? My development PC would
be a Celeron 1 GHz. The final system could be a faster system.



至少,你应该看看Pygame,因为wxPython
并不是真正用于那种事情。您是否可以管理所需的帧速率完全取决于您将要显示的内容......单个像素移动,全屏视频,还是介于两者之间? ; - )



At the very least, you should be looking at Pygame instead, as wxPython
is not really intended for that kind of thing. Whether or not you can
manage the desired frame rate depends entirely on what you will be
displaying... a single pixel moving around, full-screen video, or
something in between? ;-)




没有现代硬件应该有任何问题达到该分辨率的
帧率,即使你坚持标准的blit ; inter $

面临。


将数据输入blittable但是对象速度足够快可能会更多问题。我不知道wxPython有多好,

尊重; Tkinter的PhotoImage对于视频来说可能不够快,

但像PIL'的ImageWin.Dib这样的更轻量级的对象可以正常工作

罚款(我刚刚写了一篇测试脚本在1400x900时达到~200 FPS,

但我的机器确实比1 GHz Celeron快一点。


< / F>



no contemporary hardware should have any problem reaching that
framerate at that resolution, even if you stick to standard "blit" inter-
faces.

getting the data into the "blittable" object fast enough may be more
of a problem, though. I don''t know how good wxPython is in that
respect; Tkinter''s PhotoImage is probably not fast enough for video,
but a more lightweight object like PIL''s ImageWin.Dib works just
fine (I just wrote a test script that reached ~200 FPS at 1400x900,
but my machine is indeed a bit faster than a 1 GHz Celeron).

</F>


Guenter写道:
Guenter wrote:


我需要开发一个显示视频的应用程序640x480每秒16位像素,30 fps。

我更喜欢用Python(wxPython)做到这一点,但是没有任何经验,无论是否有可能实现那个帧率仍然有一些资源可以用于其他处理吗?我的开发PC将是赛扬1 GHz。最终的系统可能是一个更快的系统。

我很感激,如果有人可以在那个领域分享一些经验。
Hi,

I need to develop an application that displays video 640x480 16-bit per
pixel with 30 fps.

I would prefer to do that with Python (wxPython) but don''t have any
experience whether it is possible to achieve that frame rate and still
have some resources for other processing left? My development PC would
be a Celeron 1 GHz. The final system could be a faster system.

I would appreciate if anybody could share some experience in that
field.




没有第一手经验 - 但我想pymedia就是你需要的。如何将
与wx结合起来?不知道。


Diez



No first hand experience - but I guess pymedia is what you need. how to
combine that with wx? No idea.

Diez


这篇关于视频显示,帧率640x480 @ 30fps可实现吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆