I have been developing this small application to download and cut Youtube videos. It works fine but an error or misformatted message is the issue I have not fixed. When it comes to the cutting process, the function ffmpeg_extract_subclip
is used and right after that point, I get the weird error below:
Below, the script working fine.
The function responsible for cutting the video
# cutting the video by section
def cut_video(video_local_path, start_time, end_time, final_file):
print("- Cutting your video...")
ffmpeg_extract_subclip(video_local_path, time_to_sec(start_time), time_to_sec(end_time), targetname=f"{final_file}.mp4")
If necessary, you can check the full code here on github.
I have extensively read the API for ffmpeg and moviepy, debugged on vscode and checked alternatives like VideoFileClip but it would never give me the same performance.
Thanks in advance.