Browse Source

修改视频时间

zhangyong 10 months ago
parent
commit
b5cfa30a62
1 changed files with 2 additions and 2 deletions
  1. 2 2
      common/ffmpeg.py

+ 2 - 2
common/ffmpeg.py

@@ -25,8 +25,8 @@ class FFmpeg():
         duration_url = video_path + str(video_id) + 'duration.mp4'
         # 获取视频时长
         total_duration = cls.get_video_duration(video_url)
-        if int(total_duration) > 300:
-            total_duration = 300
+        if int(total_duration) > 290:
+            total_duration = 290
         ffmpeg_cmd = [
             "ffmpeg",
             "-i", video_url,