Delete every 7th frame

Dear video editors,

Greetings !


To make a long story short - could you advice wether it is possible in FCP X to delete every Nth frame from video (or maybe there is an addon or 3rd party program capable of this).


---------------------------------------------------------------------------


For the patient ones...the problem is as follows: I've found an old video of school years made on digital camera. Once it was shooted the video was fine, but through many years something happened (maybe I edited or transcoded it? not sure) and now this video is damaged - every 7th frame is corrupted. By corruption I mean some kind of frame shift, please find 2 pictures attached. There is a nice frame, and the second shifted one. So when you view the whole scene the picture seems to...flicker I would say.


Since I have no idia what caused this problem I think the easiest way to solve it - just to delete all these "bad" frames from the video. Thanks god this is EXACTLY every 7th frame so I hope I wont have to delete them manualy.




User uploaded fileUser uploaded file


BRGDS

Stan

MacBook Air, Mac OS X (10.7.1)

Posted on May 4, 2014 3:12 AM

Reply
11 replies

May 4, 2014 10:57 AM in response to Ian R. Brown

Good day) To avoid this kind of solutions I mentioned "Once it was shooted the video was fine". So the camera shooted correctly, I have tons of videos collected for 5 years... and this is the only one corrupted (the video was fine few years ago....but then I guess I edited it...not sure...and I've noticed the corruption only now). I tried to manualy delete every 7th frame for 5 SECONDS - the video is good enough and not realy jerky. But I can not manualy do this for 5 MIN long video you know 🙂

Jun 28, 2014 6:20 PM in response to fox_m

Is this the keyboard shortcuts to achive the 7th frame deletion?


Automator & Applescript will record keyboard commands (with varying degrees of sucess - try them all). They will also play them back. Record it once. Copy & paste, cross fingers & test it.


I think ffmpeg would also do this via an insanely complex command, that I don't know the ffmpeg forums may help, but. it isn't easy.


Personally I'd look for someone with whatever the magic Adobe software is (or rent it). You should also check that it is the 7th frame all the way through, otherwise you would need to actually detect the damaged frames.

Jun 29, 2014 6:02 AM in response to Moloy

Yo guys, thank you for replies and suggestions!


Finally I decided to get around with Automator. I read some basic stuff from google, created an AppleScript:

repeat 1400 times

tell application "Final Cut Pro" to activate

delay 0.05

tell application "System Events" to keystroke (ASCII character 29)

delay 0.05

tell application "System Events" to keystroke (ASCII character 29)

delay 0.05

tell application "System Events" to keystroke (ASCII character 29)

delay 0.05

tell application "System Events" to keystroke (ASCII character 29)

delay 0.05

tell application "System Events" to keystroke (ASCII character 29)

delay 0.05

tell application "System Events" to keystroke (ASCII character 29)

delay 0.05

tell application "System Events" to keystroke (ASCII character 29)

delay 0.05

tell application "System Events" to keystroke "b" using command down

delay 0.05

tell application "System Events" to keystroke (ASCII character 29)

delay 0.05

tell application "System Events" to keystroke "b" using command down

delay 0.05

tell application "System Events" to keystroke (ASCII character 28)

delay 0.05

tell application "System Events" to keystroke "o"

delay 0.05

tell application "System Events" to keystroke (ASCII character 8)

delay 0.05

end repeat


I know it could be much shorter and smarter, but I had no time or interest in studying AppleScript language and FCP shortcuts for a 1-time use purpose. So, if you face some similar problem - you are welcome to copy/paste !


GL and thnx

Jun 29, 2014 8:54 AM in response to Drew Reece

Ye, I am happy now))) Video is pretty well, but I have to stress that it was captured on a pretty old camera and the quality is not so nice, maybe that is why I can't see every any flickering due to every deleted 7th frame.


I detached sound track to make sure that frame mess doesn't influence the sound. And yes....I had to work around a bit with sound track to coordinate it with video content (obviously every 5-10th second of video was to be resynchronized with audio).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Delete every 7th frame

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.