From b7888cb371d4470cc6d76db805211bb7720dfa87 Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Thu, 9 Jul 2020 09:46:44 +0800 Subject: [PATCH] 'commit' --- dsSupport/ConvertMovie/Convert.go | 2 ++ dsSupport/Utils/ConvertUtil/ConvertUtil.go | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/dsSupport/ConvertMovie/Convert.go b/dsSupport/ConvertMovie/Convert.go index c39cee09..4ded05da 100644 --- a/dsSupport/ConvertMovie/Convert.go +++ b/dsSupport/ConvertMovie/Convert.go @@ -24,4 +24,6 @@ func main() { ConvertUtil.Merge(source) //5、清除垃圾 ConvertUtil.ClearRubbish(source) + //6、查看转换结果 + ConvertUtil.ShowMovieInfo(source) } diff --git a/dsSupport/Utils/ConvertUtil/ConvertUtil.go b/dsSupport/Utils/ConvertUtil/ConvertUtil.go index 6387359c..7d88b91d 100644 --- a/dsSupport/Utils/ConvertUtil/ConvertUtil.go +++ b/dsSupport/Utils/ConvertUtil/ConvertUtil.go @@ -147,3 +147,12 @@ func ClearRubbish(source string) { os.RemoveAll(runDir + `/` + deletePath[i] + `/` + source[0:2] + "/" + source[0:36]) } } + +/** +功能:显示视频的信息 +作者:黄海 +时间:2020-07-09 + */ +func ShowMovieInfo(source string){ + CommonUtil.Exec(ffmpeg,getPath(source,AllPath) ,`-i`, runDir + `/Target/` + source[0:2]+"/"+source[0:36]+".mp4") +} \ No newline at end of file