Avidemux Forum

Participate => Avidemux Wiki => Topic started by: Jan Gruuthuse on June 12, 2018, 08:15:16 AM

Title: avidemux 2.7.# Compiling Avidemux on Ubuntu 18.04 LTS
Post by: Jan Gruuthuse on June 12, 2018, 08:15:16 AM
remove and delete installed avidemux
Code: [Select]
sudo apt-get purge "avidemux*"
Information update of repositories on packages and their dependencies
Code: [Select]
sudo apt-get update
Install GIT (source code management and distributed revision control system)
Code: [Select]
sudo apt-get install git
Get the source code
Code: [Select]
git clone https://github.com/mean00/avidemux2.git
Go into the cloned folder
Code: [Select]
cd ~/avidemux2
Run script that checks and install dependencies and builds avidemux.
Code: [Select]
bash createDebFromSourceUbuntu.bash
Title: 18.04 LTS createDebFromSourceUbuntu.bash
Post by: Jan Gruuthuse on June 12, 2018, 08:17:31 AM
starting script createDebFromSourceUbuntu.bash checks and install dependencies and builds avidemux: terminal output.
Code: [Select]
The following NEW packages will be installed:
  build-essential cmake cmake-data dpkg-dev fakeroot g++ g++-7 gcc gcc-7 i965-va-driver libaften-dev libaften0 libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4 libasound2-dev libatomic1 libbrotli1 libc-dev-bin libc6-dev libcilkrts5 libcurl4 libdca-dev
  libdca0 libdouble-conversion1 libdrm-dev libegl1-mesa-dev libexpat1-dev libfaac-dev libfaac0 libfaad-dev libfaad2 libfakeroot libfontconfig1-dev
  libfreetype6-dev libfribidi-dev libgcc-7-dev libgl1-mesa-dev libgles2-mesa-dev libglib2.0-dev libglib2.0-dev-bin libglu1-mesa-dev libglvnd-core-dev
  libglvnd-dev libitm1 libjsoncpp1 liblsan0 libmp3lame-dev libmpx2 libogg-dev libopengl0 libopus-dev libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5
  libpng-dev libpng-tools libpthread-stubs0-dev libpulse-dev libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5designer5 libqt5designercomponents5 libqt5gui5
  libqt5help5 libqt5network5 libqt5opengl5 libqt5opengl5-dev libqt5positioning5 libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5quickwidgets5 libqt5sensors5
  libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5test5 libqt5webchannel5 libqt5webkit5 libqt5widgets5 libqt5xml5 libquadmath0 librhash0 libset-scalar-perl
  libsqlite3-dev libstdc++-7-dev libtsan0 libubsan0 libuv1 libva-dev libva-drm2 libva-glx2 libva-wayland2 libva-x11-2 libva2 libvdpau-dev libvdpau1
  libvorbis-dev libwayland-bin libwayland-dev libwoff1 libx11-dev libx11-doc libx11-xcb-dev libx264-152 libx264-dev libxau-dev libxcb-dri2-0-dev
  libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev
  libxcb-xinerama0 libxcb1-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxshmfence-dev libxv-dev libxvidcore-dev libxvidcore4 libxxf86vm-dev
  linux-libc-dev make manpages-dev mesa-common-dev mesa-va-drivers mesa-vdpau-drivers pkg-config python3-distutils python3-lib2to3 qt5-assistant
  qt5-gtk-platformtheme qt5-qmake qt5-qmake-bin qtbase5-dev qtbase5-dev-tools qtchooser qttools5-dev-tools qttranslations5-l10n va-driver-all vdpau-driver-all
  x11proto-core-dev x11proto-damage-dev x11proto-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-xext-dev x11proto-xf86vidmode-dev
  xorg-sgml-doctools xtrans-dev yasm zlib1g-dev
Title: 18.04 followed by
Post by: Jan Gruuthuse on June 12, 2018, 08:21:33 AM
Code: [Select]
Reading state information... Done
The following additional packages will be installed:
Suggested packages:
The following NEW packages will be installed:
  libx265-146 libx265-dev
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1636 kB of archives.
After this operation, 16,3 MB of additional disk space will be used

take note:
Reading state information

** ALL DONE **
** The installable packages are in the debs folder **
Title: 18.04 build log reporting missing
Post by: Jan Gruuthuse on June 12, 2018, 08:24:15 AM
TWOLAME        No : libtwolame-dev
FDK_AAC        No : libfdk-aac-dev
opencore-amrnb No : libopencore-amrnb-dev
opencore-amrwb No : libopencore-amrwb-dev

Code: [Select]
sudo apt-get install libtwolame-dev libfdk-aac-dev libopencore-amrnb-dev libopencore-amrwb-dev
Title: 18.04 additional install
Post by: Jan Gruuthuse on June 12, 2018, 08:26:25 AM
Wont hurt if you install additional:
Code: [Select]
sudo apt-get install libzip-dev
Maybe I was unclear. You need libmad0-dev exclusively in the case when you add the --with-system-libmad option to the bootstrap script. Only then. You don't need it otherwise. (http://avidemux.org/smif/index.php/topic,18364.msg84257.html#msg84257)
If needed specifically:
Code: [Select]
sudo apt-get install libmad0-dev
Title: 18.04 Nvenc
Post by: Jan Gruuthuse on June 12, 2018, 08:29:26 AM
Code: [Select]
sudo apt-get install nvidia-cuda-toolkit libnvidia-encode-390
Search your system for: nvEncodeAPI.h.

When found, copy  nvEncodeAPI.h as root  into /usr/include/x86_64-linux-gnu

when building from git, terminal should show:
Code: [Select]
***  Optional Library  ***
***      Summary       ***
*** Video Encoder      ***
    NVENC          Yes
Title: 18.04 VDPAU-based backend for VA API
Post by: Jan Gruuthuse on June 12, 2018, 08:31:09 AM
check if Video Acceleration (VA) API for Linux -- info program is installed:
Code: [Select]
dpkg -l vainfoif not install:
Code: [Select]
sudo apt-get install vainfo
check libva info:
Code: [Select]
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

Code: [Select]
sudo apt-get install vdpau-va-driver
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :   VAEntrypointVLD
      VAProfileMPEG2Main              :   VAEntrypointVLD
      VAProfileMPEG4Simple            :   VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple    :   VAEntrypointVLD
      <unknown profile>               :   VAEntrypointVLD
      VAProfileH264Main               :   VAEntrypointVLD
      VAProfileH264High               :   VAEntrypointVLD
      VAProfileVC1Simple              :   VAEntrypointVLD
      VAProfileVC1Main                :   VAEntrypointVLD
      VAProfileVC1Advanced            :   VAEntrypointVLD
Title: libjack-dev & libsamplerate0-dev
Post by: Jan Gruuthuse on June 13, 2018, 12:51:46 PM
libsamplerate installs only if Jack is found.
Code: [Select]
sudo apt-get install  libjack-dev libsamplerate0-dev