install on centos fail

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

install on centos fail

jackyr
Hi

I try to install full ffmpeg on centos and using this guide
              https://trac.ffmpeg.org/wiki/CompilationGuide/Centos

I made the following shell

cd ffmpeg_sources
curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2

cd ffmpeg

PATH="$HOME/bin:$PATH"
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
   --prefix="$HOME/ffmpeg_build" \
   --pkg-config-flags="--static" \
   --extra-cflags="-I$HOME/ffmpeg_build/include" \
   --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
   --extra-libs=-lpthread \
   --extra-libs=-lm \
   --bindir="$HOME/bin" \
   --enable-gpl \
   --enable-libfdk_aac \
   --enable-libfreetype \
   --enable-libmp3lame \
   --enable-libopus \
   --enable-libvpx \
   --enable-libx264 \
   --enable-libx265 \
   --enable-nonfree
make
make install
#hash -d ffmpeg


--- I am getting errors and install stops    see console details

ERROR: freetype2 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[hidden email] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this
will help
solve the problem.
Makefile:2: ffbuild/config.mak: Aucun fichier ou dossier de ce type
Makefile:40: /tools/Makefile: Aucun fichier ou dossier de ce type
Makefile:41: /ffbuild/common.mak: Aucun fichier ou dossier de ce type
Makefile:97: /libavutil/Makefile: Aucun fichier ou dossier de ce type
Makefile:97: /ffbuild/library.mak: Aucun fichier ou dossier de ce type
Makefile:99: /fftools/Makefile: Aucun fichier ou dossier de ce type
Makefile:100: /doc/Makefile: Aucun fichier ou dossier de ce type
Makefile:101: /doc/examples/Makefile: Aucun fichier ou dossier de ce type
Makefile:167: /tests/Makefile: Aucun fichier ou dossier de ce type
make: *** Pas de règle pour fabriquer la cible « /tests/Makefile ». Arrêt.
Makefile:2: ffbuild/config.mak: Aucun fichier ou dossier de ce type
Makefile:40: /tools/Makefile: Aucun fichier ou dossier de ce type
Makefile:41: /ffbuild/common.mak: Aucun fichier ou dossier de ce type
Makefile:97: /libavutil/Makefile: Aucun fichier ou dossier de ce type
Makefile:97: /ffbuild/library.mak: Aucun fichier ou dossier de ce type
Makefile:99: /fftools/Makefile: Aucun fichier ou dossier de ce type
Makefile:100: /doc/Makefile: Aucun fichier ou dossier de ce type
Makefile:101: /doc/examples/Makefile: Aucun fichier ou dossier de ce type
Makefile:167: /tests/Makefile: Aucun fichier ou dossier de ce type
make: *** Pas de règle pour fabriquer la cible « /tests/Makefile ». Arrêt





--- here is my config_log

require_pkg_config libfreetype freetype2 ft2build.h FT_FREETYPE_H
FT_Init_FreeType
check_pkg_config libfreetype freetype2 ft2build.h FT_FREETYPE_H
FT_Init_FreeType
test_pkg_config libfreetype freetype2 ft2build.h FT_FREETYPE_H
FT_Init_FreeType
pkg-config --exists --print-errors freetype2
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
ERROR: freetype2 not found using pkg-config

could you help me to solve this install problem ?

regards
Jacky


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: install on centos fail

Reindl Harald

Am 04.08.20 um 10:56 schrieb jacky renaux:

> I try to install full ffmpeg on centos and using this guide
>              https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
>
> I made the following shell
>
> cd ffmpeg_sources
> curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
> tar xjvf ffmpeg-snapshot.tar.bz2
>
> cd ffmpeg
>
> PATH="$HOME/bin:$PATH"
> PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
>   --prefix="$HOME/ffmpeg_build" \
>   --pkg-config-flags="--static" \
>   --extra-cflags="-I$HOME/ffmpeg_build/include" \
>   --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
>   --extra-libs=-lpthread \
>   --extra-libs=-lm \
>   --bindir="$HOME/bin" \
>   --enable-gpl \
>   --enable-libfdk_aac \
>   --enable-libfreetype \
>   --enable-libmp3lame \
>   --enable-libopus \
>   --enable-libvpx \
>   --enable-libx264 \
>   --enable-libx265 \
>   --enable-nonfree
> make
> make install
> #hash -d ffmpeg
>
>
> --- I am getting errors and install stops    see console details
>
> ERROR: freetype2 not found using pkg-config

and why don't you ust type "yum install freetype-devel"?
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos

Get the Dependencies

Note: The # indicates that the command should be executed as superuser
or root and is only required in this guide for the yum command.

Get the dependencies. These are required for compiling, but you can
remove them when you are done if you prefer (except make; it should be
installed by default and many things depend on it).

# yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel
gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: install on centos fail

jackyr


Le 04/08/2020 à 11:26, Reindl Harald a écrit :

> Am 04.08.20 um 10:56 schrieb jacky renaux:
>> I try to install full ffmpeg on centos and using this guide
>>               https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
>>
>> I made the following shell
>>
>> cd ffmpeg_sources
>> curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
>> tar xjvf ffmpeg-snapshot.tar.bz2
>>
>> cd ffmpeg
>>
>> PATH="$HOME/bin:$PATH"
>> PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
>>    --prefix="$HOME/ffmpeg_build" \
>>    --pkg-config-flags="--static" \
>>    --extra-cflags="-I$HOME/ffmpeg_build/include" \
>>    --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
>>    --extra-libs=-lpthread \
>>    --extra-libs=-lm \
>>    --bindir="$HOME/bin" \
>>    --enable-gpl \
>>    --enable-libfdk_aac \
>>    --enable-libfreetype \
>>    --enable-libmp3lame \
>>    --enable-libopus \
>>    --enable-libvpx \
>>    --enable-libx264 \
>>    --enable-libx265 \
>>    --enable-nonfree
>> make
>> make install
>> #hash -d ffmpeg
>>
>>
>> --- I am getting errors and install stops    see console details
>>
>> ERROR: freetype2 not found using pkg-config
> and why don't you ust type "yum install freetype-devel"?
> https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
>
> Get the Dependencies
>
> Note: The # indicates that the command should be executed as superuser
> or root and is only required in this guide for the yum command.
>
> Get the dependencies. These are required for compiling, but you can
> remove them when you are done if you prefer (except make; it should be
> installed by default and many things depend on it).
>
> # yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel
> gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel

many thanks Karl , I am a low level unix user but you gave correct me a lot

here is my new shell based on your advices still nor succeed on a
temporary install rep

yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc
gcc-c++ git libtool make mercurial pkgconfig zlib-devel
cd ffmpeg_sources
curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$HOME/bin:$PATH"
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
   --prefix="$HOME/ffmpeg_build" \
   --pkg-config-flags="--static" \
   --extra-cflags="-I$HOME/ffmpeg_build/include" \
   --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
   --extra-libs=-lpthread \
   --extra-libs=-lm \
   --bindir="$HOME/bin" \
   --enable-gpl \
   --enable-libfdk_aac \
   --enable-libfreetype \
   --enable-libmp3lame \
   --enable-libopus \
   --enable-libvpx \
   --enable-libx264 \
   --enable-libx265 \
   --enable-nonfree


then I for before make one error  see     extract .....

ffmpeg/presets/libvpx-1080p.ffpreset
ffmpeg/presets/libvpx-1080p50_60.ffpreset
ffmpeg/presets/libvpx-720p.ffpreset
ffmpeg/presets/libvpx-720p50_60.ffpreset
ffmpeg/presets/libvpx-360p.ffpreset
ffmpeg/VERSION
ffmpeg/libpostproc/
ffmpeg/libpostproc/Makefile
ffmpeg/libpostproc/libpostproc.v
ffmpeg/libpostproc/postprocess_altivec_template.c
ffmpeg/libpostproc/postprocess_internal.h
ffmpeg/libpostproc/postprocess.c
ffmpeg/libpostproc/postprocess_template.c
ffmpeg/libpostproc/postprocess.h
ffmpeg/libpostproc/postprocres.rc
ffmpeg/libpostproc/version.h
libvpx enabled but no supported decoders found

seem   not decoder libs not yet functionam

regards
Jacky

> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: install on centos fail

Reindl Harald


Am 04.08.20 um 19:50 schrieb jacky renaux:

> Le 04/08/2020 à 11:26, Reindl Harald a écrit :
>> Am 04.08.20 um 10:56 schrieb jacky renaux:
>>> I try to install full ffmpeg on centos and using this guide
>>>               https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
>>>
>>> I made the following shell
>>>
>>> cd ffmpeg_sources
>>> curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
>>> tar xjvf ffmpeg-snapshot.tar.bz2
>>>
>>> cd ffmpeg
>>>
>>> PATH="$HOME/bin:$PATH"
>>> PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
>>>    --prefix="$HOME/ffmpeg_build" \
>>>    --pkg-config-flags="--static" \
>>>    --extra-cflags="-I$HOME/ffmpeg_build/include" \
>>>    --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
>>>    --extra-libs=-lpthread \
>>>    --extra-libs=-lm \
>>>    --bindir="$HOME/bin" \
>>>    --enable-gpl \
>>>    --enable-libfdk_aac \
>>>    --enable-libfreetype \
>>>    --enable-libmp3lame \
>>>    --enable-libopus \
>>>    --enable-libvpx \
>>>    --enable-libx264 \
>>>    --enable-libx265 \
>>>    --enable-nonfree
>>> make
>>> make install
>>> #hash -d ffmpeg
>>>
>>>
>>> --- I am getting errors and install stops    see console details
>>>
>>> ERROR: freetype2 not found using pkg-config
>> and why don't you ust type "yum install freetype-devel"?
>> https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
>>
>> Get the Dependencies
>>
>> Note: The # indicates that the command should be executed as superuser
>> or root and is only required in this guide for the yum command.
>>
>> Get the dependencies. These are required for compiling, but you can
>> remove them when you are done if you prefer (except make; it should be
>> installed by default and many things depend on it).
>>
>> # yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel
>> gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel
>
> many thanks Karl , I am a low level unix user but you gave correct me a lot
>
> here is my new shell based on your advices still nor succeed on a
> temporary install rep
>
> yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc
> gcc-c++ git libtool make mercurial pkgconfig zlib-devel
> cd ffmpeg_sources
> curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
> tar xjvf ffmpeg-snapshot.tar.bz2
> cd ffmpeg
> PATH="$HOME/bin:$PATH"
> PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
>   --prefix="$HOME/ffmpeg_build" \
>   --pkg-config-flags="--static" \
>   --extra-cflags="-I$HOME/ffmpeg_build/include" \
>   --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
>   --extra-libs=-lpthread \
>   --extra-libs=-lm \
>   --bindir="$HOME/bin" \
>   --enable-gpl \
>   --enable-libfdk_aac \
>   --enable-libfreetype \
>   --enable-libmp3lame \
>   --enable-libopus \
>   --enable-libvpx \
>   --enable-libx264 \
>   --enable-libx265 \
>   --enable-nonfree
>
>
> then I for before make one error  see     extract .....
>
> ffmpeg/presets/libvpx-1080p.ffpreset
> ffmpeg/presets/libvpx-1080p50_60.ffpreset
> ffmpeg/presets/libvpx-720p.ffpreset
> ffmpeg/presets/libvpx-720p50_60.ffpreset
> ffmpeg/presets/libvpx-360p.ffpreset
> ffmpeg/VERSION
> ffmpeg/libpostproc/
> ffmpeg/libpostproc/Makefile
> ffmpeg/libpostproc/libpostproc.v
> ffmpeg/libpostproc/postprocess_altivec_template.c
> ffmpeg/libpostproc/postprocess_internal.h
> ffmpeg/libpostproc/postprocess.c
> ffmpeg/libpostproc/postprocess_template.c
> ffmpeg/libpostproc/postprocess.h
> ffmpeg/libpostproc/postprocres.rc
> ffmpeg/libpostproc/version.h
> libvpx enabled but no supported decoders found
>
> seem   not decoder libs not yet functionam

whoever Karl is, i simply don't understand why people just don't learn
how to build packages and when i see $HOME somewhere i start to puke

https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment

that below builds x264 static and uses everyting lese from the distribution

"PKG_CONFIG_PATH=$HOME/ffmpeg_build/lib/pkgconfig" and build everything
left and right from source in the home directory i pure bullshit

and for the usual guys crreping out of their holes: that specfile works
more or less unmchanged for many years

[root@buildserver:~]$ cat /rpmbuild/SPECS/ffmpeg-latest.spec
#############################################################################################################################
# command 'rpmbuild -bb ffmpeg-latest.spec --with production' will tune
for current hardware while default stays compatible #
#############################################################################################################################

%global ffmpeg_snapshot 20200714
%global x264_snapshot   20200311
%global x264_version    0.158.0000
%global pgo_build       1

%if %{?_with_production:1}%{!?_with_production:0}
 %global rpmsuffix native
 %global build_native_release 1
 %global optflags $(sed "s/sandybridge/native/g" <<< "%{optflags}")
%else
 %global rpmsuffix %{mtune2}
 %global build_native_release 0
 %global optflags $(sed "s/sandybridge/%{mtune2}/g" <<< "%{optflags}")
%endif

Summary:           Hyper fast Audio and Video encoder (static build)
Name:              ffmpeg-latest
Version:           4.3.1
Release:
1.%{build_native_release}%{?dist}.x264.%{x264_version}.%{rpmsuffix}
License:           GPLv3+
URL:               http://ffmpeg.org/
Source0:           ffmpeg-%{ffmpeg_snapshot}.tar.xz
Source1:           x264-%{x264_snapshot}.tar.xz
Source2:           ffmpeg-snapshot-latest.sh
Source3:           x264-snapshot-latest.sh
Source4:           720x400.yuv
BuildRequires:     bzip2-devel
BuildRequires:     imlib2-devel
BuildRequires:     lame-devel
BuildRequires:     libtheora-devel
BuildRequires:     libvpx-devel
BuildRequires:     openssl-devel
BuildRequires:     x265-devel
BuildRequires:     nasm
BuildRequires:     yasm
BuildRequires:     zlib-devel
Provides:          ffmpeg

%description
A complete, cross-platform solution to record, convert and stream audio
and video

%package           manpages
Summary:           Manpages for ffmpeg-latest
BuildArch:         noarch
%description       manpages

%prep
%setup -q -n ffmpeg-%{ffmpeg_snapshot}

%build
# build x264-static with profile-guided-optimization for current
architecture
tar xJf %{SOURCE1}
pushd x264-%{x264_snapshot}
./configure \
 --prefix=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot} \
 --exec-prefix=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
 --bindir=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
 --libdir=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
 --includedir=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
 --extra-cflags="%{optflags} %{O3_flags} -w" \
 --extra-ldflags="-Wl,--as-needed -Wl,-z,now -Wl,-z,relro
-Wl,-z,noexecstack %{optflags} %{O3_flags} -w" \
 --enable-static \
 --enable-pic \
 --enable-strip \
 --disable-avs \
 --disable-cli \
 --disable-ffms \
 --disable-gpac \
 --disable-lavf \
 --disable-opencl \
 --disable-swscale
%if %pgo_build
 make fprofiled VIDS="%{SOURCE4}" %{?_smp_mflags}
%else
 make %{?_smp_mflags}
%endif
make install
strip --strip-unneeded --strip-debug
/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static/libx264.a
popd
# build ffmpeg-static and link with x264-static from previous build
mkdir generic
pushd generic
../configure \
 --prefix=%{_prefix}/local \
 --bindir=%{_prefix}/local/bin \
 --mandir=%{_prefix}/local/man \
 --extra-cflags="-I/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static
%{optflags} %{O3_flags} -flto=%(nproc) -ffat-lto-objects -fwhole-program
-w" \
 --extra-ldflags="-I/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static -L/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static -ldl -Wl,--as-needed -Wl,-z,now -Wl,-z,relro %{optflags} %{O3_flags} -flto=%(nproc) -ffat-lto-objects -fwhole-program -pie -fPIE -w" \
 --ar=gcc-ar \
 --ranlib=true \
 --enable-lto \
 --enable-gpl \
 --enable-libmp3lame \
 --enable-libtheora \
 --enable-libvpx \
 --enable-libx264 \
 --enable-libx265 \
 --enable-nonfree \
 --enable-openssl \
 --enable-pic \
 --enable-runtime-cpudetect \
 --enable-static \
 --enable-version3 \
 --disable-amf \
 --disable-appkit \
 --disable-autodetect \
 --disable-avdevice \
 --disable-avfoundation \
 --disable-coreimage \
 --disable-debug \
 --disable-devices \
 --disable-ffplay \
 --disable-ffprobe \
 --disable-htmlpages \
 --disable-hwaccels \
 --disable-iconv \
 --disable-libdc1394 \
 --disable-libfreetype \
 --disable-libgsm \
 --disable-libopencore-amrnb \
 --disable-libopencore-amrwb \
 --disable-libopencv \
 --disable-libopenjpeg \
 --disable-libopus \
 --disable-librtmp \
 --disable-libspeex \
 --disable-libvorbis \
 --disable-libxcb \
 --disable-libxcb-shape \
 --disable-libxcb-shm \
 --disable-libxcb-xfixes \
 --disable-libxvid \
 --disable-podpages \
 --disable-postproc \
 --disable-protocol=gopher \
 --disable-shared \
 --disable-txtpages \
 --disable-xlib
%{__make} %{?_smp_mflags}
make documentation
popd

%install
pushd generic
make install DESTDIR=%{buildroot}
popd
mkdir %{buildroot}%{_bindir}
ln -s %{_prefix}/local/bin/ffmpeg %{buildroot}%{_bindir}/ffmpeg
rm -rf %{buildroot}%{_prefix}/local/include
%{buildroot}%{_prefix}/local/lib %{buildroot}%{_prefix}/local/lib64
%{buildroot}%{_prefix}/local/share
strip --strip-unneeded %{buildroot}%{_prefix}/local/bin/ffmpeg

%files
%{_prefix}/local/bin/ffmpeg
%{_bindir}/ffmpeg

%files manpages
%{_prefix}/local/man/man1/*
%{_prefix}/local/man/man3/*

%changelog
* Tue Jul 14 2020 Reindl Harald <[hidden email]>
- update to 4.3.1
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: install on centos fail

jackyr


Le 04/08/2020 à 20:00, Reindl Harald a écrit :

> [root@buildserver:~]$ cat /rpmbuild/SPECS/ffmpeg-latest.spec
> #############################################################################################################################
> # command 'rpmbuild -bb ffmpeg-latest.spec --with production' will tune
> for current hardware while default stays compatible #
> #############################################################################################################################
>
> %global ffmpeg_snapshot 20200714
> %global x264_snapshot   20200311
> %global x264_version    0.158.0000
> %global pgo_build       1
>
> %if %{?_with_production:1}%{!?_with_production:0}
>   %global rpmsuffix native
>   %global build_native_release 1
>   %global optflags $(sed "s/sandybridge/native/g" <<< "%{optflags}")
> %else
>   %global rpmsuffix %{mtune2}
>   %global build_native_release 0
>   %global optflags $(sed "s/sandybridge/%{mtune2}/g" <<< "%{optflags}")
> %endif
>
> Summary:           Hyper fast Audio and Video encoder (static build)
> Name:              ffmpeg-latest
> Version:           4.3.1
> Release:
> 1.%{build_native_release}%{?dist}.x264.%{x264_version}.%{rpmsuffix}
> License:           GPLv3+
> URL:http://ffmpeg.org/
> Source0:           ffmpeg-%{ffmpeg_snapshot}.tar.xz
> Source1:           x264-%{x264_snapshot}.tar.xz
> Source2:           ffmpeg-snapshot-latest.sh
> Source3:           x264-snapshot-latest.sh
> Source4:           720x400.yuv
> BuildRequires:     bzip2-devel
> BuildRequires:     imlib2-devel
> BuildRequires:     lame-devel
> BuildRequires:     libtheora-devel
> BuildRequires:     libvpx-devel
> BuildRequires:     openssl-devel
> BuildRequires:     x265-devel
> BuildRequires:     nasm
> BuildRequires:     yasm
> BuildRequires:     zlib-devel
> Provides:          ffmpeg
>
> %description
> A complete, cross-platform solution to record, convert and stream audio
> and video
>
> %package           manpages
> Summary:           Manpages for ffmpeg-latest
> BuildArch:         noarch
> %description       manpages
>
> %prep
> %setup -q -n ffmpeg-%{ffmpeg_snapshot}
>
> %build
> # build x264-static with profile-guided-optimization for current
> architecture
> tar xJf %{SOURCE1}
> pushd x264-%{x264_snapshot}
> ./configure \
>   --prefix=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot} \
>   --exec-prefix=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
>   --bindir=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
>   --libdir=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
>   --includedir=/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static \
>   --extra-cflags="%{optflags} %{O3_flags} -w" \
>   --extra-ldflags="-Wl,--as-needed -Wl,-z,now -Wl,-z,relro
> -Wl,-z,noexecstack %{optflags} %{O3_flags} -w" \
>   --enable-static \
>   --enable-pic \
>   --enable-strip \
>   --disable-avs \
>   --disable-cli \
>   --disable-ffms \
>   --disable-gpac \
>   --disable-lavf \
>   --disable-opencl \
>   --disable-swscale
> %if %pgo_build
>   make fprofiled VIDS="%{SOURCE4}" %{?_smp_mflags}
> %else
>   make %{?_smp_mflags}
> %endif
> make install
> strip --strip-unneeded --strip-debug
> /rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static/libx264.a
> popd
> # build ffmpeg-static and link with x264-static from previous build
> mkdir generic
> pushd generic
> ../configure \
>   --prefix=%{_prefix}/local \
>   --bindir=%{_prefix}/local/bin \
>   --mandir=%{_prefix}/local/man \
>   --extra-cflags="-I/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static
> %{optflags} %{O3_flags} -flto=%(nproc) -ffat-lto-objects -fwhole-program
> -w" \
>   --extra-ldflags="-I/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static -L/rpmbuild/BUILD/ffmpeg-%{ffmpeg_snapshot}/x264-static -ldl -Wl,--as-needed -Wl,-z,now -Wl,-z,relro %{optflags} %{O3_flags} -flto=%(nproc) -ffat-lto-objects -fwhole-program -pie -fPIE -w" \
>   --ar=gcc-ar \
>   --ranlib=true \
>   --enable-lto \
>   --enable-gpl \
>   --enable-libmp3lame \
>   --enable-libtheora \
>   --enable-libvpx \
>   --enable-libx264 \
>   --enable-libx265 \
>   --enable-nonfree \
>   --enable-openssl \
>   --enable-pic \
>   --enable-runtime-cpudetect \
>   --enable-static \
>   --enable-version3 \
>   --disable-amf \
>   --disable-appkit \
>   --disable-autodetect \
>   --disable-avdevice \
>   --disable-avfoundation \
>   --disable-coreimage \
>   --disable-debug \
>   --disable-devices \
>   --disable-ffplay \
>   --disable-ffprobe \
>   --disable-htmlpages \
>   --disable-hwaccels \
>   --disable-iconv \
>   --disable-libdc1394 \
>   --disable-libfreetype \
>   --disable-libgsm \
>   --disable-libopencore-amrnb \
>   --disable-libopencore-amrwb \
>   --disable-libopencv \
>   --disable-libopenjpeg \
>   --disable-libopus \
>   --disable-librtmp \
>   --disable-libspeex \
>   --disable-libvorbis \
>   --disable-libxcb \
>   --disable-libxcb-shape \
>   --disable-libxcb-shm \
>   --disable-libxcb-xfixes \
>   --disable-libxvid \
>   --disable-podpages \
>   --disable-postproc \
>   --disable-protocol=gopher \
>   --disable-shared \
>   --disable-txtpages \
>   --disable-xlib
> %{__make} %{?_smp_mflags}
> make documentation
> popd
>
> %install
> pushd generic
> make install DESTDIR=%{buildroot}
> popd
> mkdir %{buildroot}%{_bindir}
> ln -s %{_prefix}/local/bin/ffmpeg %{buildroot}%{_bindir}/ffmpeg
> rm -rf %{buildroot}%{_prefix}/local/include
> %{buildroot}%{_prefix}/local/lib %{buildroot}%{_prefix}/local/lib64
> %{buildroot}%{_prefix}/local/share
> strip --strip-unneeded %{buildroot}%{_prefix}/local/bin/ffmpeg
>
> %files
> %{_prefix}/local/bin/ffmpeg
> %{_bindir}/ffmpeg
>
> %files manpages
> %{_prefix}/local/man/man1/*
> %{_prefix}/local/man/man3/*
>
> %changelog
> * Tue Jul 14 2020 Reindl Harald<[hidden email]>
> - update to 4.3.1
hI ? as you might know due to the coronavirus, universities are closed
and in France it is vacation period . I am not a system engineer just a
ffmpeg user . I cannot get system eng support at a present time and do
prepar the september time where we will need visio conférences. I am a
old retired guy "working " in a non profit organisation tight to an
university. I do not have the background you have this is why I tried to
compile in $HOME just to not kill what as been done by "professionnal"
(who are not available to provide support at a present time) . When a
correct install will be done and tested I was planned to redo it in a
normal way.
Presently ffmpeg is running fine and up to date but only the x264 and
ACC are installed and tried to add libvpx and opus as webm seems more
easy to record a streaming live.
I was expected unix install less complicated then I will wait until
system eng will be back from vacation.
You all are doing a great job to support us, but you might undestand
which nobody is fluent in every domains (in my case domains have a lot
of ending sssssss)

again thanks for support and you can close this ticket
regards
Jacky



_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: install on centos fail

Reindl Harald


Am 05.08.20 um 11:08 schrieb jacky renaux:
> hI ? as you might know due to the coronavirus, universities are closed
> and in France it is vacation period .

and?

> I am not a system engineer just a ffmpeg user

and?

> I cannot get system eng support at a present time and do
> prepar the september time where we will need visio conférences. I am a
> old retired guy "working " in a non profit organisation tight to an
> university. I do not have the background you have this is why I tried to
> compile in $HOME just to not kill what as been done by "professionnal"

* my background is learning by doing
* my /usr/local/bin/ffmpeg don't collide with the distri

> (who are not available to provide support at a present time) . When a
> correct install will be done and tested I was planned to redo it in a
> normal way.
> Presently ffmpeg is running fine and up to date but only the x264 and
> ACC are installed and tried to add libvpx and opus as webm seems more
> easy to record a streaming live.

which should be no problem, rpmfusion and epel should have all build
dependencies for CentOS7 and there should be no need to build dozens of
them in the userhome

> I was expected unix install less complicated then I will wait until
> system eng will be back from vacation.
> You all are doing a great job to support us, but you might undestand
> which nobody is fluent in every domains (in my case domains have a lot
> of ending sssssss)

i call https://trac.ffmpeg.org/wiki/CompilationGuide/Centos bullshit

nasm: base repo
yasm: epel repo
x264-devel: rpmfusion repo
x265-devel: rpmfusion repo
libfdk_aac: ffmpeg supports faac native
lame-devel: epel repo
opus-devel: base repo
libvpx-devel: base repo

so what is all that bullshit compiling dependencies left and right in
the userhome on that page about?

> again thanks for support and you can close this ticket

this is a mailing list
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: install on centos fail

Nicolas George
In reply to this post by jackyr
jacky renaux (12020-08-05):
> hI ? as you might know due to the coronavirus, universities are closed and
> in France it is vacation period . I am not a system engineer just a ffmpeg
> user . I cannot get system eng support at a present time and do prepar the
> september time where we will need visio conférences. I am a old retired guy
> "working " in a non profit organisation tight to an university. I do not
> have the background you have this is why I tried to compile in $HOME just to
> not kill what as been done by "professionnal"

I do not see why your status as an old retired guy prevents you from
learning. Quite the opposite, you probably have more time and less
external pressure.

But do not about this particular issue: the advice to build a package is
bad. Installing in $HOME is perfectly fine.

Regards,

--
  Nicolas George

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: install on centos fail

Reindl Harald


Am 05.08.20 um 12:20 schrieb Nicolas George:

> jacky renaux (12020-08-05):
>> hI ? as you might know due to the coronavirus, universities are closed and
>> in France it is vacation period . I am not a system engineer just a ffmpeg
>> user . I cannot get system eng support at a present time and do prepar the
>> september time where we will need visio conférences. I am a old retired guy
>> "working " in a non profit organisation tight to an university. I do not
>> have the background you have this is why I tried to compile in $HOME just to
>> not kill what as been done by "professionnal"
>
> I do not see why your status as an old retired guy prevents you from
> learning. Quite the opposite, you probably have more time and less
> external pressure.
>
> But do not about this particular issue: the advice to build a package is
> bad. Installing in $HOME is perfectly fine.

WTF

whenever you do "make install" on a destinaton machine you are doing it
wrong - without any exceptions!

* you don't need compilers/devel-packages on the target
* you should not install comoilers at all on the target
* you can easily downgrade and upgrade
* you get proper dependency checks

"the advice to build a package is bad" is one of the dumbest things i
heard for a long time

there is no law that a package needs to spit any file into /usr/bin at all

when it comes to dependencies and a random idiot removes a system
package which seems not to be required by anything your holy binary in
$HOME is broken

won't happen with a self built package and technically tehre is not much
difference in writing a random script or a spec file besides that error
in context of rpmbuild become visible
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: install on centos fail

Nicolas George
Reindl Harald (12020-08-05):
> whenever you do "make install" on a destinaton machine you are doing it
> wrong - without any exceptions!

What certainty.

> * you don't need compilers/devel-packages on the target
> * you should not install comoilers at all on the target
> * you can easily downgrade and upgrade
> * you get proper dependency checks

* you can make security updates impossible to install

> "the advice to build a package is bad" is one of the dumbest things i
> heard for a long time

You should really stop your incessant insults.

--
  Nicolas George

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: install on centos fail

Reindl Harald


Am 05.08.20 um 15:16 schrieb Nicolas George:
> Reindl Harald (12020-08-05):
>> whenever you do "make install" on a destinaton machine you are doing it
>> wrong - without any exceptions!
>
> What certainty.

yes, 12 years of expirience, 23 dist-upgrades without reinstall and
still clean machines as if they would have been installed from scratch
prove me right

>> * you don't need compilers/devel-packages on the target
>> * you should not install comoilers at all on the target
>> * you can easily downgrade and upgrade
>> * you get proper dependency checks
>
> * you can make security updates impossible to install

lol - the instalaltion target of /usr is not set in stone! you can still
have the outcome of your package into your hoemdir and copy it by hand

but when you can't make security updates you are anyways not someone who
should install software - admins really love funny guys throwing
binaries here and there which never face any update unless they break

>> "the advice to build a package is bad" is one of the dumbest things i
>> heard for a long time
>
> You should really stop your incessant insults

that was as friendly as possible, when i want to insult you you will
recognize it

installing devel-packages and compilers on production machines is simply
dumb
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".