| 
														
															@@ -194,8 +194,11 @@ class FFmpeg(): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         pw_duration = cls.get_video_duration(pw_url) 
														 | 
														
														 | 
														
															         pw_duration = cls.get_video_duration(pw_url) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         time.sleep(2) 
														 | 
														
														 | 
														
															         time.sleep(2) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         # 添加字幕 wqy-zenhei  Hiragino Sans GB 
														 | 
														
														 | 
														
															         # 添加字幕 wqy-zenhei  Hiragino Sans GB 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        subtitle_cmd = f"subtitles={pw_srt_path}:force_style='Fontsize=16,Fontname=wqy-zenhei,Outline=0,PrimaryColour=&H000000,SecondaryColour=&H000000,Bold=1,MarginV=135'" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        background_cmd = f"drawbox=y=(ih-{int(height)}/2-{int(height)}/2):color=yellow@1.0:width=iw:height={int(height)}/4:t=fill" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        margin_v = int(height) // 8  # 可根据需要调整字幕和背景之间的距离 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        subtitle_cmd = f"subtitles={pw_srt_path}:force_style='Fontsize=14,Fontname=wqy-zenhei,Outline=0,PrimaryColour=&H000000,SecondaryColour=&H000000,Bold=1,MarginV={margin_v}'" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        bg_position_offset = (int(height) - margin_v) / 1.75 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        background_cmd = f"drawbox=y=(ih-{int(height)}/2-{bg_position_offset}):color=yellow@1.0:width=iw:height={int(height)}/4:t=fill" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         ffmpeg_cmd = [ 
														 | 
														
														 | 
														
															         ffmpeg_cmd = [ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             'ffmpeg', 
														 | 
														
														 | 
														
															             'ffmpeg', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             '-loop', '1', 
														 | 
														
														 | 
														
															             '-loop', '1', 
														 |