You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been digging through the library code and found two lines that print FFmpeg info and commands in moviepy/video/io/ffmpeg_reader.py file (117 and 139 lines), but at the same time, I didn't find these lines of code in the master branch on GitHub. So, when I commented out these lines of code, everything worked as I needed it to!
Steps and code to Reproduce the Problem
Just trim the video and save the result via this code:
from moviepy.video.io.VideoFileClip import VideoFileClip
input_video_path = "video.mp4"
output_video_path = "output-video.mp4"
start_time = 10
end_time = 12
with VideoFileClip(input_video_path) as video:
trimmed_video = video.subclipped(start_time, end_time)
trimmed_video.write_videofile(output_video_path, logger=None)
Used medias
Simple short .mp4 video.
Specifications
Python Version: 3.12.3
MoviePy Version: 2.1.2
Platform Name: Ubuntu
Platform Version: 24.04.1 LTS
The text was updated successfully, but these errors were encountered:
Expected Behavior
The video has been processed successfully, no output to the console, because the logger is set to None.
Actual Behavior
The video has been processed successfully, but FFmpeg outputs appear (info and commands):
I've been digging through the library code and found two lines that print FFmpeg info and commands in
moviepy/video/io/ffmpeg_reader.py
file (117
and139
lines), but at the same time, I didn't find these lines of code in themaster
branch on GitHub. So, when I commented out these lines of code, everything worked as I needed it to!Steps and code to Reproduce the Problem
Just trim the video and save the result via this code:
Used medias
Simple short .mp4 video.
Specifications
The text was updated successfully, but these errors were encountered: