终于知道怎么调用Gstreamer放电影了
April 14, 2008
想用Python做个视频播放器自己用呢,让Gstreamer这东西给困住了。网上文档大部分是讲播放音频的,弄得都特复杂。搞的我放一个AVI文件好像还得先查它是什么编码编的。差点就转向xine了,然后又差点把python放弃转向java…-_-!
不过就在刚才终于成功了,而且Audio/Video Sync的也很好。赶快记下来,以免明天忘了。
gst-launch-0.10 -v filesrc location=视频文件 ! decodebin name=d d. ! queue! autovideosink d. ! queue ! audioconvert ! alsasink
Related posts:
- A simple buildbot buildsavle for STAF/STAX
- 打开web2py的远程访问
- Python 2.6.2 subprocess在linux下不能传递参数的处理
- 在后台运行Python脚本服务
- Py2exe编译Pywinauto程序
Tags: gstreamer, Programming, python
The entry '终于知道怎么调用Gstreamer放电影了' was posted
on April 14, 2008 at April 14, 2008
and is filed under Linux, Programming.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
No. 1 — 四月 16th, 2008 at 6:13 下午
这几天刚刚找到一个vmware的bug,特别的屎,居然在vmware workstation,server,play,还有啥esx,gsx等等都重现,这样大的一个公司遇到如此严重的问题,居然也没啥补丁之类的放出来,可能虚拟市场不是太大,所以这种bug都懒的修了。
Reply/回复
No. 2 — 四月 16th, 2008 at 8:11 下午
哈哈,搞笑
Reply/回复