Commit bcb3b9bbbbb15a7134f3bf84279178d1201e2c94

Authored by liwei2917
1 parent de15d0ee

修改转码服务的默认抽帧图数量

src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
@@ -181,7 +181,8 @@ public class VideosControllerApi { @@ -181,7 +181,8 @@ public class VideosControllerApi {
181 }else{ 181 }else{
182 if(video.getDuration()>4){//“目击者”视频时间大于4秒 182 if(video.getDuration()>4){//“目击者”视频时间大于4秒
183 attach.put("interval", 4);//间隔 单位s 183 attach.put("interval", 4);//间隔 单位s
184 - attach.put("strategy", 1);//是否从头抽到尾(1:是,优先级大于num) 184 + attach.put("num", video.getDuration()/4);//覆盖转码服务的默认抽帧图数量
  185 +// attach.put("strategy", 1);//是否从头抽到尾(1:是,优先级大于num)
185 }else{ 186 }else{
186 attach.put("num", 1);//抽帧图片张数 187 attach.put("num", 1);//抽帧图片张数
187 attach.put("first", 0);//是否首帧,0:是。num=1时有效 188 attach.put("first", 0);//是否首帧,0:是。num=1时有效