How to set up a mini DLNA server on Ubuntu
The simple way is to use MiniDLNA, because it should be on Ubuntu repositories and it is a simple tool.
You can try all DLNA apps and still your TV is not going to run some file types. You need to check what type of files your capable DLNA TV support.
I recommend you to check the Community Wiki entry on how to configure MiniDLNA or watch an instructional video. Very simple and straight forward.
For MiniDLNA follow these steps:
Install MiniDLNA
sudo apt-get install minidlna
Edit configuration file
gksu gedit /etc/minidlna.conf
Add the following text to the file. Replace the folders name by the ones you use. You can just use one type if you want.
inotify=yes
media_dir=P,/home/user/Pictures
media_dir=V,/home/user/Videos
media_dir=A,/home/user/Music
media_dir=/home/user/Videos
friendly_name=UbuntuDLNA
Then restart the service to apply changes
sudo service minidlna restart
Make sure the file list is rebuild
sudo service minidlna force-reload
https://askubuntu.com/questions/817500/how-to-set-up-a-dlna-server-on-ubuntu-14-04