Freeze frame effect with ffmpeg

For the developers that use FFmpeg in their software.
Post Reply
trongtrong
Posts: 1
Joined: Wed Mar 18, 2020 3:29 am

Freeze frame effect with ffmpeg

Post by trongtrong »

Hello, I have a problem as follows:
I am working on a project to slow down videos using the FFmpeg library.
I have an mp4 video, 30fps with a duration of 1 minute.
Assuming the first segment (from 0 to 30 seconds): I want to speed up the segment twice, at 31 seconds I want to freeze it for 5 seconds (both video and audio), the second from 32 seconds to the end with the speed reduced by 2 times.
The total duration of my video output will be segment 1 + paragraph freezing (5s) + paragraph 2.
Is there a way to do that with just one ffmpeg statement?
Thank in advance.

Post Reply