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?
3 Answers
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

- 9,866

- 2,315
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.
-
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 02 '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 05 '15 at 09:42
-
I see. Then I guess the high load makes sense on my 7 year old dual core laptop :( – Peter Raeves Aug 05 '15 at 10:42
-
For bionic or Ubuntu 17+ use following,
– chaladi Jul 24 '19 at 06:27sudo add-apt-repository ppa:mc3man/bionic-prop sudo apt-get update sudo apt-get install x265
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.

- 994
-
-
@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 '16 at 07:26
-
-
@codeScriber I haven't played any H.265 video on the last months, but after seeing your comment I tested the player on Google Chrome (both on 64-bit XUbuntu 16.04 and on 64-bit Mint 17.2) and I can confirm that this Chrome app has stopped working. I performed some tests but was unable to find the problem. I've sent a message to the developer, reporting the problem. In the meantime, it's recommended to use another method (e.g. installing VLC Media Player and the gstreamer integration library). – Yuri Sucupira Sep 01 '16 at 02:10
-
Thanks Yuri. I did and it works. Now i need to figure oyt how to make rpi2 plex to decode it while streaming.... – codeScriber Sep 18 '16 at 03:27
-
Is this plug-in supposed to work for the video tag on the page? Because it shows a tiny inline video player, but none of the controls respond. – Michael Jul 07 '21 at 04:00
-
@Michael I'm currently running 64-bit XUbuntu 20.04 and HEVC player is playing HEVC (i.e. video) tracks fine in Google Chrome 91.0.4472.114. If you run
grep -iR hevc ~/.local/share/applications/
in the shell terminal, you will find the location of such Chrome app, e.g. if such command returnschrome-dambgipgbnhmnkdolkljibpcbocimnpd-Default.desktop
, then the ID of your HEVC Player Chrome app isdambgipgbnhmnkdolkljibpcbocimnpd
and you therefore should be able to start it by just runninggoogle-chrome --app-id=dambgipgbnhmnkdolkljibpcbocimnpd
from the shell terminal. – Yuri Sucupira Jul 07 '21 at 17:40 -
@Michael If you manage to successfully run HEVC Player, you can download a sample HEVC file from https://s3.amazonaws.com/x265.org/video/Tears_400_x265.mp4 (MP4 is just the file/container extension: the actual video format/codification is HEVC a.k.a. x265 a.k.a. H.265), then on HEVC Player's window click on
Open
, then changeMovie files
toAll files
, select the downloadedTears_400_x265.mp4
file and then click onOpen
. Notice that HEVC is a video codec - not an audio codec. – Yuri Sucupira Jul 07 '21 at 18:02 -
@YuriSucupira Thanks. I can open the HEVC player as a separate window from the extensions page, but I can't seem to play content served from http. As an example, I have a server with something like http://server.local/app/videos that has a
VIDEO
tag referencing http://server.local/videos/20210707.mp4 which is an h.265 encoded video (plays fine under e.g. smplayer) but in the browser i just see a tiny video window on the page that doesn't respond. If I try to open the URL directly in the browser I get the same results. The HEVC player doesn't seem to be able to play from a URL, only local – Michael Jul 07 '21 at 21:17 -
Or to put it another way, it looks like HEVC player is a standalone player that is for some reason a Chrome extension, despite the fact that it doesn't interact with web pages or Chrome at all. I've already got an external player for playing local files, I would think an extension in the browser would play h.265 embedded in web pages that the browser loads. Am I missing something? Can this extension do that? – Michael Jul 07 '21 at 21:21
-
@Michael it looks like HEVC player is a standalone player - You hit the nail on the head. It's a standalone player, not an actual plugin (which in such case would play HEVC videos directly in the browser window). For more info, check this question and also this. – Yuri Sucupira Jul 08 '21 at 01:32
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:50sudo apt-get install gstreamer0.10-libde265 gstreamer1.0-libde265
(Instructions from the "GStreamer plugin for 4K H.265/HEVC video streaming" link above) – Elder Geek Feb 27 '16 at 01:26