VideoHelp Forum




+ Reply to Thread
Results 1 to 28 of 28
  1. Is there a way to remove dropped frames in one go or in an automatic way? I've been looking around the web and I can't believe there's not much talk about it.

    I do ingame movie capture with FRAPS and when the computer lag it produce some dropped frames when the FPS goes lower than the specified constant FPS.

    Right now I'm using premiere to cut and edit my movies and I suppress the dropped frames manually but it a tedious task for long movies and a high number of clips.

    I heard about some decimate filters thing but it only work when the dropped frames follow a pattern, which can't be my case because the dropped frames are completely random depending on the performances the computer captured the clips at their moments.

    Any ideas?

    TIA
    Quote Quote  
  2. Do you mean 'dropped' frames, or 'duplicate' frames. If they've been dropped they've already been removed.

    If you mean duplicate frames, there are several ways to do this, but it's at the risk of losing audio synch. Maybe you don't care about that. One way is with AviSynth's MultiDecimate filter by Donald Graft:

    http://neuron2.net/multidecimate/multidecimate.html
    Quote Quote  
  3. Hi thanks for the response.
    About Dropped frames or dupes, in Premiere's properties they show up as dropped frames but the frames remains duplicate in the timeline.

    I don't know AviSynt, I tried to download it from your link but the program does'nt install correctly it have no .exe. There's only the uninstall .exe

    Thanks for the help
    Last edited by Jonz; 26th May 2012 at 13:51.
    Quote Quote  
  4. If the frames are absolute duplicates, it'll be easy to remove, but if they are random then you will lose audio sync unless you make the video VFR.
    Quote Quote  
  5. You forget about the sounds, I can sort this problem. I removed many frames manually to figure it have no impacts on my movies the way I edit them in Premiere.
    Quote Quote  
  6. https://forum.videohelp.com/threads/346031-Deleting-duplicate-frames-on-clip?p=2161292

    But he's looking to cut the corresponding audio segment as well. There is no filter in avisynth for that

    If you cut out video frames, but not audio, it will go out of sync. So this is basically useless for you

    If you make it VFR, you cannot edit it in premiere . You can only make VFR after you've edited it and exported from premiere (premiere doesn't read VFR timecodes)


    I would just get a faster GPU/ CPU /hardware and/or play at lower resolution so there are no drops
    Quote Quote  
  7. Like I said, I can sort the audio. I could only care about the video and it will be fine. Upgrade?? lol I got the most recent hardware. But anyway that doesn't answer my current question.
    Quote Quote  
  8. Originally Posted by Jonz View Post
    Like I said, I can sort the audio. I could only care about the video and it will be fine. Upgrade?? lol I got the most recent hardware. But anyway that doesn't answer my current question.
    Recent hardware? They why are you dropping frames? or lagging? What is your recording setup? to single HDD ? What FPS are you recording ?

    Avisynth is script driven. You basically write a text file and frameserve it into premiere, or encode it into a lossless video for import into premiere
    http://avisynth.org/mediawiki/Main_Page#New_to_AviSynth_-_start_here
    Quote Quote  
  9. hmm, is there something more graphical interface available? I'm not really into programming stuff
    Quote Quote  
  10. Yes, I too was looking for a deldup tool that affects audio a while ago. I oughta revisit that thread because people misunderstood the problem.

    I don't think this guy understands what really happens when frames are dropped without dropping audio, though. He says he can deal with it, but if the duplicates are indeed random, he'll have a lot of fun fixing the audio manually or just... removing duplicates manually in Premiere... oh wait, back to where he started.
    Quote Quote  
  11. Originally Posted by Mephesto View Post
    Yes, I too was looking for a deldup tool that affects audio a while ago. I oughta revisit that thread because people misunderstood the problem.
    Me too... I looked hard, it would be a useful function.


    I don't think this guy understands what really happens when frames are dropped without dropping audio, though. He says he can deal with it, but if the duplicates are indeed random, he'll have a lot of fun fixing the audio manually or just... removing duplicates manually in Premiere... oh wait, back to where he started.
    Well maybe his gameplay footage is a montage or something, or he's doing a voice over... who knows... sometimes I guess you don't need audio
    Quote Quote  
  12. well what if I deal with this in the past without problem? All I do is to cut the missing frame (as well the audio) and pull the remaining clip into the deleted spot... As long the clips has enough steady FPS there's no noticeable impact on the sound and frame rate. It just tedious to do it for every clip if the project is huge.
    Quote Quote  
  13. Originally Posted by Jonz View Post
    well what if I deal with this in the past without problem? All I do is to cut the missing frame (as well the audio) and pull the remaining clip into the deleted spot... As long the clips has enough steady FPS there's no impact on the sound and frame rate. It just tedious to do it for every clip if the project is huge.

    Yes, that works, because you're cutting video AND audio. There will be a "glitch" where you make the cuts, but everything is in sync and lined up

    But the approach with avisynth mentioned doesn't do that. They decimate duplicate video frames , not audio. Even a few frames missing is easily detectable and will shift everything out of sync, forget about multiple sections - trust me this won't work for you, unless you have a no audio project , or you intend to keep the audio as is (for a VFR project)
    Quote Quote  
  14. well if a program do it with the video, even with unsynced audio I'll be happy. I always find a way around it, most of the time I replace by another sample anyway, but the most important is the video.
    Quote Quote  
  15. Whatever you say. You have an option to use the MultiDecimate filter by neuron2 or DeDup. Both require avisynth.

    I recommend DeDup, so download dedup.dll and put it in the plugins folder in your Avisynth directory.

    Make a new file with .AVS extension, open with Notepad. Type in the following content and save. Edit accordingly.

    Code:
    LoadPlugin("C:\Program Files\avisynth 2.5\plugins\dedup.dll")
    avisource("C:\video.avi")
    DupMC(log="log.txt")
    #DeDup(threshold=0.00001, trigger2=100, show=false, dec=true, maxcopies=20, maxdrops=20, log="log.txt", times="times.txt")
    Open the .AVS with Premiere or whatever video editting software you use. Let the video play and leave it alone until it reaches the end. Close Premiere.

    You now have a log.txt file in the same directory as your video. Open the AVS with notepad again, this time prepend a # to the DupMC line and remove the one behind DeDup. Save and close. Open AVS with Premiere. The duplicates are gone, yeehaw!
    Quote Quote  
  16. alright, thanks.

    So, where I get this dedup?
    Quote Quote  
  17. Search the net for dedup.dll. It's around.
    Quote Quote  
  18. I did google but I get nothing but the kind of "is this file a virus" web pages or anything that doesn't seems to relate.


    Edit: I think I got it, I found it there: http://avisynth.org/warpenterprises/

    I did create an AVS file and I don't know how to open it in Premiere now. I tried import and says file not supported. How I am supposed to open it?
    Last edited by Jonz; 26th May 2012 at 18:09.
    Quote Quote  
  19. Originally Posted by Jonz View Post
    well if a program do it with the video, even with unsynced audio I'll be happy. I always find a way around it, most of the time I replace by another sample anyway, but the most important is the video.
    Are you sure???? It will actually be WAY more work trying to sync it up than doing what you did before

    If it's just background audio track (not in the video game sounds), and you replace the entire audio - then it might be ok


    You can look at the log file - so you can identify sections with duplicates - this way you can manually do it in premiere , but you have a list ahead of time where the dup sections are


    I think you should ask yourself why you are getting these duplicates in the first place instead of trying a half ass fix
    Quote Quote  
  20. Originally Posted by Jonz View Post

    I did create an AVS file and I don't know how to open it in Premiere now. I tried import and says file not supported. How I am supposed to open it?
    For CS4 and below use the premiere avs import plugin for
    http://videoeditorskit.sourceforge.net/

    for CS5, you need 64bit avisynth + 64bit plugin
    http://pwolfamv.com/programs/csavs64/

    Or use avisynth virtual file system (avfs)

    You need to run 2 passes for dedup, I would run the first pass in vdub (file=>video analysis pass), it will be faster than premiere . Read the instructions on how to tweak the settings for dedup
    Quote Quote  
  21. Originally Posted by poisondeathray View Post
    Originally Posted by Jonz View Post
    well if a program do it with the video, even with unsynced audio I'll be happy. I always find a way around it, most of the time I replace by another sample anyway, but the most important is the video.
    Are you sure???? It will actually be WAY more work trying to sync it up than doing what you did before

    If it's just background audio track (not in the video game sounds), and you replace the entire audio - then it might be ok

    Most of the time the frames I had to cut were so minimal that I just need to speed upt the sound or just scrub the audio. I deal with footages that are like 30-1 minute long so there's no noticeable iches. The only problem sometimes is when I deal with characters talking but I rarely focus on that.

    Originally Posted by poisondeathray View Post
    You can look at the log file - so you can identify sections with duplicates - this way you can manually do it in premiere , but you have a list ahead of time where the dup sections are
    You can see them in Premiere without refering to any log. Just right click the clip and get properties, you have a graph with a timeline showing where there's drop frames and it pretty accurate.

    Originally Posted by poisondeathray View Post
    I think you should ask yourself why you are getting these duplicates in the first place instead of trying a half ass fix
    By upgrading? sorry but that's sounds more like trouble than a fix. And there's no guaranties to whatever I upgrade or lower settings to get rid of drop frames in any way. I could record with the most powerful computer in the world but that wouldn't certify a capture without dropping frames which can be to caused to any random factors.
    Last edited by Jonz; 26th May 2012 at 18:33.
    Quote Quote  
  22. Originally Posted by Jonz View Post

    Originally Posted by poisondeathray View Post
    I think you should ask yourself why you are getting these duplicates in the first place instead of trying a half ass fix
    By upgrading? sorry but that's sounds more like trouble than a fix. And there's no guaranties to whatever I upgrade or lower settings to get rid of drop frames in any way. I could record with the most powerful computer in the world but that wouldn't certify a capture without dropping frames which can be to caused to any random factors.


    I'm just asking why are you getting drops? You didn't answer any of the other questions asked or provide any more info

    Put it this way: many people use fraps and other recording software without issues. Why are you getting these problems ?

    When those people come here or on other boards to complain - 99% of the problems can be explained from inadequate hardware or too high settings. If it's the 1%, then it's something else like storage issue (eg. Fragged HDD), or maybe it was online game and you had lag - but those are very specific . I think it's worth investigating, that's all. Surely it's worth considering and probably less work than learning avisynth or doing it manually in premiere
    Quote Quote  
  23. Other people maybe lying? For every games I have recorded, dropping frames were always there, no matter which config I had or computer. Understand me I don't always have drops. Sometime it just because of unoptimized games or random read write in the computer that I have no control over. But because I can't relive the moment I have captured the clip the only thing I can do is to optimize the clips.

    I don't want to discuss about it anymore because it not what the topic is about.

    Back to topic, I have managed to install the plugin but I get this:

    Click image for larger version

Name:	70b98ad4072e4898803b8c4.png
Views:	294
Size:	80.5 KB
ID:	12583

    I don't understand thought, the path is correct but it still cannot locate the .dll?
    Quote Quote  
  24. I'm just asking why are you getting drops? You didn't answer any of the other questions asked or provide any more info

    Put it this way: many people use fraps and other recording software without issues. Why are you getting these problems ?

    When those people come here or on other boards to complain - 99% of the problems can be explained from inadequate hardware or too high settings. If it's the 1%, then it's something else like storage issue (eg. Fragged HDD), or maybe it was online game and you had lag - but those are very specific . I think it's worth investigating, that's all. Surely it's worth considering and probably less work than learning avisynth or doing it manually in premiere
    I dunno what game he is recording, but he probably inputted the wrong frame rate to capture. I once did a recording of Starcraft with fraps at 60 fps just to find out what its FPS was. Weirdly, deldup got it down to 47 fps or so. Upon investigating I found that different parts of the game have different FPS. The main action screen where everything happens is 24fps, but the cursors are higher at 30 fps and the minimap is much lower. The minimap or cursor has movement while the main screen is on a duplicate frame which is why I got that weird 47 fps after deldupping but I found out that most important part of the game indeed runs at 24fps so I recorded at that rate from then on.

    The OP should too.
    Quote Quote  
  25. Originally Posted by Jonz View Post
    I do ingame movie capture with FRAPS and when the computer lag it produce some dropped frames when the FPS goes lower than the specified constant FPS.

    This is the key information

    If it didn't go lower than the minimum FPS, there wouldn't be an issue would there?

    So why are you lagging?

    If you reduce the quality settings and resolution (thus get higher ingame FPS) and the minimum FPS NEVER drops below the recording FPS then there should be no lag or recording issues . Just do some quick tests. This will tell you if you have to upgrade or not, or play at lower settings

    If it's some other factor (maybe your internet connection is bad for online game), or HDD issue, etc... but you have to provide more info




    Other people maybe lying? For every games I have recorded, dropping frames were always there, no matter which config I had or computer. Understand me I don't always have drops. Sometime it just because of unoptimized games or random read write in the computer that I have no control over. But because I can't relive the moment I have captured the clip the only thing I can do is to optimize the clip.
    Be more specific now - are you talking about dropped frames or duplicate frames in the actual recording ?

    There's other stuff you can do too, like turn off scheduled tasks, uncessary processes (e.g. if you have a virus scan in the middle of a game = bad) , etc...
    Quote Quote  
  26. Poison please get to topic I don't want to discuss about hardware.
    Quote Quote  
  27. OK fine, I'm just saying it's usually better to fix the underlying problem (for anything, not just video) than to go looking for other approaches..



    Did you run the pass in vdub ? did it give you an error message? Why is there a question mark in the error message for the path?


    (\\?\C:\Program Files
    Post your avs script exactly
    Quote Quote  
  28. Thank you,

    I get the similar message in vdub:
    http://prntscr.com/9qjo2

    Code:
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DeDup.dll")
    avisource("H:\DXTORY\test.avi")
    DupMC(log="log.txt")
    #DeDup(threshold=0.00001, trigger2=100, show=false, dec=true, maxcopies=20, maxdrops=20, log="log.txt", times="times.txt"
    And to show that its not a typo:
    http://prntscr.com/9qjuh
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!