Gstreamer GstPipeline管道

GstPipeline是Gstreamer中的顶级bin,提供时钟和GstBus。在状态改变时,它会进行特定操作,如重置running_time、选择和设置时钟等。时钟选择算法首先考虑应用指定的时钟,其次是上游元素提供的时钟,最后是GstSystemClock。GstPipeline的GstBus允许应用接收元素消息。
摘要由CSDN通过智能技术生成
GstPipeline管道 翻译自part-gstpipeline.txt

GstPipeline
------------------------------
    GstPipeline是一个顶级的bin,给所有的子元素提供时钟。
    GstPipeline也提供一个顶级的GstBus。
    GstPipeline基于选择的时钟计算running_time。
    GstPipeline为管道中的所有元素计算全局的延迟。

State changes
~~~~~~~~~~~~~
    除了父类GstBin正常的状态改变过程外,GstPipeline在状态改变过程中还提供如下的动作。
    - NULL -> READY:
        - set the bus to non-flushing
    - READY -> PAUSED:
        - reset the running_time to 0
     - PAUSED -> PLAYING:
        - Select and a clock.
        - calculate base_time using the running_time.
        - calculate and distribute latency.
        - set clock and base_time on all elements before performing the state change.
     - PAUSED -> PLAYING:
        - calculate the running_time when the pipeline was PAUSED.
     - READY -> NULL:
        - set the bus t
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值