Skip to content

Instantly share code, notes, and snippets.

@askdaddy
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save askdaddy/d13c4d6dcacc01a3e1b5 to your computer and use it in GitHub Desktop.
Save askdaddy/d13c4d6dcacc01a3e1b5 to your computer and use it in GitHub Desktop.

视频文件转码对接规范 v0.0.1

作者:seven (seven.chen@maichuang.net


1.视频提交接口

POST /upload

  • 将视频文件提交到转码服务
  • 返回此次任务id,以及转换后的视频文件下载地址,应该是多个[url list],每种码率

注意: 请指定可接受的文件格式

2.转换状态查询接口

GET /status/id

  • 返回成功或者失败(可以返回一个进度)
  • 查询转换任务结果

3.下载转换后的视频资源

GET /[url for url in url list]

  • 下载转换后的文件
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment