best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
api/stream/remux: convert audio to aac to increase compatibility
wukkof3521da9c144
diff --git a/api/src/stream/types.js b/api/src/stream/types.jsindex 0f2d0405..1076468d 100644--- a/api/src/stream/types.js+++ b/api/src/stream/types.js@@ -158,15 +158,18 @@ const remux = (streamInfo, res) => {args.push('-i', streamInfo.urls,- '-c', 'copy'+ '-c:v', 'copy',)if (streamInfo.type === "mute") {- args.push('-an')+ args.push('-an');}if (hlsExceptions.includes(streamInfo.service)) {- args.push('-bsf:a', 'aac_adtstoasc')+ if (streamInfo.type !== "mute") {+ args.push('-c:a', 'aac')+ }+ args.push('-bsf:a', 'aac_adtstoasc');}let format = streamInfo.filename.split('.')[streamInfo.filename.split('.').length - 1];