video-compare icon indicating copy to clipboard operation
video-compare copied to clipboard

Loop by default?

Open mike-rowley opened this issue 3 months ago • 5 comments

This is amazing, thank you for build it! 🙏 Is there a command line argument I can use to loop the videos by default?

mike-rowley avatar Mar 26 '24 19:03 mike-rowley

Thank you for the feedback; I'm glad to hear you find it useful!

I'm not entirely sure what you're aiming to achieve, but you might consider using video filters to create an infinite loop. See this: https://github.com/pixop/video-compare/issues/58#issuecomment-1850882284

jonfryd avatar Mar 26 '24 20:03 jonfryd

I am using it to compare short video segments created by generative AI to determine the effect of the settings I input.

Essentially what I am looking for is a way to have the effect of pressing the period key, but by default as I literally end up having to press it every single time I use the app.

mike-rowley avatar Mar 26 '24 21:03 mike-rowley

OK, in that case, the answer to your original question is "no, not today". video-compare must fill the buffer first before it can loop over what's in the buffer.

To achieve what you are asking for, new functionality is required which fills the buffer on startup and then enters loop playback mode. It's not as straightforward to add as it might seem, unfortunately. Perhaps in the future.

jonfryd avatar Mar 26 '24 21:03 jonfryd

My thought was more along the lines of automatically looping it once the first pass of the video has been buffered. But certainly not a big issue, just having the tool is great. Thanks again.

mike-rowley avatar Mar 26 '24 23:03 mike-rowley

I would like to endorse this feature as well.

aelfwine88 avatar Mar 27 '24 09:03 aelfwine88

I've added a new command-line argument that enables this:

    -a, --auto-loop-mode
        auto-loop playback when buffer fills, 'off' for continuous streaming (default), 'on' for forward-only mode, 'pp' for ping-pong mode

For example:

    ./video-compare -a pp video1.mp4 video2.mp4

Hope this makes sense. The next release is scheduled for next week.

jonfryd avatar Apr 22 '24 13:04 jonfryd