Skip to content

Commit

Permalink
use 16-bit audio when converting to flac
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat committed Oct 25, 2022
1 parent 23ecfeb commit 76b5153
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spotdl/utils/ffmpeg.py
Expand Up @@ -15,6 +15,7 @@
from pathlib import Path

import requests

from spotdl.utils.config import get_spotdl_path
from spotdl.utils.formatter import to_ms

Expand All @@ -37,7 +38,7 @@

FFMPEG_FORMATS = {
"mp3": ["-codec:a", "libmp3lame"],
"flac": ["-codec:a", "flac"],
"flac": ["-codec:a", "flac", "-sample_fmt", "s16"],
"ogg": ["-codec:a", "libvorbis"],
"opus": ["-codec:a", "libopus"],
"m4a": ["-codec:a", "aac"],
Expand Down

0 comments on commit 76b5153

Please sign in to comment.