|
@@ -110,9 +110,8 @@ class FFmpeg():
|
|
command = [
|
|
command = [
|
|
'ffmpeg',
|
|
'ffmpeg',
|
|
'-i', video_file,
|
|
'-i', video_file,
|
|
- '-q:a', '0',
|
|
|
|
- '-map', 'a',
|
|
|
|
- '-codec:a', 'libmp3lame', # 指定 MP3 编码器
|
|
|
|
|
|
+ '-c:a', 'aac', # 使用AAC编码器
|
|
|
|
+ '-b:a', '256k', # 设置音频比特率
|
|
pw_mp3_path
|
|
pw_mp3_path
|
|
]
|
|
]
|
|
subprocess.run(command)
|
|
subprocess.run(command)
|