From 61bd4eefa7ef6c2c63d97dfdf8fcf3f6614aed9c Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Fri, 20 Jun 2025 11:44:44 +0530 Subject: [PATCH] fix: only log params used for ffmpeg command for future debug --- mobile/lib/services/video_preview_service.dart | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/mobile/lib/services/video_preview_service.dart b/mobile/lib/services/video_preview_service.dart index 095d6282b2..3dcd39a1cf 100644 --- a/mobile/lib/services/video_preview_service.dart +++ b/mobile/lib/services/video_preview_service.dart @@ -258,7 +258,7 @@ class VideoPreviewService { filters = '-vf "${videoFilters.join(",")}" '; } - final command = '-i "${file.path}" ' + final command = // scaling, fps, tonemapping '$filters' // video encoding @@ -267,13 +267,18 @@ class VideoPreviewService { '-c:a aac -b:a 128k ' // hls options '-f hls -hls_flags single_file ' - '-hls_list_size 0 -hls_key_info_file ${keyinfo.path} ' - // output file - '$prefix/output.m3u8'; + '-hls_list_size 0 -hls_key_info_file ${keyinfo.path} '; _logger.info(command); - session = await FFmpegKit.execute(command); + session = await FFmpegKit.execute( + // input file path + '-i "${file.path}" ' + + // main params for streaming + command + + // output file path + '$prefix/output.m3u8', + ); final returnCode = await session.getReturnCode();