Hello!!, I am having a problem with moviepy.video.fx.all.time_mirror and moviepy.video.fx.all.time_symmetrize. I want to output a video that plays normally in the first half, then plays in reverse for the second half. I tried concatenating videoclips separately, but still got the problem.
The output video has skiped some frames in the beginning and plays the last frame for 1 to 2 seconds at the end. (Please refer input and output video mentioned above)
Steps to Reproduce the Problem
This is the snippet of the code I use.
Try running the following code.
code:
using moviepy.video.fx.all.time_mirror:
from moviepy.editor import VideoFileClip, concatenate_videoclips
import moviepy.video.fx.all as vfx
Expected Behavior
Hello!!, I am having a problem with moviepy.video.fx.all.time_mirror and moviepy.video.fx.all.time_symmetrize. I want to output a video that plays normally in the first half, then plays in reverse for the second half. I tried concatenating videoclips separately, but still got the problem.
Actual Behavior
Input Video
Actual output
The output video has skiped some frames in the beginning and plays the last frame for 1 to 2 seconds at the end. (Please refer input and output video mentioned above)
Steps to Reproduce the Problem
This is the snippet of the code I use. Try running the following code.
code:
video = VideoFileClip('Bg.mp4') Rvideo = vfx.time_mirror(video) Fvideo = concatenate_videoclips([video, Rvideo], method="chain") Fvideo.write_videofile('output.mp4')
from moviepy.editor import VideoFileClip import moviepy.video.fx.all as vfx
video = VideoFileClip('Bg.mp4') video = vfx.time_symmetrize(video) video.write_videofile('output.mp4')