Compiling FFMpeg

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling FFMpeg

Simon Brown
I want to compile the latest git head on my Raspberry pi.  The Pi comes
with a packaged version of ffmpeg with a huge config list of what is and
isn't enabled.  Is there a simple way of using this config for the
./configure stage so that I don't have to type the whole lot in?

Cheers,
Simon
_______________________________________________
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: Compiling FFMpeg

Reindl Harald


Am 15.01.21 um 11:01 schrieb Simon Brown:
> I want to compile the latest git head on my Raspberry pi.  The Pi comes
> with a packaged version of ffmpeg with a huge config list of what is and
> isn't enabled.  Is there a simple way of using this config for the
> ./configure stage so that I don't have to type the whole lot in?

where is the problem doing simply copy&paste?
./configure <paste>

[harry@srv-rhsoft:~]$ ffmpeg
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
   built with gcc 10 (GCC)
   configuration: --prefix=/usr/local --bindir=/usr/local/bin
--mandir=/usr/local/man
--extra-cflags='-I/rpmbuild/BUILD/ffmpeg-20200714/x264-static -m64 -O2
-g0 -march=sandybridge -mtune=sandybridge -mfpmath=sse -msse2avx
-ftree-slp-vectorize -fopenmp -pipe -fno-strict-aliasing
-fomit-frame-pointer -fexceptions -fno-asynchronous-unwind-tables
-fstack-protector-strong --param=ssp-buffer-size=6
-Wp,-D_FORTIFY_SOURCE=2 -w -Wformat -Werror=format-security -fPIC -O3
-fno-strict-aliasing -fno-tree-vectorize -ftree-slp-vectorize
-fno-gcse-after-reload -fno-inline-functions -fno-ipa-cp
-fno-ipa-cp-clone -fno-peel-loops -fno-predictive-commoning
-fno-tree-loop-distribute-patterns -fno-unswitch-loops -flto=8
-fwhole-program -w'
--extra-ldflags='-I/rpmbuild/BUILD/ffmpeg-20200714/x264-static
-L/rpmbuild/BUILD/ffmpeg-20200714/x264-static -ldl -Wl,--as-needed
-Wl,-z,now -Wl,-z,relro -m64 -O2 -g0 -march=sandybridge
-mtune=sandybridge -mfpmath=sse -msse2avx -ftree-slp-vectorize -fopenmp
-pipe -fno-strict-aliasing -fomit-frame-pointer -fexceptions
-fno-asynchronous-unwind-tables -fstack-protector-strong
--param=ssp-buffer-size=6 -Wp,-D_FORTIFY_SOURCE=2 -w -Wformat
-Werror=format-security -fPIC -O3 -fno-strict-aliasing
-fno-tree-vectorize -ftree-slp-vectorize -fno-gcse-after-reload
-fno-inline-functions -fno-ipa-cp -fno-ipa-cp-clone -fno-peel-loops
-fno-predictive-commoning -fno-tree-loop-distribute-patterns
-fno-unswitch-loops -flto=8 -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
_______________________________________________
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: Compiling FFMpeg

Simon Brown
>
>
>
> where is the problem doing simply copy&paste?
> ./configure <paste>
>
>
> None - thank you.  I copied to file and then input from file to
./configure in the end.  But it's the obvious answer.  Thanks for replying.
_______________________________________________
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: Compiling FFMpeg

Carl Eugen Hoyos-2
In reply to this post by Reindl Harald
Am Fr., 15. Jan. 2021 um 11:29 Uhr schrieb Reindl Harald
<[hidden email]>:

>    configuration: --prefix=/usr/local --bindir=/usr/local/bin
> --mandir=/usr/local/man
> --extra-cflags=

Since other people may read this:
Generally, extra-*flags should only be used if really necessary,
the configure line in question looks very broken.

Carl Eugen
_______________________________________________
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: Compiling FFMpeg

Reindl Harald


Am 17.01.21 um 22:39 schrieb Carl Eugen Hoyos:

> Am Fr., 15. Jan. 2021 um 11:29 Uhr schrieb Reindl Harald
> <[hidden email]>:
>
>>     configuration: --prefix=/usr/local --bindir=/usr/local/bin
>> --mandir=/usr/local/man
>> --extra-cflags=
>
> Since other people may read this:
> Generally, extra-*flags should only be used if really necessary,
> the configure line in question looks very broken

you repeat that bullshit now for nearly a decade....
what is broken and why?
_______________________________________________
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: Compiling FFMpeg

Bryce McLeod
They don't necessarily "break" it for gcc but the fact that there are
repeated flags (eg. -w,-ftree-slp-vectorize, -fno-strict-aliasing),
seemingly redundant (-ftree-slp-vectorize after -O3) and
apparently conflicting options (eg. both -O2 and -O3) indicates it should
at least be reviewed.
_______________________________________________
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".