This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: This is the simplest batch script known to man. | |
:: Takes the unplayable ts_mpeg file from a recorded Live TV program in Windows-Jellyfin and outputs it to h264 mkv, then removes the Transport Stream (NOT Typescript XD) file. | |
:: This goes in my base Jellyfin folder, sitting alongside the "system" directory per the wiki recommendation for hosting jellyfin on windows. | |
:: To enable in Jellyfin, navigate to Admin Dashboard->DVR->Select this script file under Post-processing application, and leave the default CLI argument of "{path}" (WITH the quotes). | |
:: To increase output quality, lower the -crf value and/or change the -preset value to slow or veryslow. Raise the value and change preset to medium or fast for smaller files. | |
:: All thanks goes to thornbill and his linux script | |
set WORKDIR=%~d1%~p1 |