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

Contribution: Frontend for diffing folders and easily start Video-compare

Open bjspi opened this issue 1 year ago • 9 comments

Hi all,

just wanted to give back some information to the community after having found this tool a while back and really loving it.

I mainly use it after re-encoding a big bunch of smartphone vacation videos (sometimes 100+ videos) to quickly verify the results. Normally I have two folders from my video-encoding, "input" & "output" and I always found it a bit cumbersome to start video-compare via CMD, because I didnt find a way to do it quickly. Yes I could create a Batch file, but drag/drop from two different Windows folders to one Batch-file is simply not possible.

I use BeyondCompare for all sorts of diffing already (yes I know, paid software, but at least has a trial) and wanted to share an amazing way to do the job quickly.

First: While diffing the folders (in my example input & output), I can set BeyondCompare to align filenames with different file-extensions. That's helpful when I have multiple different input sources like IPhones (-> *.mov files), Android phones (mp4 files) and transcode them all to target mp4 files. It aligns the files properly if the basename of the file is identical.

After aligning, I see the differences like in the following screenshot. I simply have to click in the middle to select both files at the same type and press "v" on my keyboard (or via right-click contextmenu), which opens up the viedo-compare instance with both the files as parameters.

2024-10-17_09h10_34

This "Open-with" command can be configured under options like this:

2024-10-17_09h11_59

And yes, of course I could also add custom cmd-flags / options, e.g. the hopefully upcoming "Scale to fit screen" setting to scale properly irrespectively of the resolution of the video files - very helpful when working with mixed 4k / 1080p files in the same diff.

So finally, this really is amazing if you are dealing with a big amount of video-files and you'd like to graphically open up video-compare via a GUI.

Hope it helps

bjspi avatar Oct 17 '24 07:10 bjspi

Total Commander version:

Add new button to the toolbar with the following: Command -> full path to video-compare.exe Parameters -> your video-compare parameters %P%S %T%R

tc_vc

%P%S means full path to source %T%R means full path to target

aelfwine88 avatar Oct 17 '24 12:10 aelfwine88

Total Commander version:

Add new button to the toolbar with the following: Command -> full path to video-compare.exe Parameters -> your video-compare parameters %P%S %T%R

tc_vc

%P%S means full path to source %T%R means full path to target

Can total commander also align files with different file extension side by side? Thanks, sounds also really nice

bjspi avatar Oct 17 '24 13:10 bjspi

Can total commander also align files with different file extension side by side? Thanks, sounds also really nice

It has a Extension Tab by default that you can use to sort files.

aelfwine88 avatar Oct 17 '24 13:10 aelfwine88

Awesome. Keep 'em coming, guys!

jonfryd avatar Oct 17 '24 15:10 jonfryd

Awesome. Keep 'em coming, guys!

With the latest change, I'd also change my above command in BeyondCompare to "D:\PortableTools\video-compare\video-compare.exe -W "%f1" "%f2""

(-W in capital w is the CMD option for the next release, right?)

bjspi avatar Oct 21 '24 09:10 bjspi

Awesome. Keep 'em coming, guys!

With the latest change, I'd also change my above command in BeyondCompare to "D:\PortableTools\video-compare\video-compare.exe -W "%f1" "%f2""

(-W in capital w is the CMD option for the next release, right?)

Yes, you got it right. I'd expect the new version to come out this week.

jonfryd avatar Oct 21 '24 17:10 jonfryd

Another useful utility for launching https://github.com/TetzkatLipHoka/VideoCompareGUI

pldavid2 avatar Nov 16 '24 20:11 pldavid2

Another useful utility for launching https://github.com/TetzkatLipHoka/VideoCompareGUI

Cool! Thanks for sharing, @pldavid2.

jonfryd avatar Nov 17 '24 07:11 jonfryd

Total Commander with HOTKEY:

image

image

image

image em_video_compare

Putting the parameters to the user defined command, so they can be changed manually in the opening dialogue. They can also be defined in the hot key dialogue.

image ? --verbose --window-fit-display %C1 %C2

Enhancement using Overlaying histograms on both videos #45

? --verbose --window-fit-display -l "split=2[a][b],[b]format=gbrp,histogram=display_mode=stack:colors_mode=coloronblack:level_height=100:levels_mode=linear:fgopacity=1:bgopacity=1,format=yuva444p,colorchannelmixer=aa=0.75[hh],[a][hh]overlay=20:main_h-overlay_h-50" -r "split=2[a][b],[b]format=gbrp,histogram=display_mode=stack:colors_mode=coloronblack:level_height=100:levels_mode=linear:fgopacity=1:bgopacity=1,format=yuva444p,colorchannelmixer=aa=0.75[hh],[a][hh]overlay=main_w-overlay_w-20:main_h-overlay_h-50" %C1 %C2

Snippets from TOTALCMD.CHM

Dialog box: Configuration - Change button bar

Special parameters: ? as the first parameter causes a Dialog box to be displayed before starting the program, containing the following parameters. You can change the parameters before starting the program. You can even prevent the program's execution.

%C1 Like the first parameter of "Compare by content": First selected file, or file under cursor %C2 Like the second parameter of "Compare by content": Second selected file, or first selected in target panel, or file with same name in target panel. Note: If the right panel is active and less than 2 files are selected, %C1 and %C2 will be reversed.

AnselmD avatar Jan 05 '25 10:01 AnselmD