pixop / video-compare

Split screen video comparison tool using FFmpeg and SDL2
GNU General Public License v2.0
889 stars 41 forks source link

feature-request: Support play speeding when comparing videos #34

Closed utzcoz closed 1 year ago

utzcoz commented 1 year ago

This project is awesome, and I use it to compare videos frame by frame. When using it, I want it to play videos slower than normal speed, for example 0.5x. I want to know whether this project can support it?

jonfryd commented 1 year ago

Hi @utzcoz,

Sure, you can use the setpts filter for that via the new custom filter chain mechanism we added yesterday:

./video-compare -l setpts=2.0*PTS -r setpts=2.0*PTS videoA.mp4 videoB.mp4

Speeding up/slowing down video

utzcoz commented 1 year ago

@jonfryd Thanks. It's awesome that this feature was brought to video-compare recently. I will try it.

simcc commented 1 year ago

On Mac I needed to use :

video-compare -d -l "setpts=8.0*PTS" -r "setpts=8.0*PTS" videoA.mp4 videoB.mp4

Great tool jonfryd, thanks.

jonfryd commented 5 months ago

I've just pushed a commit (1b539a80909eeb308befe1f0b138f26d24f73316) which allow the playback speed to be adjusted via J and L. The adjusted playback speed for every frame is also shown in the UI at the bottom. Overall, I find the ability to slow down the video really useful.

Screenshot 2024-01-13 at 16 07 08