View mp4 videos in ubuntu 17.10 gnome+nvidia

Scritto da:MD     Categoria: Informatica

Hello everyone,

after several searches on the web I did not find a working solution to see the video mp4 with H.264 encoding on Video (default program Video, internal name Totem).

The MPEG-4 AAC sound was heard but the video was not displayed!

In fact, if you open a terminal and write

totem namevideo.mp4

we will find a mistake like this:
libva error,driver_name=(null)

This happens above all with those who have the double graphic card in optimus intel + nvidia managed by prime

Premise: guide for those with ubuntu 17.10 (with new gnome shell interface 3.26 and later) and nvidia proprietary drivers and then xorg graphics server


I open a terminal (ctrl + alt + t) and copy and paste the following lines

rm ~/.cache/gstreamer-1.0/*

sudo apt-get install libde265-0 libgstreamer-plugins-bad1.0-dev libde265-dev libavcodec-dev libavformat-dev libdvdnav4 libdvdread4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg ubuntu-restricted-extras

sudo apt install vainfo vdpau-va-driver libvdpau-va-gl1

sudo chgrp video /dev/dri -R
sudo chmod 666 /dev/dri/*
sudo chmod 755 /dev/dri
sudo usermod -a -G video username

change username with your login name

NB: in these operations you will delete nvidia-libopencl1-384, accept changes when requested

Now DO NOT immediately open a video to see, you must first reboot the system completely !!

Once reopened you will have mp4 videos that can be viewed;)

Tags: , , , , , , ,

Comments are closed.

Passa alla modalità mobile / Switch to our mobile site