GStreamer:Python 绑定和使用混合音频编码视频的状态
我希望找到一种方法从 Python 编写生成的视频(非实时)并将其与外部音频文件(MP3)同时混合。
GStreamer Python 绑定的当前状态是什么?它们是最新的吗?
是否可以使用 GStreamer 编写 MPEG-4 输出并从 Python 提供原始图像帧
是吗可以构建管道,以便 GStreamer 也可以读取 MP3 音频并将其混合到容器中,这样我就不需要使用 ffmpeg 等外部工具重新处理生成的视频轨道来获取音轨
是否有任何最新的使用教程GStreamer 与 Python 结合使用? (我找不到 2006-2009 年以来的任何内容)
(我的老问题:并没有真正给出好的指示 使用 OpenCV + Python + Mac 编写视频)
I am hoping to find a way to write generated video (non-real time) from Python and mix it with external audio file (MP3) simultaneously.
What's the current status of GStreamer Python bindings, are they up-to-date?
Would it be possible to write MPEG-4 output with GStreamer and feed raw image frames from Python
Is it possible to construct pipeline so that GStreamer would also read MP3 audio and mix it into the container, so that I do not need to reprocess the resulting video track with ffmpeg etc. external tools to have the audio track
Are there any up-to-date tutorials for using GStreamer with Python? (I couldn't find anything dated since 2006-2009)
(my old question: did not really give good pointers Writing video with OpenCV + Python + Mac )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
绑定是否是“最新的”实际上取决于您使用的 Python 版本。至于Python 2.7,我使用GStreamer没有发生任何事件。
我在 Windows 7(WinBuilds 安装程序)上使用 Python 2.7 和 GStreamer 进行开发时遇到了一个重大错误,但我能够在 Ubuntu 上很好地使用 GStreamer。
GStreamer 确实有 mp3 编解码器,但在某些国家/地区存在一些围绕其合法性的法律问题。在使用它们之前我会用谷歌搜索一下。
至于教程,没有运气。尽管如此,现有的教程对于现代版本来说效果很好,尤其是这个 和这个。
关于编写 MPEG-4 输出和输入原始图像,我不知道。老实说,这将是一个很好的独立问题。
Whether or not the binding are "up-to-date" really depends on what version of Python you're using. As for Python 2.7, I am using GStreamer without incident.
I have been fighting a major bug in developing with Python 2.7 and GStreamer on Windows 7 (WinBuilds installers), but I'm able to work with GStreamer just fine on Ubuntu.
GStreamer does have mp3 codecs, but there are some legal matters surrounding their legality in some countries. I'd do a Google search on that before using them.
As for tutorials, no luck. All the same, the existing tutorials do quite well for the modern version, especially this one and this one.
In regards to writing MPEG-4 output and feeding raw images, I do not know. That would be a good stand-alone question, in all honesty.