Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have seen that the new DivX Player 10 shows off H.265/HEVC playback, the successor of H.264. I wonder how I may get this support in Linux. Is there a need to install a codec specific for this format? How?

Thank you.

share|improve this question
up vote 163 down vote accepted

There is also a PPA for libde265 GStreamer integration. With that installed one can playback H.265 with all GStreamer applications (Browsers, Totem, etc.).

sudo apt-add-repository ppa:strukturag/libde265
sudo apt-get update

Now try playing back a .mkv containing HEVC/H.265 content using any GStreamer-aware player (e.g. "totem"). This should detect the missing codec and prompt to install the libde265 GS plugin (make sure to select the 64bit or 32bit version depending on your architecture).

You can also install the corresponding GStreamer plugin directly:

sudo apt-get install gstreamer0.10-libde265

Or for GStreamer 1.0 applications:

sudo apt-get install gstreamer1.0-libde265

There is also a VLC plugin available:

sudo apt-get install vlc-plugin-libde265

Details here: GStreamer plugin for 4K H.265/HEVC video streaming

share|improve this answer
5  
When I run the vlc-plugin installation I get the following error: vlc-plugin-libde265 : Depends: libvlccore7 (>= 2.1.0) but it is not going to be installed (Ubuntu 14.04) – Programster Aug 31 '14 at 19:50
    
Well Ubuntu 14.04 has libvlccore7. You probably have a newer VLC from a ppa which provides libvlccore8 - uninstall the newer VLC and use the one provided by Ubuntu and you should be fine. – longsleep Sep 6 '14 at 12:58
    
Perhaps this answer needs updating: askubuntu.com/a/544723/158442 – muru Nov 14 '14 at 8:33
1  
When I run a HEVC encoded video in VLC on Ubuntu 14.04, I see a green layer on top of the video. Any one know how to solve it? @longsleep – soham.m17 Apr 10 '15 at 23:46
1  
You can follow ubuntuhandbook.org/index.php/2015/02/… to get VLC with x265 running on 14.04 (it's already in repos 14.10+). The repo there also gives you an x265 package. – pd12 Jun 10 '15 at 14:50

An alternative to @longsleep's great answer is, if using VLC: as noted here you can upgrade to VLC 2.2.x or higher to get HEVC/H.265 support. If on 14.04, you need to add this repo to get 2.2.x+ versions of VLC:

sudo add-apt-repository ppa:mc3man/trusty-media

sudo apt-get update, and

sudo apt-get dist-upgrade or sudo apt-get install vlc vlc-plugin-libde265

You can also install others if you want: vlc-plugin-*

The repo doesn't have the gstreamer1.0-libde265 package but does have a lot of other "upgraded, advanced or not normally available multimedia packages for Trusty" 14.04 for those who like LTS versions.

share|improve this answer
    
I am using vlc 2.2.0 on ub15.04 and it seems like I can play my x265 encoded 5xxMB video fine, as long as I shut down all other programs, because I am getting really high cpu usage (70-90%) from vlc, while I only get about 5-10% with x264 videos. Is this high cpu usage normal or is it supposed to be much lower, similar to x264? – Peter Raeves Aug 2 '15 at 12:47
    
With a small sample size (2 vids each for 264, 265) I get 17-26% (about 80-100% of 1 core) CPU usage for x265 and 6-12% for x264. It makes sense because 265 encodes at higher compression ratios with similar quality, so requires more processing work. Also, VLC probably hasn't optimised x265 decoding it yet so it's near the 100% end of 1 core, those are my guesses. – pd12 Aug 5 '15 at 9:42
    
I see. Then I guess the high load makes sense on my 7 year old dual core laptop :( – Peter Raeves Aug 5 '15 at 10:42

Yet another alternative - if you have Google Chrome installed - is to add/install H.265 / HEVC player (in)to your Chrome browser.

After that, you can head straight to "Google Chrome Applications" (at your Ubuntu distro menu) and run the player. Or you can just start Google Chrome, type in the URL chrome://apps and hit Enter. This will cause Google Chrome to show you its installed apps, so you can run H.265 / HEVC player straight from there.

By using this alternative method, there's no need to install any library, codec, player plugin or whatever, because everything you need for H.265/HEVC playback support is already embedded in the H.265 / HEVC player.

I've already used H.265 / HEVC player to watch a couple of two-hour-long H.265/HEVC encoded movies, and I didn't experience any playback issue.

share|improve this answer
    
It doesn't support sub titles. – Venkatesh May 12 at 15:58
    
@Venkatesh If the H.264 video has switchable (embedded) subtitles, the player will detect them and give you the option to select one of them. I have some MKV files with embedded subtitles and on H.265 / HEVC Player I can select any one of these subtitles or disable subtitles. But if you mean loading an external subtitles file (such as a .SRT file), then no: the current version of the player doesn't load external subtitles files. – Yuri Sucupira May 14 at 7:26

protected by Community Mar 4 '15 at 1:50

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.