{"id":985,"date":"2018-02-02T13:10:26","date_gmt":"2018-02-02T12:10:26","guid":{"rendered":"http:\/\/localhost\/miosito\/?p=985"},"modified":"2018-02-02T16:20:36","modified_gmt":"2018-02-02T15:20:36","slug":"visualizzare-video-mp4-in-ubuntu-17-10-gnomenvidia","status":"publish","type":"post","link":"http:\/\/localhost\/miosito\/en\/visualizzare-video-mp4-in-ubuntu-17-10-gnomenvidia\/","title":{"rendered":"View mp4 videos in ubuntu 17.10 gnome+nvidia"},"content":{"rendered":"


\n
\n

\n

\nHello everyone,<\/p>\n

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).<\/p>\n

The MPEG-4 AAC sound was heard but the video was not displayed!<\/p>\n

In fact, if you open a terminal and write<\/p>\n

totem namevideo.mp4<\/p>\n

we will find a mistake like this:
\nlibva error,driver_name=(null)<\/p>\n

This happens above all with those who have the double graphic card in optimus intel + nvidia managed by prime<\/p>\n

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<\/p>\n

Resolution:<\/p>\n

I open a terminal (ctrl + alt + t) and copy and paste the following lines<\/p>\n

rm ~\/.cache\/gstreamer-1.0\/*<\/p>\n

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<\/p>\n

sudo apt install vainfo vdpau-va-driver libvdpau-va-gl1<\/p>\n

sudo chgrp video \/dev\/dri -R
\nsudo chmod 666 \/dev\/dri\/*
\nsudo chmod 755 \/dev\/dri
\nsudo usermod -a -G video username<\/em><\/p>\n

change username<\/em> with your login name<\/p>\n

NB: in these operations you will delete nvidia-libopencl1-384, accept changes when requested<\/p>\n

Now DO NOT immediately open a video to see, you must first reboot the system completely !!<\/p>\n

Once reopened you will have mp4 videos that can be viewed;)<\/p>","protected":false},"excerpt":{"rendered":"

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 […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[57,35,68,64,65,66,9,67],"_links":{"self":[{"href":"http:\/\/localhost\/miosito\/en\/wp-json\/wp\/v2\/posts\/985"}],"collection":[{"href":"http:\/\/localhost\/miosito\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/localhost\/miosito\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/localhost\/miosito\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/localhost\/miosito\/en\/wp-json\/wp\/v2\/comments?post=985"}],"version-history":[{"count":0,"href":"http:\/\/localhost\/miosito\/en\/wp-json\/wp\/v2\/posts\/985\/revisions"}],"wp:attachment":[{"href":"http:\/\/localhost\/miosito\/en\/wp-json\/wp\/v2\/media?parent=985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/localhost\/miosito\/en\/wp-json\/wp\/v2\/categories?post=985"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/localhost\/miosito\/en\/wp-json\/wp\/v2\/tags?post=985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}