在哪里可以找到免费/开源的 Delphi 多媒体组件?
我在一个项目中,我必须能够播放几乎音频/视频文件(格式)。
要求:
视频:
- .dat (vcd & svcd)
- .vob (dvd)
- .rmvb (real media)
- .mp4 (mpeg4/x264/h264)
- .wmv/.asf (windows media)
- .avi (xvid/divx/mpeg2等...)
.mkv(matroska,可选)
音频:
.mp3(您可能知道这一点)
- .ogg (vorbis)
- .wma (windows ) media)
- .wav (wave)
我已经安装了上述所有编解码器,并且在我的系统上完美运行(尝试使用 WMP 10、Media Player Classic Home Cinema、VLC 和 Zoom Player)。
我已经尝试过基本的 TMediaPlayer 但无法在 .avi 视频之外的其他播放器上工作,然后我抓取 DSPack 但它无法播放 .avi (xvid/divx) 或 .mkv,我抓取 VLC 但它只给了我更令人头疼的是,因为它只是 ActiveX 包装器(没有纯 vcl 组件)。
有人可以建议另一个组件吗? 免费或开源将是首选。
编辑: 我已经解决了 DSPack 的问题,看起来我必须始终使用 FDDShow 来使用 DSPack 播放视频。
I was in a project where I must be able to play almost audio/video files (format).
The requirements:
Video:
- .dat (vcd & svcd)
- .vob (dvd)
- .rmvb (real media)
- .mp4 (mpeg4/x264/h264)
- .wmv/.asf (windows media)
- .avi (xvid/divx/mpeg2,etc...)
.mkv (matroska, optional)
Audio:
.mp3 (you probably know this)
- .ogg (vorbis)
- .wma (windows media)
- .wav (wave)
I already have all of the above codecs installed and working perfect on my system (tried it with WMP 10, Media Player Classic Home Cinema, VLC & Zoom Player).
And I have already tried the basic TMediaPlayer but can't work on other beside .avi for video, then i grab DSPack but it can't play .avi (xvid/divx) nor .mkv, i grab VLC but it's only gave me more headache because it was only ActiveX wrapper (no pure vcl component).
Can someone suggest another component? Free or open source would be preferred.
Edit:
I already solve issue with DSPack, it looks like I have to use always FDDShow for video playing using DSPack.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以导入 WMP 10 ActiveX 控件(“组件”->“导入组件”菜单项),然后将 WMP 嵌入到您的应用程序中。
由于它是操作系统的一部分,因此没有比这更免费的了; 如果您可以运行 Delphi 应用程序,则操作系统就在那里。 :-)
You can import the WMP 10 ActiveX control (Component->Import Component menu item), and then embed WMP into your application.
Since it's part of the operating system, can't get any more free than that; if you can run your Delphi app, the OS is there. :-)
DSPack 将是我的建议。 我不确定您在使用 DivX 时遇到了什么问题 - 我多年来一直使用免费的 DivX 编解码器和基于 DSPack 的程序。 FFDShow 看起来也是一个很有前途的解决方案,尽管我遇到过某些类型文件的播放质量问题(撕裂、帧速率低、长时间播放时不稳定等)。 视频硬件和驱动程序也非常重要,除非您提供完整的硬件、软件和映像包,否则程序的用户可能会在播放的主观可接受性方面遇到不同的问题。 请记住这一点 - 编解码器版本很重要,驱动程序版本也很重要,并且无论制造商怎么说,某些硬件都无法正常工作。
DSPack was going to be my suggestion. I'm not sure what problems you had with DivX - I've used the free DivX codec with a DSPack-based program for years. FFDShow looks like a promising solution, too, although I've experienced problems with the quality of playback (tearing, low frame rates, instability when playing for a long periond, etc.) for some types of files. The video hardware and drivers are also very important, and unless you're supplying the complete hardware, software and image package, the users of your program may run into different problems in terms of the subjective acceptability (to them) of the playback. Keep that in mind - codec versions are important, driver versions are crucial, and some hardware just doesn't work right, no matter what the manufacturer says.