H.264 decoder in Ubuntu 20.10

I tried many things to play videos on Ubuntu’s default player by using.

sudo apt install libdvdnav4 libdvdread7 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg
sudo apt install ubuntu-restricted-extras

listed in https://askubuntu.com/questions/214421/how-to-install-the-mpeg-4-aac-decoder-and-the-h-264-decoder
still i can’t able to play video encoded with h.264

The player I recommend is ‘mpv’ because it’s faster, smoother and more efficient:

sudo apt install mpv

But if you want to use the default player (‘totem’) then to play H.264 all you need is:

sudo apt install gstreamer1.0-libav

This site is for the co-ordination of the Ubuntu project(s), and not support.

For Ubuntu Support options, please have a look at https://community.ubuntu.com/t/finding-help/709