|
|
|
@ -112,7 +112,7 @@ func GetAllCutChild(source string) []string {
|
|
|
|
|
func ConvertToH264Mp4(childMovie string) {
|
|
|
|
|
extension := path.Ext(childMovie)
|
|
|
|
|
childMovieMp4 := strings.Replace(filepath.Base(childMovie), extension, ".mp4", -1)
|
|
|
|
|
CommonUtil.Exec(ffmpeg, getWorkingPath(childMovieMp4, WorkingCutPath), `-i`, childMovie, `-c:v`, `libx264`, `-strict`, `-2`,
|
|
|
|
|
CommonUtil.Exec(ffmpeg, getWorkingPath(childMovieMp4, WorkingCutPath), `-i`, childMovie, `-c:v`, `libx264`,`-threads`, `16`, `-strict`, `-2`,
|
|
|
|
|
getWorkingPath(childMovieMp4, WorkingMp4Path)+childMovieMp4)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|