Dupped() - yet another frame duplication function

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Postby Corran » Sun Feb 10, 2008 2:57 am

Zarxrax wrote:Hmmm, I did some tests, and your filter appears to be working, but it appears that lagarith's null frame option is not working for me. Corran, what version of lagarith have you tested with?
Alan, I just thought of something else. After I reinstalled Lagarith I noticed that the null frames option was still checked. I then tried compressing and noticed that null frames wasn't working. I canceled the encode, opened up the lagarith properties and disabled null frames and hit ok. I then opened up the dialog again and renabled it.

After I did this I tried compressing again with fast recompress and null frames appeared to be working. It seems as though the configuration dialog wasn't actually in sync with the current lagarith settings.
User avatar
Corran
 
Joined: 14 Oct 2002

Postby Corran » Sun Feb 10, 2008 4:57 am

I just added some more conditional statements to prevent some of the video processing that isn't needed except in certain situations. I also replaced redundant calculations with variables. This should increase the speed of the function when processing scenes with regular motion.

When testing for slow motion, the two previous frames were being compared instead of the last and next. I changed it so last and next are compared...

I also added a new parameter and renamed two others. Threshold is now simply Thresh. Debug is now Stats. Panthresh is new. It is used in calculating the dynamic threshold of low motion scenes. The first two YMinMax values shown in the stats are averaged and then multiplied by panthresh. If the third YMinMax is equal to or greater than this calculation then the current frame is considered a new frame. The dynamic threshold is now displayed in the stats to the right of YMinMax(last,next).

Unless there is a bug this is the last update I plan to make. I'm doubting the usefulness of this function for the purpose of editing amvs. Long fades on a still frame can't be detected it seems and too many amvs use these typically to close a video. Most videos seem to have enough action or fading that duplicate frames are minimal to begin with. I also redid my lagarith tests. I don't know how I originally created a 21GB file...(maybe because ot the black borders I had the first time?) This time around it was only 10.9. 10.9->6.55 is still significant I suppose but I'm not sure how many people actually edited losslessly with avis instead of using scripts.
User avatar
Corran
 
Joined: 14 Oct 2002

Postby Zarxrax » Sat Feb 16, 2008 3:37 pm

I finally got lagarith working with this. Seemed to work quite well at the default settings, whereas dup would screw up the pans.

I'm personally wary of using anything that has the potential to screw up my video, so I doubt I'll use this for anything. It seems that it might be quite useful for reducing the size of lossless source footage, however, I would have concerns about the editing software being able to handle the null frames correctly.
User avatar
Zarxrax
 
Joined: 01 Apr 2001
Location: Concord, NC

Postby Corran » Sat Feb 16, 2008 10:03 pm

If there was a problem with null frames, wouldn't it be caused by the lagarith decoder rather than the editing program itself?
User avatar
Corran
 
Joined: 14 Oct 2002

Postby Zarxrax » Sun Feb 17, 2008 10:51 am

Corran wrote:If there was a problem with null frames, wouldn't it be caused by the lagarith decoder rather than the editing program itself?


No, as editing programs often only work properly when a video contains all keyframes.
User avatar
Zarxrax
 
Joined: 01 Apr 2001
Location: Concord, NC

Postby Corran » Sun Feb 17, 2008 7:19 pm

There is a big difference though between rebuilding a frame from the last keyframe in say divx and requesting a null frame via lagarith. With the later, all it has to do is reference the frame that is going to duplicated and feed it to the app requesting it. It should maintain it's frame accuracy in that process. As far as the editing app is concerned, it is seeing a video from the lagarith decoder that is all keyframes.
User avatar
Corran
 
Joined: 14 Oct 2002

Previous

Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest