-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparacoder_commands_MP3_FFMPEG.yml
More file actions
25 lines (19 loc) · 994 Bytes
/
paracoder_commands_MP3_FFMPEG.yml
File metadata and controls
25 lines (19 loc) · 994 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
defaults:
# https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#features.external-config.files.property-placeholders
bitrate: "192"
# https://wiki.hydrogenaud.io/index.php?title=Bitrate#Equivalent_bitrate_estimates_for_multichannel_audio
# The following function gives you a weight w for each cc, where cc is the channel configuration written as a decimal number (1.0 for mono, 2.0 for stereo, 5.1 for surround, etc.):
# w(cc) = cc^0.75
# For 5.1 multichannel audio equivalent bitrate is 192 * w(5.1)/w(2.0) = 192 * (5.1/2.0)^0.75 = 387 kbps (~384 kbps)
ffmpeg: "\"c:\\Rip\\ffmpeg\\bin\\ffmpeg.exe\" -hide_banner -loglevel error -nostats -nostdin"
# -q:a 0 -compression_level 0 == vbr -V 0 -q 0
# -b:a 320k
# -cutoff 20.5k
pattern:
fileExtensions:
- flac
- wav
- ape
commandTemplate:
any: >-
${defaults.ffmpeg} -i "{{F}}" -c:v copy -c:a libmp3lame -b:a 320k -cutoff 20.5k -map_metadata 0:s:a -map_metadata 0 "{{D}}{{P}}{{N}}.mp3"