简体   繁体   English

gstreamer 1.0错误控制和发送eos

[英]gstreamer 1.0 error control and sending eos

Okey regarding gstreamer 1.0 documentation and porting guide I didn't found anything about events.I tried to set an eos signal in my pipeline so that mp4mux can finalize stream like this: 关于gstreamer 1.0文档和移植指南的Okey我没有发现任何有关事件的信息,我试图在管道中设置一个eos信号,以便mp4mux可以像这样最终确定流:

self.pipe.send_event(Gst.event_new_eos())

but got error: 但出现错误:

AttributeError: 'gi.repository.Gst' object has no attribute 'event_new_eos'

And I tought I got spelling or something wrong I googled and found few examples in 0.10 and nothing on 1.0 but the problem is that I didn't found anything about send_event or Gst.event_new_eos() in porting guide.I would be grateful if somebody could tell me what am I missing here? 我不知道我拼写错误还是在Google上搜索了一些错误,在0.10中发现了很少的示例,而在1.0中没有发现任何问题,但问题是我在移植Gst.event_new_eos()未找到任何有关send_eventGst.event_new_eos() 。如果有人能告诉我我在这里想念什么吗?

Regarding gstreamer and tee element Iam curious about handling different branches for example if I have this pipeline : 关于gstreamer和tee元素Iam对处理不同的分支感到好奇,例如,如果我拥有以下管道:

  gst-launch-1.0 -e videotestsrc ! tee name=spliter  spliter. ! queue ! udpsink  spliter. ! queue ! x264enc ! mp4mux ! filesink location=something.mp4

How could I handle problems like lost connection or not enough hard disk without pipeline going down when something like that happens? 当发生类似情况时,如何处理丢失的连接或硬盘不足而没有管道中断的问题?

Sending EOS event in gstreamer0.10: 在gstreamer0.10中发送EOS事件:

  self.pipeline.send_event(gst.event_new_eos())

Sending EOS even in gstreamer1.0: 即使在gstreamer1.0中也发送EOS:

self.pipeline.send_event(Gst.Event.new_eos())

PS: I've stumbled against same issue and I also wasn't able find documentation regarding events in gstreamer 1.0 but was I able to figure it out myself. PS:我偶然遇到了同样的问题,我也找不到gstreamer 1.0中有关事件的文档,但我自己能弄清楚。 Hope this helps someone. 希望这对某人有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM