Author Topic: Multiple frame blending  (Read 1812 times)

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3461
Re: Multiple frame blending
« Reply #15 on: August 17, 2019, 09:42:08 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

  • Newbie
  • *
  • Posts: 15
Re: Multiple frame blending
« Reply #16 on: August 17, 2019, 10:35:16 PM »
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
Code: [Select]
-- Checking for sqlite
-- *******************
-- FATAL_ERRORCould not find SQLite

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

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3461
Re: Multiple frame blending
« Reply #17 on: August 17, 2019, 10:47:48 PM »
In the avidemux2 directory:

Code: [Select]
bash createDebFromSourceUbuntu.bash --deps-only
bash bootStrap.bash

Quaternions

  • Newbie
  • *
  • Posts: 15
Re: Multiple frame blending
« Reply #18 on: August 17, 2019, 11:00:20 PM »
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

  • Moderator
  • Hero Member
  • *****
  • Posts: 3461
Re: Multiple frame blending
« Reply #19 on: August 17, 2019, 11:05:27 PM »
Once Avidemux (especially core) has been built, you can use

Code: [Select]
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

  • Moderator
  • Hero Member
  • *****
  • Posts: 3461
Re: Multiple frame blending
« Reply #20 on: August 17, 2019, 11:13:20 PM »
In the meantime here is some older comparison clips

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

Quaternions

  • Newbie
  • *
  • Posts: 15
Re: Multiple frame blending
« Reply #21 on: August 17, 2019, 11:18:50 PM »
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

  • Moderator
  • Hero Member
  • *****
  • Posts: 3461
Re: Multiple frame blending
« Reply #22 on: August 17, 2019, 11:29:22 PM »
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

  • Newbie
  • *
  • Posts: 15
Re: Multiple frame blending
« Reply #23 on: August 17, 2019, 11:51:25 PM »
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
Code: [Select]
/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...
« Last Edit: August 18, 2019, 12:05:17 AM by Quaternions »

Quaternions

  • Newbie
  • *
  • Posts: 15
Re: Multiple frame blending
« Reply #24 on: August 18, 2019, 12:19:05 AM »
THIS IS AMAZING!!!! I HAVE NEVER DONE ANYTHING LIKE THIS!!!!

Quaternions

  • Newbie
  • *
  • Posts: 15
Re: Multiple frame blending
« Reply #25 on: August 18, 2019, 01:20:50 AM »
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
« Last Edit: August 18, 2019, 02:40:04 AM by Quaternions »

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3461
Re: Multiple frame blending
« Reply #26 on: August 18, 2019, 07:11:41 AM »
Congratulations!

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

  • Moderator
  • Hero Member
  • *****
  • Posts: 3461
Re: Multiple frame blending
« Reply #27 on: August 18, 2019, 07:31:28 AM »
fixed the reported duration

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

Quaternions

  • Newbie
  • *
  • Posts: 15
Re: Multiple frame blending
« Reply #28 on: August 18, 2019, 12:43:11 PM »
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

  • Moderator
  • Hero Member
  • *****
  • Posts: 3461
Re: Multiple frame blending
« Reply #29 on: August 18, 2019, 01:05:09 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.

Quote
I 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.

Quote
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?

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?