video-compare
video-compare copied to clipboard
Loop by default?
This is amazing, thank you for build it! 🙏 Is there a command line argument I can use to loop the videos by default?
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
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.
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.
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.
I would like to endorse this feature as well.
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.