convert flacs to aac for streaming

This commit is contained in:
2026-06-16 12:49:30 +02:00
parent f5e8b87846
commit 7aa1746f97
12 changed files with 401 additions and 8 deletions

View File

@@ -94,9 +94,14 @@ export const music = createTable(
id: d.uuid().primaryKey().notNull(),
title: d.varchar({ length: 100 }).notNull(),
description: d.text(),
// Original high-quality upload (e.g. FLAC), offered as a download.
fileUrl: d.varchar("file_url", { length: 500 }).notNull(),
fileKey: d.varchar("file_key", { length: 200 }).notNull(),
fileName: d.varchar("file_name", { length: 200 }).notNull(),
// Lighter, streaming-friendly transcode (e.g. AAC) used by the player.
streamUrl: d.varchar("stream_url", { length: 500 }),
streamKey: d.varchar("stream_key", { length: 200 }),
streamName: d.varchar("stream_name", { length: 200 }),
createdAt: d
.timestamp({ withTimezone: true })
.default(sql`CURRENT_TIMESTAMP`)