VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Is it possible to superimpose every 5th frame of a video to a single photo using a batch process? Will FFMPEG do this?

    Thanks!

    Bob

    For example IF this photo was produced from a video? ...

    Name:  Superimpose.jpg
Views: 2226
Size:  10.1 KB
    Quote Quote  
  2. Originally Posted by BobAchgill View Post
    Is it possible to superimpose every 5th frame of a video to a single photo using a batch process? Will FFMPEG do this?

    Thanks!

    Bob

    For example IF this photo was produced from a video? ...
    Can you clarify ? Did you want to overlay a separate single still photo onto every 5th frame of a video in a 50/50 blend ?

    What is being superimposed onto what?

    Or did you mean superimpose every 4th and 5th frame of the video to a single still as an image sequence ? Or every 5th video frame to a sequence of separate single stills ?

    What is the desired output format? A video, a sequence of images?

    Does the "batch" refer to doing this to a single video, or is this for multiple videos ?
    Last edited by poisondeathray; 18th Nov 2014 at 23:33.
    Quote Quote  
  3. I have a video of someone moving their hands... the goal is to take every 5th frame of the video and superimpose these every 5th frame(s) to create a single composite photo showing the motion of the hands.

    I have thousands of videos of a person moving his hands that I want to do the above to. "Batch" means a tool that makes it easy to do this task unattended.

    Thanks!
    Quote Quote  
  4. You could create an action (basically a macro) in Photoshop that would repeatedly advance 5 frames, grab the image and store it as a layer with an appropriate blend mode, and finally combine them, and delete the underlying video (for example.)

    But frankly, without proper lighting or manually choosing the appropriate key frames you're most likely going to end up with a muddy mess.
    Last edited by smrpix; 19th Nov 2014 at 10:15.
    Quote Quote  
  5. So no way to try this with a free tool?
    Muddy mess warning taken to heart.
    Quote Quote  
  6. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    There was another thread here a few weeks ago that dealt with frame merging (that one focused on giving a slow-shutter-speed effect) and a couple of AVISynth scripts were successfully demonstrated. I'm confident one of those could be modified to merge just your (n & (n+5)) frames instead. Then you would need to do a simple convert to picture sequence and choose every 5 frame from the list (or something like that). That's free.

    Scott
    Quote Quote  
  7. Yes, it's possible avisynth . But how long are the clips ? It will look like a bloody mess as stated above, if there are very long . You might want to adjust the parameters or set some restrictions

    e.g. here is a random hand waving tai chi clip from youtube, selecting every 5th frame
    https://www.youtube.com/watch?v=bNyNMz_Qs1s

    Click image for larger version

Name:	avgall2.jpg
Views:	827
Size:	40.1 KB
ID:	28664


    Code:
    ffvideosource("Tai Chi Movements - Tai Chi- Wave Hands Like Clouds Tips - YouTube.mp4")
    selectevery(5,0)
    avgall2
    
    function AvgAll2(clip c) { c.FrameCount() <= 1 ? c : AvgAll2( Merge(c.SelectEven(),c.SelectOdd()) ) }


    There are many different ways of doing this, and you can get different types of looks - so if do a better job describing the desired end effect it would help


    e.g. less frequent samples - instead of every 5th frame, every 200th frame

    Click image for larger version

Name:	avgall2_200th.jpg
Views:	767
Size:	52.2 KB
ID:	28665




    Or my favorite one, Johnny Cage Shadow Kick

    Name:  Shaddow Kick.png
Views: 2774
Size:  48.3 KB
    Last edited by poisondeathray; 19th Nov 2014 at 16:08.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!