1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-25 03:33:14 +01:00

append html5ify to ffmpeg log too

This commit is contained in:
Mikael Finstad 2024-09-26 12:11:50 +02:00
parent 0f8ba50d22
commit e84b9a8266
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -595,11 +595,12 @@ function useFfmpegOperations({ filePath, treatInputFileModifiedTimeAsStart, trea
'-y', outPath, '-y', outPath,
]; ];
appendFfmpegCommandLog(ffmpegArgs);
const result = await runFfmpegWithProgress({ ffmpegArgs, duration, onProgress }); const result = await runFfmpegWithProgress({ ffmpegArgs, duration, onProgress });
logStdoutStderr(result); logStdoutStderr(result);
await transferTimestamps({ inPath: filePathArg, outPath, treatOutputFileModifiedTimeAsStart }); await transferTimestamps({ inPath: filePathArg, outPath, treatOutputFileModifiedTimeAsStart });
}, [treatOutputFileModifiedTimeAsStart]); }, [appendFfmpegCommandLog, treatOutputFileModifiedTimeAsStart]);
// https://stackoverflow.com/questions/34118013/how-to-determine-webm-duration-using-ffprobe // https://stackoverflow.com/questions/34118013/how-to-determine-webm-duration-using-ffprobe
const fixInvalidDuration = useCallback(async ({ fileFormat, customOutDir, onProgress }: { const fixInvalidDuration = useCallback(async ({ fileFormat, customOutDir, onProgress }: {