From 78556e876468e392215d565f522b0e6d627f4685 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Wed, 14 Aug 2024 11:10:52 +0200 Subject: [PATCH] fix: missing or incorrect pts Issues --- hooks/useRemuxHlsToMp4.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/useRemuxHlsToMp4.ts b/hooks/useRemuxHlsToMp4.ts index 47f9b506..8409041d 100644 --- a/hooks/useRemuxHlsToMp4.ts +++ b/hooks/useRemuxHlsToMp4.ts @@ -23,7 +23,7 @@ export const useRemuxHlsToMp4 = (url: string, item: BaseItemDto) => { } const output = `${FileSystem.documentDirectory}${item.Id}.mp4`; - const command = `-y -thread_queue_size 512 -protocol_whitelist file,http,https,tcp,tls,crypto -multiple_requests 1 -tcp_nodelay 1 -i ${url} -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} -c copy -bufsize 50M -max_muxing_queue_size 4096 ${output}`; const startRemuxing = useCallback(async () => { writeToLog(