proper samba server requires using port 445 and linux kernel requires root for opening any port <1024will only rooting make it work as a file server?
You can run any of the media servers over Linux on Android. Termux is one option. However, any encoding will be in software only.I have rooted my phone
How to start a samba server on phone,
Many client apps are there