-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.js
More file actions
executable file
·37 lines (35 loc) · 822 Bytes
/
config.js
File metadata and controls
executable file
·37 lines (35 loc) · 822 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
25
26
27
28
29
30
31
32
33
34
35
36
37
import path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export const config = {
PORT: process.env.PORT || 5174,
UPLOAD_DIR: path.resolve(__dirname, 'uploads'),
OUTPUT_DIR: path.resolve(__dirname, 'outputs'),
MAX_FILE_SIZE: 100 * 1024 * 1024,
MAX_CONCURRENT_JOBS: 2,
BITRATE_OPTIONS: {
mp3: ['128k', '192k', '256k', '320k'],
flac: ['lossless'],
wav: ['lossless'],
ogg: ['128k', '192k', '256k']
},
FORMAT_SETTINGS: {
mp3: {
codec: 'libmp3lame',
extension: 'mp3'
},
flac: {
codec: 'flac',
extension: 'flac'
},
wav: {
codec: 'pcm_s16le',
extension: 'wav'
},
ogg: {
codec: 'libvorbis',
extension: 'ogg'
}
}
};