ercanserteli / condenser

Condenser allows you to extract speech audio from video files, based on subtitle timings. By omitting the audio outside of speech, it increases the language per second that you are getting exposed to.
https://ercanserteli.com/condenser
GNU General Public License v3.0
33 stars 7 forks source link

Added a config option to control output format. #7

Closed Gnathonic closed 1 year ago

Gnathonic commented 2 years ago

These changes make it encode the parts to a lossless low compression setting flac as an intermediary (to prevent generational loss and for extra speed) Then it encodes the final file to whatever format is specified in the config. This is file extension based, and supports every output format ffmpeg can output to. Formats of note are: flac, which is especially useful if the user plans to run it through additional steps afterwards (ex. volume normalization, or down converting to mono). Since flac is a lossless format, this prevents generational loss from repeated lossy encodings. There's also a subset of users that just prefer flac for its lossless quality. aac, this is a lossy format, and by default uses the same bitrate as mp3, but suffers less quality loss as it is a more efficient codec.

The default has been left as mp3 for its broad compatibility.

ercanserteli commented 1 year ago

Thanks for the PR!