I'm trying to use: "ffmpeg_extract_subclip" for extracting part of a video.
And I'm facing a few problems:
1.when I'm cutting a small video (1-3seconds) I'm getting black frames, only audio is working. 2.when I'm cutting longer video, the output video is stuck 2-3 seconds before the end.
This is my simple code:
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
input_video_path = 'myPath/vid1.mp4'
output_video_path = 'myPath/output/vid1.mp4'
t1 = 6.5
t2 = 16 # random numbers, my last attempt..
ffmpeg_extract_subclip(input_video_path, t1, t2, targetname=output_video_path)
I tried to look inside the code: ffmpeg_extract_subclip Function
But still couldn't understand what's wrong.. :(
I'm still trying, and if anyone knows the problem or have a different approach, that will be amazing.
Thanks a lot for your help!