zoukankan      html  css  js  c++  java
  • wowza视频录制接口

    http://用户名:密码@wowza服务器地址:8086/livestreamrecord/recordAction?action=startRecordingSegmentBySchedule&appName=slc&streamName=136.stream&segmentSchedule=0+*+*+*+*+*&outputPath=/usr/local/WowzaStreamingEngine/content&fileTemplate=${BaseFileName}_${SegmentTime}
    

    可指定app、指定流名称、指定录制路径、指定录制文件名。

    以上接口,可整点录制mp4文件。

    如果用linux curl调用的话,可以:

    curl -v --digest -u 用户名:密码 http://服务器地址:8086/livestreamrecord/recordAction?action=startRecordingSegmentBySchedule&appName=slc&streamName=136.stream&segmentSchedule=0+*+*+*+*+*&outputPath=/usr/local/WowzaStreamingEngine/content&fileTemplate=${BaseFileName}_${SegmentTime}
    

     “/”和“&”符号前面需要添加“”转义才行。

    部分linux系统,会出现url参数解析错误,导致无法解析${BaseFileName}_${SegmentTime}这两个变量,可以尝试post方法:

    curl -v --digest -u 用户名:密码 http://服务器地址:8086/livestreamrecord/recordAction -X POST -d 'action=startRecordingSegmentBySchedule&appName=slc&streamName=136.stream&segmentSchedule=0+*+*+*+*+*&outputPath=/opt/record&fileTemplate=${BaseFileName}_${SegmentTime}'
    
  • 相关阅读:
    [Leetcode] 225. Implement Stack using Queues
    前端面试题2
    数据结构_stack
    数据结构 station
    数据结构_wow(泡泡的饭碗)
    数据结构_XingYunX(幸运儿)
    数据结构 nxd(顺序对)
    数据结构 hbb(汉堡包)
    数据结构 elegant_sequence(优雅的序列)
    数据结构 i_love(我喜欢)
  • 原文地址:https://www.cnblogs.com/codeit/p/13427176.html
Copyright © 2011-2022 走看看