remove fluent ffmpeg
This commit is contained in:
parent
524c413579
commit
1c2692ea4b
3 changed files with 1 additions and 15 deletions
|
@ -2,8 +2,6 @@ import { FlacStreamTagger } from "flac-stream-tagger";
|
|||
import Ffmpeg from "fluent-ffmpeg";
|
||||
import ffmpegPath from "ffmpeg-static";
|
||||
|
||||
Ffmpeg.setFfmpegPath(ffmpegPath || "");
|
||||
|
||||
export default class {
|
||||
authHeaders: { [key: string]: string }
|
||||
|
||||
|
@ -16,9 +14,7 @@ export default class {
|
|||
|
||||
Bun.write(`tmp/${fileId}.aac`, Buffer.from(buffer))
|
||||
|
||||
Ffmpeg(`tmp/${fileId}.aac`)
|
||||
.format('flac')
|
||||
.run();
|
||||
await Bun.$`${ffmpegPath} -i tmp/${fileId}.aac -c:a flac tmp/${fileId}.flac`.quiet()
|
||||
|
||||
await Bun.file(`tmp/${fileId}.aac`).delete();
|
||||
const flac = Bun.file(`tmp/${fileId}.flac`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue