Skip to content

Commit

Permalink
change loglevel to better catch not available codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian-Robert Stöter committed Dec 20, 2017
1 parent 9051bcb commit a595ddd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stempeg/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def read_info(
cmd = [
'ffprobe',
filename,
'-v', 'quiet',
'-v', 'error',
'-print_format', 'json',
'-show_format', '-show_streams',
]
Expand Down Expand Up @@ -115,7 +115,7 @@ def read_stems(
'-acodec', 'pcm_s16le',
'-ar', str(rate),
'-ac', str(channels),
'-loglevel', 'panic',
'-loglevel', 'error',
tmps[tmp_id].name
]
sp.call(cmd)
Expand Down
4 changes: 2 additions & 2 deletions stempeg/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def check_available_aac_encoders():

cmd = [
'ffmpeg',
'-v', 'quiet',
'-v', 'error',
'-codecs'
]

Expand Down Expand Up @@ -102,7 +102,7 @@ def write_stems(
'-acodec', codec,
'-ar', "%d" % rate,
'-strict', '-2',
'-loglevel', 'panic'
'-loglevel', 'error'
] +
(['-ab', str(bitrate)] if (bitrate is not None) else []) +
(ffmpeg_params if ffmpeg_params else []) +
Expand Down

0 comments on commit a595ddd

Please sign in to comment.