Ubuntu provides a meta-package named ubuntu-restricted-extras that consists of most of the common audio and video codecs along with some other packages like the Microsoft fonts.
sudo apt install ubuntu-restricted-extras
NOTE: Since this meta-package contains software from Microsoft, you will have to accept the End User License Agreement (EULA).
sudo apt install gstreamer1.0-plugins-bad
NOTE: Once this package is installed, open the video file again and see if it works now.
There is the option to click on the Find in Ubuntu Software button, but suggested not to.
There may be other video files that also require some other decoder.
sudo apt install libavcodec-extra gstreamer1.0-plugins-ugly gstreamer1.0-libav
Install vlc or mpv.
sudo apt install vlc or sudo apt install mpv