Skip to content

Commit

Permalink
5 секунд тишины вместо трёх
Browse files Browse the repository at this point in the history
  • Loading branch information
u07 authored and u07 committed May 22, 2023
1 parent c777c3d commit 5094825
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Как пользоваться

### Установите Python
Python - полезная штука, в хозяйстве всегда пригодится. Для Windows 7 ставьте Python 3.8 ([32 bit](https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe) или [64 bit](https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe) соответственно), для более новых Windows - [последнюю](https://www.python.org/downloads/).
Python - полезная штука, в хозяйстве всегда пригодится. Для Windows 7 ставьте Python 3.8 ([32 bit](https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe) или [64 bit](https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe) соответственно), для более новых Windows - [последний](https://www.python.org/downloads/).

### Скачайте скрипт

Expand Down
4 changes: 2 additions & 2 deletions check_eksmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def parse_ffmpeg_output(text, shortname):

return result
except:
print("Блин, всё же работало, чё опять за фигня? Программисты эти не могут сразу нормально сделать?")
print("Блин, всё же работало, чё за фигня? Программисты эти не могут нормально делать, чтоб без ошибок??")
for n, v in locals().items(): print(f"{n}: {v}")
raise

Expand All @@ -198,7 +198,7 @@ async def run_ffmpeg(file, sem):
async with sem:
shortname = os.path.basename(file) # 001.mp3
print(f"Анализирую {shortname} ...")
cmd = f'ffmpeg_slim -hide_banner -nostats -loglevel info -i "{file}" -af astats,silencedetect=n=-45dB:d=3 -vn -f null - 2>&1'
cmd = f'ffmpeg_slim -hide_banner -nostats -loglevel info -i "{file}" -af astats,silencedetect=n=-45dB:d=5 -vn -f null - 2>&1'
proc = await asyncio.create_subprocess_shell(cmd, stdout=asyncio.subprocess.PIPE)
stdout, stderr = decode(await proc.communicate())
#proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Expand Down

0 comments on commit 5094825

Please sign in to comment.