fifonik / FFMetrics

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

not honoring duration settings #120

Closed jriker1 closed 6 months ago

jriker1 commented 1 year ago

Found you have beta versions if you click on the full list of compiled versions. That said, when I set it to check 10 minutes, and say to skip the first minute, it keeps going past that duration unlike the last release version. Currently on 44k+ frames and growing for a video with 23.976 fps.

fifonik commented 1 year ago

Could you follow troubleshooting steps and provide ffmpeg command line from log please?

I've just tried the latest 1.4.8b and in my case, when specified duration set to 5 seconds and skipping set to 5 seconds, I have in log: 2023-08-06 16:05:06 ffmpeg -hide_banner -nostdin -r 29.97 -i C:/Path/To/Distorted.mp4 -r 29.97 -i C:/Path/To/Ref.mov -frames:v 150 -lavfi [0:v]trim=start=5,settb=AVTB,setpts=PTS-STARTPTS[main];[1:v]trim=start=5,settb=AVTB,setpts=PTS-STARTPTS[ref];[main][ref]psnr=eof_action=endall:stats_file='-' -f null -

Both files are 29.97 fps so specified -frames:v 150 and trim=start=5 are correct and I see 150 frames on plots.

fifonik commented 6 months ago

Unfortunately, I cannot help you with your issue without additional info.