简体   繁体   English

C ++:FFMPEG和SDL资源

[英]C++: FFMPEG and SDL resources

I'm looking for resources (preferably books, but websites are fine too) for using FFmpeg and/or SDL with C++. 我正在寻找将FFmpeg和/或SDL与C ++结合使用的资源(最好是书籍,但网站也不错)。

Stuff I'd like to be able to do (eventually): 我希望能够 (最终) 做到的事情

  • Decode and play videos in realtime to a QT widget (the QT part isn't a problem) 将视频实时解码并播放到QT小部件(QT部分没有问题)
  • Overlay text and images on the video (in realtime) 在视频上叠加文字和图像(实时)
  • Loop video 循环播放视频
  • Cross-fade from one video to another (in realtime) 从一个视频交叉淡入淡出(实时)
  • Some kind of DVD functionality 某种DVD功能
  • LIVE sources? 直播资源? (ie webcam, stream, etc.) (即网络摄像头,视频流等)

So far I've looked at (and consider helpful) the following resources: 到目前为止,我已经研究 (并认为有帮助) 以下资源:

Thanks for any help... 谢谢你的帮助...

Also: Operating System is Windows (but maybe one day cross-platform) 另外:操作系统是Windows(但可能是跨平台的一天)
Also 2: Resources using alternatives are welcome too... ie DirectShow, VFW, etc. 另外2:也欢迎使用替代方法的资源...即DirectShow,VFW等。

If all you need is to decode and play videos and require overlays I would consider using the Phonon framework, and use QT Graphics View by using a Phonon::VideoWidget inside a QGraphicsProxyWidget. 如果您需要解码和播放视频并需要覆盖,则可以考虑使用Phonon框架,并通过在QGraphicsProxyWidget中使用Phonon :: VideoWidget使用QT Graphics View。 That way you can easily get overlays, cross-fading, animations etc. Phonon in Windows uses DirectShow as a back-end. 这样,您可以轻松获得覆盖,交叉淡入淡出,动画等。Windows中的声子使用DirectShow作为后端。 You can install FFDShow and get the same codecs ffmpeg has to play videos. 您可以安装FFDShow并获得ffmpeg播放视频所使用的相同编解码器。

There is an FFMPEG C++ wrapper library : FOBS . 有一个FFMPEG C ++包装器库: FOBS It is quite simple to use, but what you gain in simplicity you lose in fine grained configuration. 它使用起来非常简单,但是您获得的简单性却损失了精细的配置。 It works great but is always a bit outdated. 它的效果很好,但总是有些过时。

m2c m2c

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM