0

I'm working with the following function:

from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip

if ffmpeg_extract_subclip("c:\\users\\samuel\\desktop\\VideosYT\\randomvideo.mp4", 0, 10, targetname="test.mp4"):
  print("")

which is giving me the following output:

Moviepy - Running:
>>> "+ " ".join(cmd)
Moviepy - Command successful

which I don't want it to show in my terminal.

How can I solve this output problem?

Thank you!

Jason Aller
  • 3,541
  • 28
  • 38
  • 38

1 Answers1

0

There is a logger parameter of the function after I searched for the source code. Here's a link!

You can try to set it to None:

if ffmpeg_extract_subclip("c:\\users\\samuel\\desktop\\VideosYT\\randomvideo.mp4", 0, 10, targetname="test.mp4", logger=None):
  print("")
Oguzhan
  • 154
  • 1
  • 9