-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.py
More file actions
24 lines (24 loc) · 896 Bytes
/
application.py
File metadata and controls
24 lines (24 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
env = {
'path': {
'upload': 'upload', # 上传文件存储路径
'converted': 'converted' # 转换后文件存储路径,
},
'ffmpeg_path': {
'Windows': {
'ffmpeg': r"D:\Personal\ffmpeg-V2024-10-07\bin\ffmpeg.exe", # 本机安装的ffmpeg程序路径
'ffprobe': r"D:\Personal\ffmpeg-V2024-10-07\bin\ffprobe.exe" # 本机安装的ffmpeg程序路径
},
'Linux': {
'ffmpeg': r'',
'ffprobe': r''
},
'Darwin': { # Mac系统
'ffmpeg': r'',
'ffprobe': r''
}
},
'max_file_count': 10, # 最大文件数量
'max_file_size': 50 * 1024 * 1024, # 最大文件大小
'support_receive_audio_ext': {'mp3','flac','wav','ogg'}, # 允许转换的原音频格式
'support_target_audio_ext': {'mp3','flac','wav','ogg'} # 允许转换的目标格式
}