The Subfix-Pack is a requirement for every batch file.
Put the batch files into the main folder of the “Subfix-Pack”.
Batch_Processing.bat
Generate_Keyframes.bat
Lazy_Encode.bat
Remove_Intro.bat
Remove_SponsorScreen.bat
Replace_Audio.bat
Replace_Font.bat
No further requirements.
Fix_Subs.bat
No further requirements.
See “Prass Guide” for more information.
Convert_Trim_Audio-toAAC.bat
Convert_Trim_Audio-toFLAC.bat
Trim_Audio.bat
A “trim.txt” with trims inside the Subfix-Pack folder file in case you use “trim=y”.
See “Audio Guide” for more information.
Shift_SubtoBD.bat
No further requirements.
See “Sushi Guide” for more information.
Create_Typeset_Track.bat
WSL version 1 with Debian or Pengwin.
Run the following commands under one of the above listed ditros:
sudo apt update sudo apt upgrade -y
Shift_AudioToBD.bat
WSL version 1 with Debian or Pengwin.
Run the following commands under one of the above listed ditros:
sudo apt update sudo apt upgrade -y sudo apt-get install -y ffmpeg sox python3
In case you get the error message “awk: line 1: syntax error at or near *” (awk error message might depend on the distro you use) you’ve to compile your own version of “sync-audio-tracks”:
sudo apt-get install -y fftw3 fftw3-dev fftw-dev libsndfile-dev sudo apt-get install -y git make g++
rm sync-audio-tracks -r -f git clone https://github.com/alopatindev/sync-audio-tracks.git cd sync-audio-tracks make
You can find the newer version under Windows:
Pengwin: \\WSL$\WLinux\home\%username%\sync-audio-tracks
Debian: \\WSL$\Debian\home\%username%\sync-audio-tracks
Copy and replace the old folder: “\Subfix-Pack\tools\sync-audio-tracks” with it.
You might have to replace %username% with the name of your Linux user.
In some batch files you can change certain options and values.
Here are some explanations of them:
trim
If you want to trim the audio before converting
Allowed values: "y" or "n"
Default: n
replace
Replace the audio from your source if your input is .mkv/.mp4
Allowed values: "y" or "n"
Default: n
track
Use a different audio track than the first one
Allowed values: Every number
Default: 0 (autodetect)
fast Skips everything except video/subtitle input prompt. Can be combined with "extract". Allowed values: "y" or "n" Default: n
extract Drag and drop mode. Skips video/subtitle imput prompt. Can be combined with "extract". Recommended if the subtitles are inside the .mkv file. Allowed values: "y" or "n" Default: n
source Source subtitle format Allowed values: "ass" and "srt" Default: ass
timefixing / timefix Uses prass for fixing the subtitle timing Allowed values: "y" or "n" Default: y
timefixingmode Decides the modus of the subtitle timing: Mode 0 - Light fixing
Mode 1 - Medium fixing Mode 2 - Strong fixing Mode 3 - Very strong fixing Mode 4 - Use for Net***x Mode 5 - Use for Funi****n Mode 6 - Use for Hi***e Allowed values: "1", "2", "3", "4", "5" and "6" Default: 3
shifting Shifts the subtitles by frame Allowed values: "-24", "-2", "-1"," 0", "1", "2" and "24" Default: 0
secpas Forces audio sync and fps for better results. Removes muxed subtitles before fixing subtitles. Allowed values: "y" or "n" Default: y
mux Muxes the final result into a mkv file Allowed values: "y" or "n" Default: y
german_typographie / typo
Fixing the German typography (for example: „“ instead of "")
Allowed values: "y" or "n"
Default: n
italic_honorifics Removing italic inside honorifics (for example: Hime-chan instead of Hime-chan) Allowed values: "y" or "n" Default: n
template "template.ass" file that stores all styles, located inside the "audio" folder. You can decide your own template file. Presets: "template_clean.ass", "template_basic.ass" and "template_advanced.ass" Default: template_advanced.ass
font The font for your normal styling, located inside the "audio" folder. Presets: font1.ttf Default: font1.ttf
font2 The font for your italic styling, located inside the "audio" folder. Presets: font1i.ttf Default: font1i.ttf
tvfonts
Keep the fonts from the tv source.
Allowed values: "y" or "n"
Default: y
time / start Set the start time (HH:MM:SS.ms). Allowed values: HH:MM:SS.ms Default: /
end Set the end time (HH:MM:SS.ms). Allowed values: HH:MM:SS.ms Default: /
encode
Encodes the result. Trades speed for accuracy.
Allowed values: "y" or "n"
Default: n