To install HEVC/H.265 codec you can use this procedure (it is has not worked for me):
sudo apt-add-repository ppa:strukturag/libde265
sudo apt-get update
If you want you can install directly the plug-in in this way:
sudo apt-get install gstreamer0.10-libde265
If you use GStreamer 1.0 , you can try:
sudo apt-get install gstreamer1.0-libde265
Or if you use VideoLan Client VLC (I have used it)
sudo apt-get install vlc-plugin-libde265