Skip to content

puzzlemoondev/immersion_condenser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Immersion Condenser

Simple script that condense video to dialogue audio for passive immersion. I made this because I couldn't find a condenser for Unix-like systems.

Requirements

  • python3 (>=3.7) somewhere in your PATH
  • ffmpeg somewhere in your PATH

Install

curl -o ~/.local/bin/condense https://raw.githubusercontent.com/puzzlemoondev/immersion_condenser/main/condense.py && chmod +x ~/.local/bin/condense

Or clone the repo and run make install

Usage

usage: condense [-h] -i VIDEO [-s SUBTITLES] [-f FILTERS]
                [--skip-filter-music]
                output

Condense video to dialogue audio for passive immersion

positional arguments:
  output                Output path for condensed audio with format that
                        ffmpeg supports

options:
  -h, --help            show this help message and exit
  -i VIDEO, --input VIDEO
                        Path to video with format that ffmpeg supports
  -s SUBTITLES, --subtitles SUBTITLES
                        Path to subtitles file. Default to .srt/.ass/.ssa file
                        with the same name as input video
  -f FILTERS, --filters FILTERS
                        Space separated words used to filter out subtitles
  --skip-filter-music   Do not try filter out music subtitles

examples:
  condense -i video.mkv out.mp3 # expects video.srt (or .ass/.ssa) to exist
  condense -i video.mp4 -s video_sub.srt out.aac

Credits

  • srt parsing from srt

About

Condense video to dialogue audio for passive immersion

Topics

Resources

License

Stars

Watchers

Forks