如何制作动态管道gstreamer?

时间:2019-07-16 04:04:07

标签: python-2.7 gstreamer

我开始研究gstreamer,并想尝试动​​态输入。但是我所有的尝试都以失败告终。我还能怎么做动态输入? 这是我失败的尝试

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import gobject
gobject.threads_init()
import pygst
pygst.require("0.10")
import gst
ln = "filesrc location="
ln2 = " ! decodebin2 ! fakesink"
line = raw_input()
pipeline = ln + line + ln2
d = gst.parse_launch("\""+pipeline+"\"")

并且在发生这样的错误之后

  

glib.GError:解析管道时出现不可恢复的语法错误   “ filesrc location = / home / kelly / video / test.mp4!decodebin2!fakesink”

0 个答案:

没有答案