跳到正文
Kale的数字花园
目录 文章
/2 分钟/5 阅读/0 评论

OSS存储优化

存储优化 素材、成品视频不走CDN处理 1.数据订正 2.代码修改 阿里云OSS/CND使用,images的bucket仅供toC小程序使用。视频生产新建无cdn的bucket,域名videos,按租户和视频类型(原素材、压缩素材、切片素材

存储优化
素材、成品视频不走CDN处理
1.数据订正

2.代码修改

阿里云OSS/CND使用,images的bucket仅供toC小程序使用。视频生产新建无cdn的bucket,域名videos,按租户和视频类型(原素材、压缩素材、切片素材、成片等)区分路径。其他团队使用OSS场景全部区分开,不要全部使用默认images

方案:

对于新数据:定时任务扫描co_content中字段orgin为ID的保存超过30天的从oss里删掉。

对于老数据:对已有素材和成品视频进行URL替换(换成新的域名videos),把老bucket的素材和成品视频上传到新的bucket里并删掉老bucket中的内容。

wandian-miniprogram使用CDN加速所用到的场景

素材处理

lan-content-process

  1. 压缩:com.wdtrip.graph.controller.content.CompressController#run/poiGraph/compress/run保留原始素材
  2. 固定切割:com.wdtrip.graph.controller.content.AutoPlanSplitVideoController#splitVideo/poiGraph/autoPlan/splitVideo保留原始素材
  3. 智能切割:com.wdtrip.graph.controller.content.AISplitVideoController#splitVideo/poiGraph/aiSplitVideo保留原始素材
  4. 调色:com.wdtrip.graph.controller.content.ColorValueController#buildVideoColor/poiGraph/color/buildVideoColor保留原始素材
  5. 滤镜:com.wdtrip.graph.controller.content.RebuildVideoController#process/poiGraph/rebuild/process保留原始素材
  6. 上传:com.wdtrip.graph.controller.oss.FileOperationController#fileUpload/poiGraph/fileProcess/fileUpload保留原始素材
  7. 百度抓取:com.wdtrip.graph.controller.catcher.BaiduContentCatcherController#baiduContent/poiGraph/catch/baiduContent
  8. 剪映抓取:com.wdtrip.graph.controller.catcher.RankVideoController#cap/poiGraph/catch/cap

video-factory

  1. 文件上传(业务):com.wdtrip.videofactory.utils.OssUtils
  2. 素材上传(接口):com.wdtrip.videofactory.service.AliOSSClientService

成品视频

video-producer

  1. 成品视频:service.upload_file.upload_oss_file
  2. 视频封面:service.upload_file.upload_oss_image

评论需要登录。生产环境使用 GitHub 登录,本地可前往 登录页 使用开发登录。

还没有评论,来抢沙发。