From b6387434978c7e903070c399b727655f811c1139 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Fri, 29 Nov 2024 09:43:54 +0100 Subject: [PATCH] fix: corrected ffmpeg command --- hooks/useRemuxHlsToMp4.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hooks/useRemuxHlsToMp4.ts b/hooks/useRemuxHlsToMp4.ts index 779efe58..b1cb2cfd 100644 --- a/hooks/useRemuxHlsToMp4.ts +++ b/hooks/useRemuxHlsToMp4.ts @@ -55,9 +55,7 @@ export const useRemuxHlsToMp4 = () => { }, }); - // const command = `-y -loglevel quiet -thread_queue_size 512 -protocol_whitelist file,http,https,tcp,tls,crypto -multiple_requests 1 -tcp_nodelay 1 -fflags +genpts -i ${url} -c copy -bufsize 50M -max_muxing_queue_size 4096 ${output}`; - - const command = `-y -loglevel quiet -thread_queue_size 512 -protocol_whitelist file,http,https,tcp,tls,crypto -i ${url} -map 0 -c copy -bufsize 50M -max_muxing_queue_size 4096 ${output}`; + const command = `-y -thread_queue_size 512 -protocol_whitelist file,http,https,tcp,tls,crypto -multiple_requests 1 -tcp_nodelay 1 -fflags +genpts -i ${url} -map 0:v -map 0:a -c copy -bufsize 50M -max_muxing_queue_size 4096 ${output}`; writeToLog( "INFO",