jhj0517
commited on
Commit
·
c8c1724
1
Parent(s):
f95c29e
Disable info level prints in ffmpeg
Browse files
modules/utils/video_helper.py
CHANGED
|
@@ -37,6 +37,7 @@ def extract_frames(
|
|
| 37 |
|
| 38 |
command = [
|
| 39 |
'ffmpeg',
|
|
|
|
| 40 |
'-y', # Enable overwriting
|
| 41 |
'-i', vid_input,
|
| 42 |
'-qscale:v', '2',
|
|
@@ -70,6 +71,7 @@ def extract_sound(
|
|
| 70 |
|
| 71 |
command = [
|
| 72 |
'ffmpeg',
|
|
|
|
| 73 |
'-y', # Enable overwriting
|
| 74 |
'-i', vid_input,
|
| 75 |
'-vn',
|
|
@@ -90,6 +92,7 @@ def get_video_info(vid_input: str) -> VideoInfo:
|
|
| 90 |
"""
|
| 91 |
command = [
|
| 92 |
'ffmpeg',
|
|
|
|
| 93 |
'-i', vid_input,
|
| 94 |
'-map', '0:v:0',
|
| 95 |
'-c', 'copy',
|
|
@@ -194,6 +197,7 @@ def create_video_from_frames(
|
|
| 194 |
|
| 195 |
command = [
|
| 196 |
'ffmpeg',
|
|
|
|
| 197 |
'-y',
|
| 198 |
'-framerate', str(frame_rate),
|
| 199 |
'-i', os.path.join(frames_dir, f"%05d{frame_img_mime_type}"),
|
|
|
|
| 37 |
|
| 38 |
command = [
|
| 39 |
'ffmpeg',
|
| 40 |
+
'-loglevel', 'error',
|
| 41 |
'-y', # Enable overwriting
|
| 42 |
'-i', vid_input,
|
| 43 |
'-qscale:v', '2',
|
|
|
|
| 71 |
|
| 72 |
command = [
|
| 73 |
'ffmpeg',
|
| 74 |
+
'-loglevel', 'error',
|
| 75 |
'-y', # Enable overwriting
|
| 76 |
'-i', vid_input,
|
| 77 |
'-vn',
|
|
|
|
| 92 |
"""
|
| 93 |
command = [
|
| 94 |
'ffmpeg',
|
| 95 |
+
'-loglevel', 'error',
|
| 96 |
'-i', vid_input,
|
| 97 |
'-map', '0:v:0',
|
| 98 |
'-c', 'copy',
|
|
|
|
| 197 |
|
| 198 |
command = [
|
| 199 |
'ffmpeg',
|
| 200 |
+
'-loglevel', 'error',
|
| 201 |
'-y',
|
| 202 |
'-framerate', str(frame_rate),
|
| 203 |
'-i', os.path.join(frames_dir, f"%05d{frame_img_mime_type}"),
|