Skip to content

Commit ea9b9dd

Browse files
committed
fix(video): 修复ffmpeg命令中缺少-map参数的问题
在视频处理命令中添加-map 0:参数,确保正确映射所有流到输出文件
1 parent 0fdb82d commit ea9b9dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/service/video.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def process_single_file(
102102
+ "-c:a aac -b:a 128k "
103103
+ "-movflags faststart "
104104
+ ("-hwaccel auto " if config.x264.opencl_acceleration else "")
105-
+ f'"{output_path}"'
105+
+ f'-map 0: "{output_path}"'
106106
)
107107
else:
108108
# Process without audio using single ffmpeg command
@@ -116,7 +116,7 @@ def process_single_file(
116116
+ "-an "
117117
+ "-movflags faststart "
118118
+ ("-hwaccel auto " if config.x264.opencl_acceleration else "")
119-
+ f'"{output_path}"'
119+
+ f'-map 0: "{output_path}"'
120120
)
121121

122122
# Execute commands

0 commit comments

Comments
 (0)