Video conversion MB output size

Posted by MD     Category: Informatica



Hi, I found a very handy script to convert videos and choose the final weight in MB, useful for example to reduce and insert movies in social media.

The original script is used from terminal, while I modified it and it integrates with the Nautilus file manager on Gnu/Linux distros based on Gnome

The script has the following dependencies: ffmpeg for the video and zenity for the graphical interface (so you can set the MB you want to have as endings)

On distros based on the package manager apt give:

sudo apt-get install ffmpeg zenity

You can download it from here: videoMBdimensione.sh

Then put it in the folder

/home/USER/.local/share/nautilus/scripts

Changing obviously USER with login user name

Then right click on the file , Properties , enable “allow file to run”

Well now just right click on any mp4 video, choose scripts and you will see videoMB size.sh, click on it and it will ask you the number of MB of compression, then it will start the conversion

I hope you like it!

View mp4 videos in ubuntu 17.10 gnome+nvidia

Posted by MD     Category: 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

Resolution:

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;)