GStreamer:Python绑定和混合音频编码视频的状态 [英] GStreamer: status of Python bindings and encoding video with mixed audio

查看:364
本文介绍了GStreamer:Python绑定和混合音频编码视频的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望找到一种方法来从Python编写生成的视频(非实时)并将其同时与外部音频文件(MP3)混合.

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.

  • GStreamer Python绑定的最新状态是什么?

  • What's the current status of GStreamer Python bindings, are they up-to-date?

是否可以使用GStreamer编写MPEG-4输出并从Python馈送原始图像帧

Would it be possible to write MPEG-4 output with GStreamer and feed raw image frames from Python

是否可以构造管道,以便GStreamer还将读取MP3音频并将其混合到容器中,从而使我不需要使用ffmpeg等重新处理生成的视频轨道.外部工具即可获得音频轨道

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

是否存在有关将GStreamer与Python结合使用的最新教程? (我找不到2006-2009年以来的日期)

Are there any up-to-date tutorials for using GStreamer with Python? (I couldn't find anything dated since 2006-2009)

(我的老问题:并没有真正给出好的指示使用OpenCV + Python编写视频+ Mac )

(my old question: did not really give good pointers Writing video with OpenCV + Python + Mac )

推荐答案

绑定是否为最新",实际上取决于您所使用的Python版本.至于Python 2.7,我使用GStreamer时没有发生任何事件.

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.

在Windows 7(WinBuilds安装程序)上使用Python 2.7和GStreamer进行开发时,我一直在解决一个主要错误,但是我可以在Ubuntu上很好地使用GStreamer.

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确实具有mp3编解码器,但是在某些国家/地区,有关其合法性的问题还涉及一些法律问题.在使用它们之前,我会先对其进行Google搜索.

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.

关于写入MPEG-4输出和馈送原始图像,我不知道.老实说,那将是一个很好的独立问题.

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.

这篇关于GStreamer:Python绑定和混合音频编码视频的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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