2024-10-20, 06:02 AM
Thank you, thank you, thank you, that helped.
I had a script created for Windows (I'm sitting in front of it right now and I still have a copy of the files on the computer; besides, it's the most powerful one here with me, otherwise everything runs on Linux) and had the files processed as a batch, uploaded them back to Unraid, had Jellyfin update the metadata, tested it on the TV, and it works. TOP :-)
Here is the script as a batch file in case anyone else has problems:
ffmpeg was installed as a system variable, then the script works without problems.
I know that you can basically loop the sound with Handbrake, which is what I did at the beginning, but it seemed to me that the sound was somehow processed, so I prefer to get it from the original mkv file and mix it into the newly created video file.
After that, I run a script that correctly names the tracks (audio and subtitles), e.g. German DTS 5.1 or German forced. The correct flags are also set at the same time. You can also do this with MKVToolNix, but a script makes it significantly faster.
Thanks for your help :-)
I had a script created for Windows (I'm sitting in front of it right now and I still have a copy of the files on the computer; besides, it's the most powerful one here with me, otherwise everything runs on Linux) and had the files processed as a batch, uploaded them back to Unraid, had Jellyfin update the metadata, tested it on the TV, and it works. TOP :-)
Here is the script as a batch file in case anyone else has problems:
Code:
@echo off
setlocal enabledelayedexpansion
rem Pfad zu deinem Ordner mit den Videodateien
set "input_folder=C:\path\to\your\video\folder"
set "output_folder=C:\path\to\your\output\folder"
rem Stelle sicher, dass das Output-Verzeichnis existiert
if not exist "!output_folder!" mkdir "!output_folder!"
rem Schleife durch alle MKV-Dateien im Ordner
for %%f in ("%input_folder%\*.mkv") do (
rem Extrahiere nur den Dateinamen ohne Pfad und ohne Dateierweiterung
set "filename=%%~nf"
rem Führe den ffmpeg-Befehl aus
ffmpeg -fflags +genpts+igndts -i "%%f" -map 0 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts auto "!output_folder!\!filename!_new.mkv"
)
echo Alle Dateien verarbeitet!
pause
ffmpeg was installed as a system variable, then the script works without problems.
I know that you can basically loop the sound with Handbrake, which is what I did at the beginning, but it seemed to me that the sound was somehow processed, so I prefer to get it from the original mkv file and mix it into the newly created video file.
After that, I run a script that correctly names the tracks (audio and subtitles), e.g. German DTS 5.1 or German forced. The correct flags are also set at the same time. You can also do this with MKVToolNix, but a script makes it significantly faster.
Thanks for your help :-)
Server 1 with Jellyfin on Unraid:
AMD Ryzen 5 1600 Six-Core @ 3800 MHz
AMD Grafikkarte
64GB RAM
Server 2 with Jellyfin on Unraid:
Intel® Core™ i7-4790K CPU @ 4.00GHz
32GB RAM
AMD Ryzen 5 1600 Six-Core @ 3800 MHz
AMD Grafikkarte
64GB RAM
Server 2 with Jellyfin on Unraid:
Intel® Core™ i7-4790K CPU @ 4.00GHz
32GB RAM