mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
szx-1283 修改ffmpeg路径
This commit is contained in:
@@ -265,7 +265,7 @@ public class CourseFileApi extends ApiBaseController {
|
|||||||
MultimediaInfo m = new MultimediaObject(new File(fileFullPath), new DefaultFFMPEGLocator() {
|
MultimediaInfo m = new MultimediaObject(new File(fileFullPath), new DefaultFFMPEGLocator() {
|
||||||
@Override
|
@Override
|
||||||
public String getExecutablePath() {
|
public String getExecutablePath() {
|
||||||
return "/usr/local/opt/ffmpeg";
|
return "/usr/local/opt/ffmpeg/ffmpeg";
|
||||||
}
|
}
|
||||||
}).getInfo();
|
}).getInfo();
|
||||||
Long ls = m.getDuration() / 1000;//秒
|
Long ls = m.getDuration() / 1000;//秒
|
||||||
|
|||||||
Reference in New Issue
Block a user