终于知道怎么调用Gstreamer放电影了

想用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

This entry was posted in Linux, Programming and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. Posted April 16, 2008 at 6:13 pm | Permalink

    这几天刚刚找到一个vmware的bug,特别的屎,居然在vmware workstation,server,play,还有啥esx,gsx等等都重现,这样大的一个公司遇到如此严重的问题,居然也没啥补丁之类的放出来,可能虚拟市场不是太大,所以这种bug都懒的修了。

    [Reply]

  2. Posted April 16, 2008 at 8:11 pm | Permalink

    哈哈,搞笑

    [Reply]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*