started implementing of audio codex

This commit is contained in:
Hellow2 2023-04-05 12:59:00 +02:00
parent 5b947c2d66
commit 2a1d5bef1c
6 changed files with 18 additions and 7 deletions

View File

@ -0,0 +1,7 @@
from . import metadata
from . import codex
AudioMetadata = metadata.AudioMetadata
write_many_metadata = metadata.write_many_metadata
write_metadata = metadata.write_metadata
write_metadata_to_target = metadata.write_metadata_to_target

View File

@ -0,0 +1,8 @@
import ffmpeg
from ..utils.shared import BITRATE
from ..objects import Target
def correct_codex(target: Target, bitrate: int = BITRATE):
if not target.exists:
pass

View File

@ -21,7 +21,7 @@ from ..objects import (
Label, Label,
AlbumType AlbumType
) )
from ..tagging import write_metadata_to_target from ..audio import write_metadata_to_target
from ..utils import shared from ..utils import shared

View File

@ -1,6 +0,0 @@
from . import id3
AudioMetadata = id3.AudioMetadata
write_many_metadata = id3.write_many_metadata
write_metadata = id3.write_metadata
write_metadata_to_target = id3.write_metadata_to_target

View File

@ -113,6 +113,8 @@ DEFAULT_VALUES = {
"song": "Various Song", "song": "Various Song",
"album_type": "Other" "album_type": "Other"
} }
# kB per second
BITRATE = 100
# size of the chunks that are streamed # size of the chunks that are streamed
CHUNK_SIZE = 1024 CHUNK_SIZE = 1024