Showing every 5th frame ONLY keeping the duration

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Frojdman

  • Posts: 9
  • Joined: Thu Jan 02, 2020 2:00 pm
  • Real Name: Jan Fröjdman

Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 3:29 pm

Hi
1. Not quite sure how to achieve this:
(I'm on DR 16)
- my source clip= 25fps
- my timeline= 25fps
I want to keep every 5th frame ONLY but keeping the duration of the clip (and skipping 4 frames in between). Meaning one frame will be showing up 5 times in a row.
So I sort of wants to simulate a stop motion sequence out of an ordinary video clip.

2. Additional question:
Then if I put a bunch of other "stop motion" clips after each other but want to place an "optical flow" transfer that lasts ONLY ower 5+5 frames (meaning that the effect lasts over the last 5 frames on a clip and on the first 5 frames on the next clip).

Appreciate a solution for this.
Regards,
Jan
Offline

Andrew Kolakowski

  • Posts: 9535
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 4:04 pm

No idea how to do it in Resolve. Not sure if it can be done (at least fairly easily) at all.

This is job for tools like avisytnh or vapoursynth.
Offline

pinthenet

  • Posts: 145
  • Joined: Mon May 18, 2020 3:23 pm
  • Real Name: John Payne

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 4:41 pm

You can probably do it with the Reactor TimeMachine tool https://www.steakunderwater.com/wesuckless/viewtopic.php?f=6&t=74 - it offers (amongst others) "Skip: skips frames, so a setting of 2 starting from 1 does 111444777" and there are many control parameters. You can install it using the Reactor plugin from the same site https://www.steakunderwater.com/wesuckless/viewtopic.php?f=32&t=3067 .
I haven't got very far yet so you'll need to study the WSL thread.
[size=85]
PC: Intel i5-12600K /32GB/RTX3060-12GB
Windows 11 Pro; NVIDIA 552.22 Studio; Resolve+Fusion 19B
Offline
User avatar

waltervolpatto

  • Posts: 11329
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: Pictureshop 6040 Sunset Blvd, Hollywood, CA 90028

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 4:49 pm

OFX “stop motion” you setup the hold and there is a button to choose the frame you need to keep as starting
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled - 12x8TB SSD RAID5 internal (80TB)
PSU RM1200x SHIFT 80 PLUS - Decklink Studio 4K (12.4.1)
Resolve 20.0.0 / fusion studio 19
GPU 3090ti drivers 576.80
Offline

Andrew Kolakowski

  • Posts: 9535
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 4:56 pm

And you have to do it every 5th one in eg 10min material :D
Offline
User avatar

waltervolpatto

  • Posts: 11329
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: Pictureshop 6040 Sunset Blvd, Hollywood, CA 90028

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 4:58 pm

Andrew Kolakowski wrote:And you have to do it every 5th one in eg 10min material :D


As i understand is
Frame 0, hold for 5 frames, frame 5, hold for 5 frames, frame 10, hold for 5 frames... and so on.

That is what that OFX does.
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled - 12x8TB SSD RAID5 internal (80TB)
PSU RM1200x SHIFT 80 PLUS - Decklink Studio 4K (12.4.1)
Resolve 20.0.0 / fusion studio 19
GPU 3090ti drivers 576.80
Offline

Jim Simon

  • Posts: 36143
  • Joined: Fri Dec 23, 2016 1:47 am

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 5:18 pm

1. Like Walter said, the Stop Motion effect.

2. Optical Flow is an interpretation method for clips that don't match a specific frame rate, it's not a transition.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

Andrew Kolakowski

  • Posts: 9535
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 5:22 pm

waltervolpatto wrote:
Andrew Kolakowski wrote:And you have to do it every 5th one in eg 10min material :D


As i understand is
Frame 0, hold for 5 frames, frame 5, hold for 5 frames, frame 10, hold for 5 frames... and so on.

That is what that OFX does.


You mean it will keep doing it for all needed frames. You just choose how many frames. Then it's easy :)
Offline

Andrew Kolakowski

  • Posts: 9535
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 5:33 pm

This should do it:

ffmpeg -i source -filter_complex "select=eq(mod(n\,5)\,1)" -c:v prores -profile:v 3 -an output.mov

if you want to trim file and take just a n seconds for it then add before -i
-ss 10 -t 30

which means take 30 seconds, starting from 10th second.

Then when you place all clips on timeline you need to do cuts at 5 frames relative to end/beginning of each clip and apply optical flow just for those sections.
Offline
User avatar

Sean Nelson

  • Posts: 893
  • Joined: Sun Feb 07, 2021 9:48 pm
  • Location: Vancouver, Canada
  • Real Name: Sean Nelson

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 5:51 pm

A way to do it with Resolve would be to change the clip speed to 500%, export it to an intermediate file, and then re-import it and change the clip speed to 20% - using "Nearest" for Retime Process.
DR Studio 19.1.4 Build 11, Win10Pro x64 22H2/19045.5608
Asus C246 Pro Motherboard, Xeon E-2278G@3.4GHz, 64GB ECC RAM
GeForce 3060 12GB, "Studio" driver 560.81
OS,Library: 1TB NVMe SSD - Project,Cache: 1TB NVMe SSD
Offline

Andrew Kolakowski

  • Posts: 9535
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 6:06 pm

Cant you just use compound clip and stay within Resolve?
1 timeline with speedup and then dropping it to other one where you use slow down.
Last edited by Andrew Kolakowski on Wed Mar 17, 2021 6:12 pm, edited 1 time in total.
Offline

Frojdman

  • Posts: 9
  • Joined: Thu Jan 02, 2020 2:00 pm
  • Real Name: Jan Fröjdman

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 6:11 pm

Thank you guys for all hints!
I did play around with Effects Library->OpenFX->Stop Motion which did the thing.
I will try to solve the optical flow effect as well with the suggestions you have given me here.
Thank You!
Offline

Andrew Kolakowski

  • Posts: 9535
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 6:14 pm

I though it's an external pluing. If it's Resolve one then easy :)

Not sure what are you trying to achieve with optical flow as your clip fps is still the same as timeline fps, so it won't do anything.
Offline

Frojdman

  • Posts: 9
  • Joined: Thu Jan 02, 2020 2:00 pm
  • Real Name: Jan Fröjdman

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 6:55 pm

What I would like to use is an "Optical flow" effect between still images in a sequence, or with stop motion. But the problem is, let say using 1s of a still image "clip" on the timeline is that the optical flow effect will affect the whole 1s.

What I will achieve is that the still image is static for the most part, and will only "flow over" to the next image for a shorter time.

A clumsy way I did this was to add one image 5 times in a row, then the next image 5 times and so on...
Then I added the optical flow effect between one last image, and on the first of the next image.

So I just thought there could be a smarter way to do this...
Sorry if you find difficulties follow my thoughts... :-)
Offline

Mario Kalogjera

  • Posts: 1202
  • Joined: Sat Oct 31, 2015 8:44 pm

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 8:41 pm

Use the Fusion page, Luke.

Code: Select all
{
   Tools = ordered() {
      TimeSpeed2 = TimeSpeed {
         CtrlWZoom = false,
         Inputs = {
            Speed = Input { Value = 5, },
            InterpolateBetweenFrames = Input { Value = 0, },
            SampleSpread = Input { Disabled = true, },
         },
         ViewInfo = OperatorInfo { Pos = { -422, 284 } },
      },
      TimeSpeed2_1 = TimeSpeed {
         Inputs = {
            Speed = Input { Value = 0.2, },
            InterpolateBetweenFrames = Input { Value = 0, },
            SampleSpread = Input { Disabled = true, },
            Input = Input {
               SourceOp = "TimeSpeed2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { -278, 285 } },
      }
   }
}
Asus Prime X370-Pro+R7 3700X@PBO+32 GB G.Skill AEGIS DDR-4@3200MHz
Sapphire RX6700 10GB
Adata A400 120GB System,A2000 500GB Scratch SSDs
Media storage:"Always in motion is it"
BMD Mini Monitor 4K
Windows 11 Pro+Resolve Studio 18+Fusion Studio 18
Offline
User avatar

waltervolpatto

  • Posts: 11329
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: Pictureshop 6040 Sunset Blvd, Hollywood, CA 90028

Re: Showing every 5th frame ONLY keeping the duration

PostWed Mar 17, 2021 10:42 pm

Mmm... if you do the stop motion ofx, then compound the clip, then add motion blur in the color page?
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled - 12x8TB SSD RAID5 internal (80TB)
PSU RM1200x SHIFT 80 PLUS - Decklink Studio 4K (12.4.1)
Resolve 20.0.0 / fusion studio 19
GPU 3090ti drivers 576.80
Offline

Frojdman

  • Posts: 9
  • Joined: Thu Jan 02, 2020 2:00 pm
  • Real Name: Jan Fröjdman

Re: Showing every 5th frame ONLY keeping the duration

PostThu Mar 18, 2021 7:58 am

My stop motion sequence is like a person's face.
And what I want to achieve is like short "frozen" faces flowing into the next by use of optical flow effect.
Jan

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot] and 269 guests