fix: only log params used for ffmpeg command for future debug

This commit is contained in:
Prateek Sunal
2025-06-20 11:44:44 +05:30
parent 4c9e7956c1
commit 61bd4eefa7

View File

@@ -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();