# Hevc and av1 playback

**URL:** https://discourse.nixos.org/t/hevc-and-av1-playback/40615
**Category:** Help
**Created:** [March 2, 2024, 3:19am UTC](https://discourse.nixos.org/t/hevc-and-av1-playback/40615 "2024-03-02T03:19:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![rastarr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/rastarr/32/11102_2.png) [@rastarr](https://discourse.nixos.org/u/rastarr)
#### Post date: [March 2, 2024, 3:19am UTC](https://discourse.nixos.org/t/hevc-and-av1-playback/40615/1 "2024-03-02T03:19:59Z")

</div>

Still new to Linux and nix, having come from macOS a month or so ago.  
I’ve got a bunch of H265 videos that need to play in a browser and I typically use Chrome.  
Now I thought my iGPU or RX570 was incorrectly configured until I just tested an AV1 video which plays buttery smooth so it looks like HEVC video playback is borled in some way.

Is there some process to get these H265 videos to playback properly? I saw there’s a x265 package in the repo but unsure whether that’s the answer.

Any help would be fantastic

---

<div class="post-metadata">

### Author: ![APCodes](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@APCodes](https://discourse.nixos.org/u/APCodes)
#### Post date: [March 2, 2024, 10:07am UTC](https://discourse.nixos.org/t/hevc-and-av1-playback/40615/2 "2024-03-02T10:07:16Z")

</div>

Hey! Interesting topic, since I have newly emerging problems with hardware acceleration in Chrome myself right now. Is there any way I could reproduce this on my end? Like a video file that is available to both of us I could try and watch? And then maybe get some stats on it?

What desktop environment are you on? Wayland or X11?

---

<div class="post-metadata">

### Author: ![rastarr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/rastarr/32/11102_2.png) [@rastarr](https://discourse.nixos.org/u/rastarr)
#### Post date: [March 3, 2024, 12:07am UTC](https://discourse.nixos.org/t/hevc-and-av1-playback/40615/3 "2024-03-03T00:07:08Z")

</div>

you could use ffmpeg and transcode some video to hevc and av1 and play in a browser as a test, I would assume.  
I’m using Swayvm with Wayland.  
I’d have assumed this would be a more common problem with Linux-based OSs

---

<div class="post-metadata">

### Author: ![monotux](https://discourse.nixos.org/user_avatar/discourse.nixos.org/monotux/32/973_2.png) [@monotux](https://discourse.nixos.org/u/monotux)
#### Post date: [March 3, 2024, 5:11am UTC](https://discourse.nixos.org/t/hevc-and-av1-playback/40615/4 "2024-03-03T05:11:47Z")

</div>

How is playback using something other than chrome? Vlc, mpv or what have you?

---

<div class="post-metadata">

### Author: ![rastarr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/rastarr/32/11102_2.png) [@rastarr](https://discourse.nixos.org/u/rastarr)
#### Post date: [March 3, 2024, 9:23am UTC](https://discourse.nixos.org/t/hevc-and-av1-playback/40615/5 "2024-03-03T09:23:19Z")

</div>

My original question is quoted as using Chrome

---

<div class="post-metadata">

### Author: ![monotux](https://discourse.nixos.org/user_avatar/discourse.nixos.org/monotux/32/973_2.png) [@monotux](https://discourse.nixos.org/u/monotux)
#### Post date: [March 3, 2024, 12:38pm UTC](https://discourse.nixos.org/t/hevc-and-av1-playback/40615/6 "2024-03-03T12:38:45Z")

</div>

Yes, hence me asking if you’ve tried something other than chrome to play the videos in question.

If you have the same issues with the same files in other players, then it might be a system level issue or issues with the files.

If you don’t have issues with the same files in other players, then it might be something chrome related.

---

<div class="post-metadata">

### Author: ![rastarr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/rastarr/32/11102_2.png) [@rastarr](https://discourse.nixos.org/u/rastarr)
#### Post date: [March 3, 2024, 11:45pm UTC](https://discourse.nixos.org/t/hevc-and-av1-playback/40615/7 "2024-03-03T23:45:55Z")

</div>

ahh ok, now I understand your reply.

The files do play smooth when using MPV, yes.  
Chrome is the issue with HEVC/H265 files

---

<div class="post-metadata">

### Author: ![rastarr](https://discourse.nixos.org/user_avatar/discourse.nixos.org/rastarr/32/11102_2.png) [@rastarr](https://discourse.nixos.org/u/rastarr)
#### Post date: [March 11, 2024, 10:50am UTC](https://discourse.nixos.org/t/hevc-and-av1-playback/40615/8 "2024-03-11T10:50:24Z")

</div>

any more suggestions on this. this must be more of a problem than just me. I’ve tried the nix documentation as well as tons of searching so can’t understand why Chrome is unable to play 265/hevc in the browser, without so much lag
