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

[Feature Request]

Open banjaminicc opened this issue 2 years ago • 4 comments

Could I request for features here? One of them would be to have a shortcut that allows us to save PNGs at the point of the video Full PNGs of both videos saved in the working directory or something similar

Another feature would be to allow two videos to be side by side but full-res So instead of a slider they would be two seperate videos playing at their full-res

Thanks in advance

banjaminicc avatar Jun 09 '22 17:06 banjaminicc

Hey @banjaminicc,

Thanks for your suggestions!

I'll keep these ideas in mind and possibly implement them in the future. I'm also open to PRs.

BTW, if you just want to play two videos side-by-side you can use ffplay for that:

ffplay -f lavfi "movie=video1.mp4[v0];movie=video2.mp4[v1];[v0][v1]hstack"

This command (specifically the hstack filter) requires both videos are the same resolution, of course.

jonfryd avatar Jun 10 '22 09:06 jonfryd

Thanks for the tip! Unfortunately I suck at coding so can't help with PRs xD Thanks for the proactive response!

banjaminicc avatar Jun 17 '22 06:06 banjaminicc

Hey @banjaminicc,

So I have just added support for saving both full PNG frames to the current directory by pressing F. I hope this works for you.

Here's a basic example which illustrates how files are named (F has been pressed 3 times):

$ ./video-compare ~/Movies/myanmar_x3_original.mp4 ~/Movies/myanmar_x3_pabsr1.mp4 
Saved myanmar_x3_original_0001.png and myanmar_x3_pabsr1_0001.png
Saved myanmar_x3_original_0002.png and myanmar_x3_pabsr1_0002.png
Saved myanmar_x3_original_0003.png and myanmar_x3_pabsr1_0003.png
...

A new Windows release is coming later today (I don't know if you are a Linux, Windows or Mac guy).

The side-by-side full-res feature is still in the pipeline... :)

jonfryd avatar Aug 12 '22 11:08 jonfryd

Hey @banjaminicc,

So I have just added support for saving both full PNG frames to the current directory by pressing F. I hope this works for you.

A new Windows release is coming later today (I don't know if you are a Linux, Windows or Mac guy).

The side-by-side full-res feature is still in the pipeline... :)

Thanks so much :P

banjaminicc avatar Aug 12 '22 11:08 banjaminicc

Hey @banjaminicc,

I have implemented new display modes today which addresses your second feature request.

Try -m hstack for horizontal stacking, -m vstack for vertical stacking.

Let me know if it works for you!

jonfryd avatar Sep 13 '22 19:09 jonfryd