This Minidlna For Windows with Transcoding is a clone of Minidlna cygwin version (https://github.com/Portisch/minidlna-compile)
with following changes, the main goal is on the fly transcoding with resume when
transcoding is stopped (crashes, TV power off or other situations), and a transcoding
fully configurable (resize filter, subtitles burning and others ffmpeg commands).
This mod version is the only dlna server compatible with my Samsung F8000 TV for on the fly transcoded movies, with subtitles, pause and seek.
binaries:https://mega.nz/file/dA8hQQLR#TOHh-1uXhqi-kinOOqt-gbDO6ps5up8Ta5W4tfu82tM (read included README.txt for instructions). Download Minidlna GUI version 1.1.exe above. Download ffmpeg.exe from https://www.gyan.dev/ffmpeg/builds/ or https://github.com/BtbN/FFmpeg-Builds/releases (full build). For windows desktop stream download ffmpeg version 4.4, not version 5 (audio out of sync). Dlls missing: install Microsoft VC++ Redist Runtime (2015). https://www.microsoft.com/en-gb/download/details.aspx?id=53840
Fork errors when running minidlna: check https://cygwin.com/faq/faq.html#faq.using.bloda for incompatible software (or run mindlna inside a VM with a Tiny Win10 - 5GB of hard disk space).
Msg "network error" (or other msg) at end of the movie(TV disconnect):
a)insert -af apad=whole_dur=999999 in ffmpeg line command (....-pix_fmt yuv420p -c:a ac3 -b:a 448k -af apad=whole_dur=999999 -f mpegts pipe:1)
b)start movie from Seek folder ("play to 00H00MIN",etc). Burn subtitles.
OR: A)add -t 86400 after DURATION: ....-i $SOURCE -t $DURATION -t 86400 -c:v libx264 -preset superfast....
Subtitles with same name of the video/movie. Subtitles name without special characters (no [], (), etc). To check if subtitles is UTF-8 or UTF-16 and conversion (compatible with ffmpeg burned subtitles) run https://sourceforge.net/projects/minidlna-subtitles-converter/ (read readme.txt)
Changes: -added transcoding with seek to simulate fast forward and rewind (ff/rw) when transcoding. A directory named Seek with icons "Play To" at a configurable interval in minutes is created (Seek directory includes subfolders with movie name).
-enabled pause button in some devices like Samsung F8000 (fixed value for DLNA_ORG flags).
-subtitles burning (mandatory when using Seek functions with subtitles) with font color and font size settings.
-only ffmpeg.exe is used for transcoding, encoding with hardware acceleration for AMD VCE, Intel QSV an Nvidia Nvenc is supported.
-resize filter, solves incompatibility with somes devices not accepting vertical resolution not multiple of 20 (modulus 20) like Samsung F8000 (movies with resolution of 1900x784 display "invalid file").
-Transcode with embedded subtitles, audio track selection and Windows desktop streaming->check new minidlna.conf and dxgi directshow filters at https://github.com/xpto999us/Virtual-Cam3-DXGI-directshow-capture-filter
a windows gui to configure and start/stop minidlna (minidlna GUI.exe).
-this version include patches: transcode patch: https://sourceforge.net/p/minidlna/patches/32/ https://bitbucket.org/stativ/readymedia-transcode/src/transcode/
samsung mta patch: https://sourceforge.net/p/minidlna/patches/14/
subtitles patch. https://sourceforge.net/p/minidlna/patches/155/
To compile:
-Install cygwin 32 bits. Follow instructions at https://github.com/Portisch/minidlna-compile.