You've already forked my-video-workflow
							
							output handle progress=end line
This commit is contained in:
		| @@ -38,16 +38,14 @@ def handle_ffmpeg_output(stderr: IO[bytes]) -> str: | |||||||
|         if line.strip() == b"progress=end": |         if line.strip() == b"progress=end": | ||||||
|             # 处理完毕 |             # 处理完毕 | ||||||
|             break |             break | ||||||
|         if PROD_ENV: |  | ||||||
|             # 正式环境不要输出一大堆的东西了 |  | ||||||
|             continue |  | ||||||
|         if line.startswith(b"out_time="): |         if line.startswith(b"out_time="): | ||||||
|             cur_time = line.replace(b"out_time=", b"").decode() |             out_time = line.replace(b"out_time=", b"").decode().strip() | ||||||
|             print("CurTime", cur_time.strip()) |             if not PROD_ENV: | ||||||
|             out_time = cur_time.strip() |                 print("CurTime", out_time) | ||||||
|         if line.startswith(b"speed="): |         if line.startswith(b"speed="): | ||||||
|             speed = line.replace(b"speed=", b"").decode() |             speed = line.replace(b"speed=", b"").decode().strip() | ||||||
|             print("Speed", speed.strip()) |             if not PROD_ENV: | ||||||
|  |                 print("Speed", speed) | ||||||
|  |  | ||||||
|     return out_time |     return out_time | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user