Media streaming to 2020 Samsung qhd tv


Don’t know if I chose the right topic…

I need help/advice.
I have 2 older wd network harddrives (Mybook live with TvMobili installed on it and a Mycloud with generic software) connected to my router. I use it to stream my files to my TV.
Unfortunately I bought a new Samsung qhd TV (2020 model t70 series). I does not support divx and other codecs.
Is there any program that I could install directly on my hdd, which could transcode the files on the fly if necessary? I don’t have the time/ hardware to convert all of my old files myself…