Skip to content

Instantly share code, notes, and snippets.

@xycui
xycui / VolumeNorm.py
Last active December 23, 2019 12:21
normalize the audio level to 0 with ffmpeg
import platform
import os
import sys
import requests
import zipfile
import lzma
import tarfile
import glob
import re
import multiprocessing
@xycui
xycui / VolumeDetect.md
Last active January 9, 2024 05:20
Use ffmpeg to detect audio volume level. bat file included for easier interaction.

Detect the audio file volume with ffmpeg.

Require tools

  • ffmpeg: [Official site][1], [Download][2]

How to use

  1. Download ffmpeg from [link][2]
  2. Extract the ffmpeg.exe from zip package and copy to the directory contain the audio file
  3. Copy the volumeDetect.bat into the folder. (Just make sure the bat file and ffmpeg.exe are in the same directory)
  4. Doulbe click volumeDetect.bat and drag the file into the window.
  5. Press enter and get the result.
@xycui
xycui / portScan.md
Last active August 10, 2018 18:27
python port scan for given url/ip

portScan.py

Parameters:

  • TIME_OUT: The time out period in seconds for test each port
  • PORT_RANGE: The port range need to be tested.
  • THREAD_CNT: Thread count for boosting the test process. The ports will be seperated to groups with this count.
  • HOST: Target IP/domain

Output:

Several files contain the port test results.