Commit 926a65d24cfd543e431ecf54bc2fafafd230b627
1 parent
1a266507
测试
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
| @@ -199,8 +199,8 @@ public class VideosControllerApi { | @@ -199,8 +199,8 @@ public class VideosControllerApi { | ||
| 199 | attach.put("duration", video.getDuration()); | 199 | attach.put("duration", video.getDuration()); |
| 200 | }else{ | 200 | }else{ |
| 201 | if(video.getDuration()>4){//“目击者”视频时间大于4秒 | 201 | if(video.getDuration()>4){//“目击者”视频时间大于4秒 |
| 202 | - attach.put("interval", 4);//间隔 单位s | ||
| 203 | - attach.put("num", video.getDuration()/4);//覆盖转码服务的默认抽帧图数量 | 202 | + attach.put("interval", 1);//间隔 单位s |
| 203 | + attach.put("num", video.getDuration()/1);//覆盖转码服务的默认抽帧图数量 | ||
| 204 | attach.put("duration", video.getDuration()); | 204 | attach.put("duration", video.getDuration()); |
| 205 | // attach.put("strategy", 1);//是否从头抽到尾(1:是,优先级大于num) | 205 | // attach.put("strategy", 1);//是否从头抽到尾(1:是,优先级大于num) |
| 206 | }else{ | 206 | }else{ |