Tagged with avissynth - Personal View Talks https://personal-view.com/talks/discussions/tagged/avissynth/feed.rss Sat, 23 Nov 24 14:12:50 +0000 Tagged with avissynth - Personal View Talks en-CA Different times at one location: Extended dynamic range solution for 1080p Videos https://personal-view.com/talks/discussion/2232/different-times-at-one-location-extended-dynamic-range-solution-for-1080p-videos Thu, 09 Feb 2012 07:41:57 +0000 tida 2232@/talks/discussions MARCH-09-2012 - I did put an update of TimelapseVid.py, ExposureFusionVid.py and SlowMoVid.py (new) in the attatched Macros v2 file.

Below you will find a user friendly freeware solution where you can extend the dynamic range for AVCHD timelapses, slow motions and freeze frame videos. This solution invites your creativity to work with different time measures at one location.

Don't worry that it's based on Avisynth scripts as they were created automatically and in most cases you even don't need to modify them. You also need AvsPMod which is the basis of this user friendly method.

Install the TimelapseVid.py and ExposureFusionVid.py files into the \AvsPMod\macros folder or subfolder. You will find then as soon as you freshly start the AvsPMod application and enter the menu "macros". For the ExposureFusionVid script you need to download a fuse/fusemask plugin which you will find at http://forum.doom9.org/showthread.php?t=152109. Save the fusion.dll file into the Avisynth\plugins folder.

In my opinion this macro method has a lot of potential to be optimized by this community. I hope you will have a lot of suggestions to improve it. Maybe you have ideas for other procedures....

The following video should demonstrate how it works.

==== TimelapseVid.py ====

This procedure is focused on a simple 360 degree shutter angle timelapse workflow. It has similarities with the methods used by @GH13Timelapser discussed by http://www.personal-view.com/talks/discussion/595/mjpeg-fps-setting-for-timelapse-on-gh2/p1 but can run now with AVCHD files like *.MTS. Also @balazer described AviSynth Overlay methods in http://www.personal-view.com/talks/discussion/1559/avchd-1080p-time-lapse/p1. The resulting script of this macro is based on Avisynth TemporalSoften.

First you will be asked for the video file which should be converted into a timelapse or averaged frame video.

The second dialog box (see attatched picture) will ask you to enter used shutter speed, the frame rate of the resulting video, the timelapse rate and GOP. The generated script will take care about the correct GOP at given Shutterspeed. Usage of Group of Pictures (GOP) at different shutter speeds with 24p and Panasonic GH2 was discussed by @duartix at http://www.personal-view.com/talks/discussion/comment/39686#Comment_39686 and http://www.personal-view.com/talks/discussion/2396/gh2-motion-fluidity-360%C2%BA-shutter-test-on-slow-shutter-speeds./p1.

Put in the third dialog box the name of your script. It is recommended to save the *avs scipt under similar name of the video that in future you can trace back what you have done.

In AvsPMod you can check what you have done. Please also read the comments in the script to learn how to optimize your results.

Now you can use this *avs script in Virtualdub, MeGUI or whatever to create the final timelapse video file.

Comment: You can create an "averaged frame video" by just set TimelapseRate to Framecount. You end up in a video with just one frame. It could help for example to clean up a market place with moving people. This averaged frame should be over- or underexposed and can be used for subsequent Exposure Fusion procedure. In the Exposure Fusion procedure it would be converted into a freeze frame video with exactly same number of frames of the reverse exposed timelapse.

==== ExposureFusionVid.py ====

ExposureFusionVid is a user friendly solution to improve the dynamic range of the timelapse. You can even work with different time units at one location. You can combine timelapse, slow motion or freeze frame videos with each other. Important is that one video has to be overexposed and the other should be underexposed.

First you will be asked for the first video and subsequently for the second. If you have created an "averaged frame video" you have to open it by the first dialog box.

Then you will be asked for the name of the *.avs script which should be saved.

In AvsPMod you need to check the script for further optimization. Read the comments. You will see that there are two different mask methods which can be applied for the fuse method. Play whith them until your reach the best result.

Again, now you can use this *avs script in Virtualdub, MeGUI or whatever to create the final video file.

==== SlowMoVid.py ====

SlowMoVid.py can be used for progessive as well as for interlaced videos. If the base is progressive motion estimation will be derived by mvtools. If the video is interlaced QTGMC or Yadif will at the first step take care about deinterlacing. Subsequent motion estimation will be carried out by mvtools.

==================

You need to install following plugins in your Avisynth plugin folder:

GScript.dll download from http://forum.doom9.org/showthread.php?t=147846

MVtools2.dll download from http://avisynth.org.ru/mvtools/mvtools2.html

RemoveGrainSSE3.dll download from http://www.removegrain.de.tf

Yadif.dll download from http://avisynth.org.ru/yadif/yadif.html

Fusion.dll download from http://forum.doom9.org/showthread.php?t=152109

]]>