Jellyfin Forum
Recording Post Processing not working - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Recording Post Processing not working (/t-recording-post-processing-not-working)



Recording Post Processing not working - hmp500 - 2025-09-04

Hi 

I am trying to execute this batch file in Jellyfin server (Windows 11 Pro) as a recording post processing but i does not get executed as i can't seem to have the converted file...

When I check the log files what I can read is that the batch file execution return error code 2:

[2025-09-03 17:00:06.102 -06:00] [INF] [103] Jellyfin.LiveTv.Recordings.RecordingsManager: Running recording post processor "D:\ipTV Recordings\DVR-Convert.bat" "D:\ipTV Recordings\The Repair Shop\The Repair Shop 2025_09_03_16_00_00.ts"
[2025-09-03 17:00:06.103 -06:00] [INF] [77] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Folder", Name: "Colombiana", Path: "D:\ipTV Recordings\Colombiana", Id: f4a90004-6267-9925-b526-02981232210e
[2025-09-03 17:00:06.116 -06:00] [INF] [77] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"D:\ipTV Recordings\The Repair Shop\The Repair Shop 2025_09_03_16_00_00.ts\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2025-09-03 17:00:07.438 -06:00] [INF] [85] Jellyfin.LiveTv.Recordings.RecordingsManager: Recording post-processing script completed with exit code -2

Same happened to other 3 files I recorded...

Here is the batch file I am executing:
set WORKDIR=%~d1%~p1
set STARTDIR=%CD%

%~d1
cd %WORKDIR%

"C:\Users\hmp50\AppData\Local\Programs\FFmpeg\bin\ffmpeg.exe" -i "%~nx1" -c:v libx264 -vf yadif=parity=auto -crf 15 -preset medium -max_muxing_queue_size 1024 -c:a aac -map 0:0 -map 0:1 -async 1  "%~n1.mkv"

:: del "%~nx1"

the recordings folder is in my D Drive..., I have read that there arre issues with permissions, I did check and assigned everyone full control access to all directories...

Any help or ideas what may be happening ?

I mus say that if I execute the batch outside Jellyfin it does what it is meat to be: changing the *.ts file to a mp4 file (I am am doing this as I can get the subtitles/captions from those recordings to show the I open the files for the Recordings section in Jellyfin...

Thanks in advance.