Commit bcb3b9bbbbb15a7134f3bf84279178d1201e2c94
1 parent
de15d0ee
修改转码服务的默认抽帧图数量
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
| ... | ... | @@ -181,7 +181,8 @@ public class VideosControllerApi { |
| 181 | 181 | }else{ |
| 182 | 182 | if(video.getDuration()>4){//“目击者”视频时间大于4秒 |
| 183 | 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 | 186 | }else{ |
| 186 | 187 | attach.put("num", 1);//抽帧图片张数 |
| 187 | 188 | attach.put("first", 0);//是否首帧,0:是。num=1时有效 | ... | ... |