This is an extension to the Avidemux Wiki: Requirement list (debian/ubuntu) (http://www.avidemux.org/admWiki/doku.php?id=build:install_2.6#requirement_list_debian_ubuntu)
Fast
recompilation of C/C++ code:
sudo apt-get install ccache
For Qt
5sudo apt-get install libqt5opengl5-dev qttools5-dev-tools qtbase5-dev
libqt5script5 qtscript5-devFor common plugins:
sudo apt-get install libaften-dev libfaac-dev libfaad-dev libmp3lame-dev libx264-dev x264
Additional (not mentioned in Wiki):
sudo apt-get install libasound2-dev libdca-dev libfontconfig1-dev libfribidi-dev libmad0-dev libogg-dev libopencore-amrnb-dev libopencore-amrwb-dev libopus-dev libpulse-dev libtwolame-dev libva-dev vainfo libvdpau-dev vdpauinfo libvorbis-dev libvpx-dev libx265-dev x265 libxv-dev libxvidcore-dev libzip-dev nvidia-cuda-toolkit
nvenc====
use either option
A) or
B)-----
A) Quote from: eumagga0x2a on December 03, 2017, 10:45:34 PM
nvEncodeAPI.h can be obtained e.g. from https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/compat/nvenc/nvEncodeAPI.h). SDL is not needed.
-----
B) download from Video Codec SDK Archive (https://developer.nvidia.com/video-codec-sdk-archive): Video Codec SDK 6.0 (601)
updated:20160919: [nvenc] Re-enable nvenc. You
*need* SDK v6.0 for it to work, not 5 nor 7 (https://github.com/mean00/avidemux2/commit/69b5efcdcf9ef0f5b754869cd347bfb96755d7ff)
was
SDK Updated (NVENC SDK 6.0): https://developer.nvidia.com/nvidia-video-codec-sdkThe latest NVIDIA Video Codec SDK version available is 6.0, which requires NVIDIA GPU driver R358 or above for Windows and
R358 or above for Linux.
Unpack
/nvidia_video_sdk_6.0.1/Samples/common/inc/nvEncodeAPI.h-----
Copy
nvEncodeAPI.h as root into
/usr/include/x86_64-linux-gnu=-=-=-=-=-=
# Getting source from github
# installing git fast, scalable, distributed revision control system
sudo apt-get update && sudo apt-get install git
# get source
git clone https://github.com/mean00/avidemux2.git
update & build:
----------------
# check for update:
cd ~/avidemux2 && git pull
# Build avidemux debs for QT5:
cd ~/avidemux2 && bash bootStrap.bash --deb
install the build:
-----------------
If you don't want the development packages installed, remove these 1st:
cd ~/avidemux2/debs && rm --interactive=never *-dev.deb
then install
cd ~/avidemux2/debs && sudo dpkg -i *.deb
wiki:
build-essential: Informational list of build-essential packages
cmake: cross-platform, open-source make system
fakeroot: tool for simulating superuser privileges
g++: GNU C++ compiler
gcc: GNU C compiler
libaften-dev: audio AC3 encoder - development files
libfaac-dev: AAC audio encoder (development)
libfaad-dev: freeware Advanced Audio Decoder - development files
libmp3lame-dev: MP3 encoding library (development)
libpng12-dev: PNG library - development
libsqlite3-dev: SQLite 3 development files
libqt5opengl5-dev: Qt 5 OpenGL library development files
libx264-dev: development files for libx264
make: An utility for Directing compilation.
pkg-config: manage compile and link flags for libraries
qtbase5-dev: Qt 5 base development files
qttools5-dev-tools: Qt 5 development tools
yasm: modular assembler with multiple syntaxes support
common plugins:
x264: video encoder for the H.264/MPEG-4 AVC standard
Additional: (not mentioned in Wiki):
libasound2-dev: shared library for ALSA applications -- development files
libass-dev: development files for libass
libfdk-aac-dev: Fraunhofer FDK AAC Codec Library - development files
libdca-dev: decoding library for DTS Coherent Acoustics streams (development)
libfontconfig1-dev: generic font configuration library - development
libfribidi-dev: Development files for FreeBidi library (Hebrew and/or Arabic languages)
libmad0-dev: MPEG audio decoder development library
libogg-dev: Ogg bitstream library development files
libopencore-amrnb-dev: Adaptive Multi Rate speech codec - development files
libopencore-amrwb-dev: Adaptive Multi-Rate - Wideband speech codec - development files
libopus-dev: Opus codec library development files
libpulse-dev: PulseAudio client development headers and libraries
libsamplerate0-dev: Development files for audio sample rate conversion
libtwolame-dev: MPEG Audio Layer 2 encoder (development files)
libva-dev: Video Acceleration (VA) API for Linux -- development files
libvdpau-dev: Video Decode and Presentation API for Unix (development files)
libvorbis-dev: The Vorbis General Audio Compression Codec (development files)
libvpx-dev: VP8 and VP9 video codec (development files)
libx265-dev: H.265/HEVC video stream encoder (development files)
libxv-dev: X11 Video extension library (development headers)
libxvidcore-dev: Open source MPEG-4 video codec (development)
libzip-dev: library for reading, creating, and modifying zip archives (development)
nvidia-cuda-toolkit: NVIDIA CUDA toolkit (NVIDIA graphics processing units (GPUs)
qtscript5-dev: Qt 5 script development files
vainfo: Video Acceleration (VA) API for Linux -- info program
vdpauinfo: Video Decode and Presentation API for Unix (vdpauinfo utility)
x265: H.265/HEVC video stream encoder
2017/02/22 1st posting
+: libqt5opengl5-dev
-: qtscript5-dev
2017/08/07
+: libass-dev
+: libfdk-aac-dev
+: libsamplerate0-dev
qtscript5-dev is not used anymore.
dpkg -l build-essential cmake fakeroot g++ gcc libaften-dev libfaac-dev libfaad-dev libmp3lame-dev libpng12-dev libsqlite3-dev libqt5opengl5-dev libx264-dev make pkg-config qtbase5-dev qttools5-dev-tools yasm libasound2-dev x264 libdca-dev libfontconfig1-dev libfribidi-dev libmad0-dev libogg-dev libopencore-amrnb-dev libopencore-amrwb-dev libopus-dev libpulse-dev libtwolame-dev libva-dev libvdpau-dev libvorbis-dev libvpx-dev libx265-dev libxv-dev libxvidcore-dev libzip-dev nvidia-cuda-toolkit vainfo vdpauinfo x265 | grep '^.i'
ii build-essential 12.1ubuntu2 amd64 Informational list of build-essential packages
ii cmake 3.5.1-1ubuntu3 amd64 cross-platform, open-source make system
ii fakeroot 1.20.2-1ubuntu1 amd64 tool for simulating superuser privileges
ii g++ 4:5.3.1-1ubuntu1 amd64 GNU C++ compiler
ii gcc 4:5.3.1-1ubuntu1 amd64 GNU C compiler
ii libaften-dev 0.0.8+git20100105-0ubuntu2 amd64 audio AC3 encoder - development files
ii libasound2-dev:amd64 1.1.0-0ubuntu1 amd64 shared library for ALSA applications -- development files
ii libdca-dev:amd64 0.0.5-7build1 amd64 decoding library for DTS Coherent Acoustics streams (development)
ii libfaac-dev:amd64 1.28+cvs20151130-1 amd64 AAC audio encoder (development)
ii libfaad-dev:amd64 2.8.0~cvs20150510-1 amd64 freeware Advanced Audio Decoder - development files
ii libfontconfig1-dev:amd64 2.11.94-0ubuntu1.1 amd64 generic font configuration library - development
ii libfribidi-dev 0.19.7-1 amd64 Development files for FreeBidi library
ii libmad0-dev 0.15.1b-8ubuntu1 amd64 MPEG audio decoder development library
ii libmp3lame-dev:amd64 3.99.5+repack1-9build1 amd64 MP3 encoding library (development)
ii libogg-dev:amd64 1.3.2-1 amd64 Ogg bitstream library development files
ii libopencore-amrnb-dev:amd64 0.1.3-2.1 amd64 Adaptive Multi Rate speech codec - development files
ii libopencore-amrwb-dev:amd64 0.1.3-2.1 amd64 Adaptive Multi-Rate - Wideband speech codec - development files
ii libopus-dev:amd64 1.1.2-1ubuntu1 amd64 Opus codec library development files
ii libpng12-dev:amd64 1.2.54-1ubuntu1 amd64 PNG library - development
ii libpulse-dev:amd64 1:8.0-0ubuntu3.2 amd64 PulseAudio client development headers and libraries
ii libqt5opengl5-dev:amd64 5.5.1+dfsg-16ubuntu7.2 amd64 Qt 5 OpenGL library development files
ii libsqlite3-dev:amd64 3.11.0-1ubuntu1 amd64 SQLite 3 development files
ii libtwolame-dev:amd64 0.3.13-1.2 amd64 MPEG Audio Layer 2 encoder (development files)
ii libva-dev:amd64 1.7.0-1 amd64 Video Acceleration (VA) API for Linux -- development files
ii libvdpau-dev:amd64 1.1.1-3ubuntu1 amd64 Video Decode and Presentation API for Unix (development files)
ii libvorbis-dev:amd64 1.3.5-3 amd64 development files for Vorbis General Audio Compression Codec
ii libvpx-dev:amd64 1.5.0-2ubuntu1 amd64 VP8 and VP9 video codec (development files)
ii libx264-dev:amd64 2:0.148.2643+git5c65704-1 amd64 development files for libx264
ii libx265-dev:amd64 1.9-3 amd64 H.265/HEVC video stream encoder (development files)
ii libxv-dev:amd64 2:1.0.10-1 amd64 X11 Video extension library (development headers)
ii libxvidcore-dev:amd64 2:1.3.4-1 amd64 Open source MPEG-4 video codec (development)
ii libzip-dev:amd64 1.0.1-0ubuntu1 amd64 library for reading, creating, and modifying zip archives (development)
ii make 4.1-6 amd64 utility for directing compilation
ii nvidia-cuda-toolkit 7.5.18-0ubuntu1 amd64 NVIDIA CUDA development toolkit
ii pkg-config 0.29.1-0ubuntu1 amd64 manage compile and link flags for libraries
ii qtbase5-dev:amd64 5.5.1+dfsg-16ubuntu7.2 amd64 Qt 5 base development files
ii qttools5-dev-tools 5.5.1-3build1 amd64 Qt 5 development tools
ii vainfo 1.7.0-1 amd64 Video Acceleration (VA) API for Linux -- info program
ii vdpauinfo 1.0-1 amd64 Video Decode and Presentation API for Unix (vdpauinfo utility)
ii x264 2:0.148.2643+git5c65704-1 amd64 video encoder for the H.264/MPEG-4 AVC standard
ii x265 1.9-3 amd64 H.265/HEVC video stream encoder
ii yasm 1.3.0-2 amd64 modular assembler with multiple syntaxes support
2017/05/01
sudo apt-get install libpng-dev
QuoteNote, selecting 'libpng12-dev' instead of 'libpng-dev'
use libpng
12-dev,
do not install/update libpng
16-dev: this breaks libfreetype6-dev libfontconfig1-dev
Please comment. Iibpng16-dev is an unofficial (universe) package in Xenial. Installing libpng-dev pulls in libpng12-dev on Xenial and libpng16-dev on later Ubuntu versions. The Ubuntu build script will install libpng-dev.
yes: Ubuntu 16.04.2
LTS = Xenial,
Quotesudo apt-get install libpng-dev
QuoteNote, selecting 'libpng12-dev' instead of 'libpng-dev'
Quotedo not install/update libpng16-dev: this breaks libfreetype6-dev libfontconfig1-dev
18.04
LTS expected release = 2018-04
The point is, you won't have libpng16-dev on your 16.04.x system normally. The unofficial package libpng16-dev in turn is correctly marked as conflicting with libpng12-dev, thus resulting in removal of all packages depending on libpng-dev because only libpng12-dev provides "libpng-dev" on Xenial.
Is nvidia-cuda-toolki mandatory for compiling with Xubuntu 16.04 LTS ? It is a very big library.
Only if you have a supported nvidia gpu and want to use vdpau, I suppose.
Checking for Secret Rabbit Code
-- *******************************
-- Could not find samplerate.h
-- Could not find Secret Rabbit Code
sudo apt install libsamplerate0-dev
-- Could not find fdk-aac/aacenc_lib.h
-- Could not find FDK_AAC
sudo apt install libfdk-aac-dev
Quote from: eumagga0x2aRemove installed avidemux
Check installed avidemux
----------------------------------
dpkg -l "avidemux*"
QuoteDesired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-====================-====================-=================================================================
ii avidemux3-cli-runtime 2.7.0-171130 amd64 Simple video editor,main program, command line version
ii avidemux3-core-runtime 2.7.0-171130 amd64 Simple video editor,core libraries
ii avidemux3-plugins-cli-plugins 2.7.0-171130 amd64 Simple video editor, plugins (CLI
ii avidemux3-plugins-common-plugi 2.7.0-171130 amd64 Simple video editor, plugins (COMMON
ii avidemux3-plugins-qt5-plugins 2.7.0-171130 amd64 Simple video editor, plugins (qt5
ii avidemux3-qt5-runtime 2.7.0-171130 amd64 Simple video editor,main program qt4 version
ii avidemux3-settings-settings 2.7.0-171130 amd64 Simple video editor, settings
----------------------------------
Remove
stock &
deb installed avidemux
sudo apt-get purge "avidemux*"
QuoteReading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'avidemux3-settings-settings' for glob 'avidemux*'
Note, selecting 'avidemux3-plugins-qt5-plugins' for glob 'avidemux*'
Note, selecting 'avidemux3-cli-runtime' for glob 'avidemux*'
Note, selecting 'avidemux3-core-runtime' for glob 'avidemux*'
Note, selecting 'avidemux3-plugins-common-plugins' for glob 'avidemux*'
Note, selecting 'avidemux' for glob 'avidemux*'
Note, selecting 'avidemux3-qt5-runtime' for glob 'avidemux*'
Note, selecting 'avidemux3-plugins-cli-plugins' for glob 'avidemux*'
Package 'avidemux' is not installed, so not removed
avidemux = stock
avidemux3 = deb
Blank installing avidemux, building from git
------------------------------------
with following instructions
sudo apt-get update
sudo apt-get install git
git clone https://github.com/mean00/avidemux2.git
cd avidemux2
bash createDebFromSourceUbuntu.bash
Hi
I am trying to compile avidemux 2.6 on Ubuntu 18.04, I get following error when I run ./run_avidemux_template.sh
/home/net/avidemux2/install/usr/include/avidemux/2.7/ADM_coreConfig.h not found, can't determine the relative library directory. Aborting.
any suggestions please. Also I compiling avidemux 2.6 using
bash bootStrap.bash
Compilation is success, but at the final unable to find avidemux binary.
Please suggest.