Skip to content

Instantly share code, notes, and snippets.

View Alucard316's full-sized avatar

Alucard316 Alucard316

View GitHub Profile
@Alucard316
Alucard316 / dvr.bat
Last active November 4, 2022 21:48
Windows DVR PostProcess Batch Script for Jellyfin
@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