News:

--

Main Menu

Multiple frame blending

Started by Quaternions, August 16, 2019, 11:14:02 AM

Previous topic - Next topic

eumagga0x2a

Quote from: Quaternions on August 17, 2019, 09:04:14 PM
Also made another short clip with Mathematica and ffmpeg https://www.youtube.com/watch?v=iLiWxcv_Q3w

It would be interesting to compare this clip with the original video simply downsampled to e.g. 25 60 fps without motion blur.

Quaternions

I had not installed the dependencies, but the error is still the same.  Running cmake avidemux_core yet again, farther up in the console it says
-- Checking for sqlite
-- *******************
-- FATAL_ERRORCould not find SQLite


I tried sudo apt-get install sqlite, which installed something, but no change

eumagga0x2a

In the avidemux2 directory:

bash createDebFromSourceUbuntu.bash --deps-only
bash bootStrap.bash

Quaternions

The bootstrap command is running

The poor little quad core i5 3rd gen is pinned...
In the meantime here is some older comparison clips:
1:1
https://www.youtube.com/watch?v=lpvh4nTshes
1:4
https://www.youtube.com/watch?v=hZCXNVUnMFE
1:10
https://www.youtube.com/watch?v=wYKrt1U9BB8

And the one you requested processed in time to post it too:
https://www.youtube.com/watch?v=g87Mw6Ure7I

Hmm I put FrameBlend into the CMakeLists when the file is BlendFrames... time to run it again

eumagga0x2a

Once Avidemux (especially core) has been built, you can use

bash bootStrap.bash --rebuild --without-core (optionally also "--without-qt --without-cli") to speedup the build and to skip already installed (into avidemux2/install) components.

eumagga0x2a

Quote from: Quaternions on August 17, 2019, 11:00:20 PM
In the meantime here is some older comparison clips

The 1x4 Sevaii Nougat clip looks the best for me.

Quaternions

Yess!!!!! I am getting errors for my code!  Now I can start debugging

I thought the x10 version looked slick, but I was underwhelmed when I made the first 1:100 version that I linked in my original post.  I am hoping that it was just because the player was not particularly fast, and that when I use the effect on other runs they will look better.

eumagga0x2a

I wonder if giving the oldest pictures less weight (i.e. not just add the values but add values multiplied with a factor) would result in a more natural motion blur effect.

Quaternions

#23
Wow, it compiled.  I didn't expect to reach this point.  Can't wait to see what sort of runtime errors will pop up!

Equal weights is more or less how objects emitting or reflecting light behave in real life, so equal weights should be the most natural look.  Custom weights might make a cool stylistic effect though.

How do I run Avidemux on Ubuntu?

Edit: did ./install/usr/bin/avidemux3_qt5 and it says
/install/usr/bin/avidemux3_qt5: error while loading shared libraries: libADM_coreVideoCodec6.so: cannot open shared object file: No such file or directory

Edit: GOT IT!!! Had to move to install directory.  Now to test...

Quaternions

THIS IS AMAZING!!!! I HAVE NEVER DONE ANYTHING LIKE THIS!!!!

Quaternions

#25
I made it not green and fixed the reported duration, this is a fully fledged working plugin!
I would like to use this on windows, but I doubt I would be able to compile it as easy.  What are the chances of this plugin making it into a windows build near me?

I recorded this in 120fps a long time ago, perfect test material:
https://www.youtube.com/watch?v=oD-BWiBQV3Q

eumagga0x2a

Congratulations!

Quote from: Quaternions on August 17, 2019, 11:51:25 PM
How do I run Avidemux on Ubuntu?

If you don't want to install it (for system-wide install without proper packaging I'd recommend to specify /usr/local as --prefix during bootStrap.bash run, would require a full build, however), you can place run_avidemux_template.sh in a directory included in $PATH, rename it for convenience, edit it to match the location of the avidemux2 folder and make this script executable.

For instructions how to cross-compile Avidemux for Windows, please see cross-compiling.txt in the avidemux2 directory. It could take a couple of hours for all the components of MXE to compile before you will be able to run bootStrapCrossMingwQt5_mxe.sh.

eumagga0x2a

Quote from: Quaternions on August 18, 2019, 01:20:50 AM
fixed the reported duration

You should take care of all members of FilterInfo struct you modify, in this case of frameIncrement too.

Quaternions

The FrameIncrement remains the same.  I am going to install ubuntu onto my 7700k projector PC to attempt to compile for windows and not take a day.  Even if I don't manage to compile it for windows, I can still use it for using the plugin.  Do you think that I would be able to send the plugin dll to people after it's compiled for windows?  Or is it all hopelessly intertwined

eumagga0x2a

Quote from: Quaternions on August 18, 2019, 12:43:11 PM
The FrameIncrement remains the same.

Oh, my bad, I see now. I still unconciously fall back to my original thought of a motion blur filter which doesn't alter the perceived speed of the video.

QuoteI am going to install ubuntu onto my 7700k projector PC to attempt to compile for windows and not take a day.

Just the initial setup of the environment is time-consuming, the cross-build itself is not or not significantly slower than a native one.

QuoteEven if I don't manage to compile it for windows, I can still use it for using the plugin.  Do you think that I would be able to send the plugin dll to people after it's compiled for windows?

For those who run MinGW compiled Avidemux builds provided e.g. via https://avidemux.org/nightly/win64/ and as long as the source remains available or is included with the dll, why not?

But why not submitting the new filter upstream?