From 6e60aa55caccda549003561e5c4080c3505bb2e9 Mon Sep 17 00:00:00 2001 From: Alex Howard Date: Sun, 26 Feb 2023 03:22:22 -0500 Subject: [PATCH] Switch aac codec to modern alternative This prevents a buffer overrun that crashes ffmpeg. --- app/Models/Track.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Track.php b/app/Models/Track.php index 285e71b7..22e4b478 100644 --- a/app/Models/Track.php +++ b/app/Models/Track.php @@ -223,7 +223,7 @@ class Track extends Model implements Searchable, Commentable, Favouritable 'tag_format' => 'AtomicParsley', 'tag_method' => 'updateTagsWithAtomicParsley', 'mime_type' => 'audio/mp4', - 'command' => 'ffmpeg 2>&1 -y -i {$source} -map 0:a -map_metadata -1 -codec:a libfaac -ab 256k -f mp4 {$target}' + 'command' => 'ffmpeg 2>&1 -y -i {$source} -map 0:a -map_metadata -1 -codec:a libfdk_aac -ab 256k -f mp4 {$target}' ], 'ALAC' => [ 'index' => 4,