best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
api/stream/types: specify subtitle format for containers other than mp4
wukkob91c0c0013d3
diff --git a/api/src/stream/types.js b/api/src/stream/types.jsindex 1af8459f..d1b86da5 100644--- a/api/src/stream/types.js+++ b/api/src/stream/types.js@@ -128,7 +128,8 @@ const merge = async (streamInfo, res) => {if (streamInfo.subtitles) {args.push('-i', streamInfo.subtitles,- '-map', '2:s'+ '-map', '2:s',+ '-c:s', format === 'mp4' ? 'mov_text' : 'webvtt');};@@ -147,10 +148,6 @@ const merge = async (streamInfo, res) => {}}- if (streamInfo.subtitles && format === "mp4") {- args.push('-c:s', 'mov_text');- }-if (streamInfo.metadata) {args = args.concat(convertMetadataToFFmpeg(streamInfo.metadata));}