Data Cleaning
Silent Filtering
Path: toolset/clean/silent/check_new_silent.py
Description: Filters out audio clips where dBFS remains below -35 for over 90% of the duration. (Parameters are adjustable)
Usage Instructions:
- Modify the input_directory and output_txt_file parameters in check_new_silent.py.
- Run:
python check_new_silent.py
.
Static Frame Filtering
Path: toolset/clean/static/check_static_ffmpeg.py
Description: Samples 2 frames per second. Consecutive frames are converted to grayscale and compared using MSE - frames with MSE <5 are considered static. Videos with over 85% static frames are filtered. (Parameters are adjustable)
Usage Instructions:
- Set the folder_path parameter in check_static_ffmpeg.py.
- Execute:
python check_static_ffmpeg.py
.
Audio-Visual Matching Filtering
Path: toolset/clean/ImageBind/test.py
Description: Uses ImageBind to evaluate the match between video content and audio.
Usage Instructions:
- Clone the ImageBind repository into
toolset/clean/ImageBind/
and configure python environment. - (Optional) Configure CUDA settings in
test.py
. - Run:
python test.py
.
Voice Detection Filtering
Path: toolset/clean/SenseVoice/check_voice.py, toolset/clean/SenseVoice/char_count.py
Description: Uses SenseVoice for voice detection and analysis.
Usage Instructions:
- Clone the SenseVoice repository into
toolset/clean/SenseVoice/
and configure python environment. - Configure
audio_folder
in check_voice.py. - Run check_voice.py to output recognized speech text
- Execute char_count.py for speech character analysis