fifonik / FFMetrics

Visualizes Video Quality Metrics (PSNR, SSIM & VMAF) calculated by ffmpeg.exe
562 stars 22 forks source link

Time out error when extracting bad frames #132

Closed lin-xianming closed 3 months ago

lin-xianming commented 4 months ago

The logs show ffmpeg was killed after 30s:

2024-04-03 19:12:51 DEBUG: Extracting frame for file: <file>, offset: 258.408408408408
2024-04-03 19:12:51 DEBUG: FF.ImageGet.Started, <file>, 258.408408408408, <file>
2024-04-03 19:12:51 ffmpeg -hide_banner -nostdin -accurate_seek -r 59.94 -i "<file>" -ss 258.408408408408 -frames:v 1 -f image2 -vf settb=AVTB,setpts=PTS-STARTPTS <file>
2024-04-03 19:12:51 DEBUG: FF.ExecStatus.Started, -hide_banner -nostdin -accurate_seek -r 59.94 -i "<file>" -ss 258.408408408408 -frames:v 1 -f image2 -vf settb=AVTB,setpts=PTS-STARTPTS <file>
2024-04-03 19:13:21 DEBUG: FF.ExecStatus: External program not exited, trying to close it
2024-04-03 19:13:21 DEBUG: FF.ExecStatus: External program closing failed. Killing it
2024-04-03 19:13:21 DEBUG: FF.ExecStatus.Finished. stdout: , stderr: Timed out(-2)
2024-04-03 19:13:21 DEBUG: FF.ImageGet.Finished, -2, Timed out

I don't know why it takes so long but if I run the ffmpeg command manually it does finish after a few minutes.

fifonik commented 4 months ago

You can create FFMetrics.conf and increase the timeout.