提高批量ffmpeg视频损坏检测脚本的性能

时间:2016-03-27 08:11:01

标签: batch-file video ffmpeg corrupt

截至最近,我意识到我的一些.mkv视频文件已损坏。因此,我编写了一个非常基本的批处理脚本来检查文件是否存在错误并将任何错误输出到文本文件中。这个脚本很慢,我有很多视频,因此我想知道如何提高脚本的性能。我以为我可以通过使用gpu加速来提高性能,但是却没有成功地使用它。任何想法都会受到欢迎。

这是我的代码:

for %%a in (*.mkv) do (
echo %%a >> ErrorDetectionInProgress.txt
"I:\@Advanced\ffmpeg-20151224-git-4707497-win64-static\bin\ffmpeg.exe" -loglevel error -i "%%a" -f null - 2>> ErrorDetectionInProgress.txt
echo. >> ErrorDetectionInProgress.txt
)
move ErrorDetectionInProgress.txt ErrorList.txt

0 个答案:

没有答案