Mpv config for h264 decoding

hey guys what should i add to my mpv.conf file so that I My GPU can decode Youtube videos with h264 codec?

You can try: hwdec=auto

Other options:

You can read more about it here

1 Like

These are my current config::
vo=gpu
hwdec=true
mpv --ytdl-format="bestvideo[height<=1080][vcodec!=h264]+bestaudio/best

and thank you @mcury for your reply!

You are welcome :slight_smile:

I don’t see that “true” option in the documentation, can you try with hwdec=auto and show us the output ?

okay