直播云

  • 直播云 > 常见问题 > 服务端知识库 >如何批量修改直播m3u8回放的m3u8文件和ts文件的过期时间

    如何批量修改直播m3u8回放的m3u8文件和ts文件的过期时间

    最近更新时间: 2025-03-12 17:20:16

    背景

    • 直播生成回放saveas接口生成的m3u8回放,其中ts会遵循直播空间的存储过期时间,比如默认60天过期删除,用户想针对部分m3u8回放去修改其中ts的生命周期及过期时间,需要针对每个ts单独调用存储的修改文件生命周期接口,如下介绍使用工具批量修改的方式。

    工具使用说明

    工具下载地址

    • linux端:http://qupfile.cloudvdn.com/batchM3u8-linux
    • mac端:http://qupfile.cloudvdn.com/batchM3u8-mac

    工具使用参数说明

    Usage of ./batchM3u8-mac:
      -accessKey string
        	Qiniu Access Key
      -bucket string
        	Bucket Name
      -m3u8listpath string
        	Path to the m3u8 list file
      -prefixDomain string
        	m3u8 domain example http://www.example/
      -secretKey string
        	Qiniu Secret Key
    

    工具使用示例

    ./batchM3u8-mac -accessKey="七牛账号ak" -secretKey="七牛账号sk" -bucket="存储空间名" -m3u8listpath="存放m3u8列表url的文件路径" -prefixDomain="m3u8 domain example http://www.example/"
    

    参数无误,运行后预期会打印 Successfully changed lifecycle of <对应文件路径>

    以上内容是否对您有帮助?
  • Qvm free helper
    Close