|
@@ -170,6 +170,8 @@ class VideoProcessor:
|
|
if video_ending and video_ending != 'None':
|
|
if video_ending and video_ending != 'None':
|
|
new_video_path = cls.handle_video_ending(new_video_path, video_ending, old_title, pw_random_id, video_path_url, mark, task_mark, url, name, video_share, zm, voice)
|
|
new_video_path = cls.handle_video_ending(new_video_path, video_ending, old_title, pw_random_id, video_path_url, mark, task_mark, url, name, video_share, zm, voice)
|
|
if new_video_path == None:
|
|
if new_video_path == None:
|
|
|
|
+ if name == "单点视频":
|
|
|
|
+ sqlCollect.update_shp_dd_vid_4(v_id)
|
|
continue
|
|
continue
|
|
else:
|
|
else:
|
|
if video_share and video_share != 'None':
|
|
if video_share and video_share != 'None':
|
|
@@ -488,13 +490,16 @@ class VideoProcessor:
|
|
pw_video_list = [new_video_path, pw_path]
|
|
pw_video_list = [new_video_path, pw_path]
|
|
Common.logger(mark).info(f"{task_mark}下的视频{url},视频与片尾开始拼接")
|
|
Common.logger(mark).info(f"{task_mark}下的视频{url},视频与片尾开始拼接")
|
|
video_path = FFmpeg.concatenate_videos(pw_video_list, video_path_url) # 视频与片尾拼接到一起
|
|
video_path = FFmpeg.concatenate_videos(pw_video_list, video_path_url) # 视频与片尾拼接到一起
|
|
- Common.logger(mark).info(f"{name}的{task_mark}下的视频{url},视频与片尾拼接成功")
|
|
|
|
- time.sleep(1)
|
|
|
|
- if video_share and video_share != 'None':
|
|
|
|
- new_video_path = FFmpeg.single_video(video_path, video_path_url, zm)
|
|
|
|
|
|
+ if video_path:
|
|
|
|
+ Common.logger(mark).info(f"{name}的{task_mark}下的视频{url},视频与片尾拼接成功")
|
|
|
|
+ time.sleep(1)
|
|
|
|
+ if video_share and video_share != 'None':
|
|
|
|
+ new_video_path = FFmpeg.single_video(video_path, video_path_url, zm)
|
|
|
|
+ else:
|
|
|
|
+ new_video_path = video_path
|
|
|
|
+ return new_video_path
|
|
else:
|
|
else:
|
|
- new_video_path = video_path
|
|
|
|
- return new_video_path
|
|
|
|
|
|
+ return None
|
|
|
|
|
|
|
|
|
|
|
|
|