Name: ffmpeg Version: 3.0 Release: 1%{?dist} Summary: Digital VCR and streaming server License: GPLv3 and LGPLv3 and MIT URL: http://ffmpeg.org/ Source0: https://github.com/FFmpeg/FFmpeg/archive/n%{version}.tar.gz BuildRequires: bzip2-devel BuildRequires: freetype-devel BuildRequires: frei0r-devel BuildRequires: fribidi-devel BuildRequires: game-music-emu-devel BuildRequires: gnutls-devel BuildRequires: gsm-devel BuildRequires: ilbc-devel BuildRequires: jack-audio-connection-kit-devel BuildRequires: ladspa-devel BuildRequires: libass-devel BuildRequires: libbluray-devel BuildRequires: libbs2b-devel BuildRequires: libcaca-devel BuildRequires: libcdio-paranoia-devel BuildRequires: libchromaprint-devel BuildRequires: libdc1394-devel BuildRequires: libgcrypt-devel BuildRequires: libmodplug-devel BuildRequires: libsmbclient-devel BuildRequires: libssh-devel BuildRequires: libtheora-devel BuildRequires: libv4l-devel BuildRequires: libva-devel BuildRequires: libvdpau-devel BuildRequires: libvorbis-devel BuildRequires: libvpx-devel BuildRequires: libwebp-devel BuildRequires: lzma-devel BuildRequires: lzo-devel BuildRequires: mesa-libGL-devel BuildRequires: netcdf-devel BuildRequires: ocl-icd-devel BuildRequires: openal-soft-devel BuildRequires: opencl-headers BuildRequires: opencv-devel BuildRequires: openjpeg2-devel BuildRequires: opus-devel BuildRequires: perl(Pod::Man) BuildRequires: pulseaudio-libs-devel BuildRequires: rubberband-devel BuildRequires: schroedinger-devel BuildRequires: SDL-devel BuildRequires: snappy-devel BuildRequires: soxr-devel BuildRequires: speex-devel BuildRequires: tesseract-devel #BuildRequires: texi2html BuildRequires: texinfo BuildRequires: wavpack-devel %ifarch %{ix86} x86_64 BuildRequires: libcrystalhd-devel BuildRequires: libXvMC-devel BuildRequires: yasm %endif BuildRequires: zeromq-devel BuildRequires: zlib-devel BuildRequires: zvbi-devel #Requires: %%{name}-libavcodec%%{_isa} = %%{version}-%%{release} #Requires: %%{name}-libavdevice%%{_isa} = %%{version}-%%{release} #Requires: %%{name}-libavfilter%%{_isa} = %%{version}-%%{release} #Requires: %%{name}-libavformat%%{_isa} = %%{version}-%%{release} #Requires: %%{name}-libavresample%%{_isa} = %%{version}-%%{release} #Requires: %%{name}-libavutil%%{_isa} = %%{version}-%%{release} #Requires: %%{name}-libpostproc%%{_isa} = %%{version}-%%{release} #Requires: %%{name}-libswresample%%{_isa} = %%{version}-%%{release} #Requires: %%{name}-libswscale%%{_isa} = %%{version}-%%{release} # install prefix /usr # C compiler gcc # C library glibc # big-endian no # runtime cpu detection yes # yasm yes # MMX enabled yes # MMXEXT enabled yes # 3DNow! enabled yes # 3DNow! extended enabled yes # SSE enabled yes # SSSE3 enabled yes # AESNI enabled yes # AVX enabled yes # XOP enabled yes # FMA3 enabled yes # FMA4 enabled yes # i686 features enabled yes # CMOV is fast yes # EBX available yes # EBP available yes # debug symbols no # strip symbols no # optimize for size no # optimizations yes # static no # shared yes # postprocessing support yes # new filter support yes # network support yes # threading support pthreads # safe bitstream reader yes # SDL support yes # opencl enabled yes # texi2html enabled no # perl enabled yes # pod2man enabled yes # makeinfo enabled yes # makeinfo supports HTML yes #Enabled programs: # ffmpeg ffprobe ffserver # ffplay # External libraries: # bzlib libilbc libvpx # chromaprint libmodplug libwavpack # crystalhd libopencv libwebp # frei0r libopenjpeg libxcb # gnutls libopus libxcb_shape # iconv libpulse libxcb_shm # ladspa librubberband libxcb_xfixes # libass libschroedinger libzmq # libbluray libsmbclient libzvbi # libbs2b libsnappy netcdf # libcaca libsoxr openal # libcdio libspeex opencl # libdc1394 libssh opengl # libfreetype libtesseract sdl # libfribidi libtheora xlib # libgme libv4l2 zlib # libgsm libvorbis # Enabled hwaccels: # h263_vaapi mpeg1_xvmc vc1_vaapi # h264_vaapi mpeg2_vaapi vc1_vdpau # h264_vdpau mpeg2_vdpau vp9_vaapi # hevc_vaapi mpeg2_xvmc wmv3_vaapi # hevc_vdpau mpeg4_vaapi wmv3_vdpau # mpeg1_vdpau mpeg4_vdpau # License: GPL version 3 or later # NOT SUPPORTED # --enable-libcelt enable CELT decoding via libcelt >= 0.11.0 # --enable-libflite enable flite (voice synthesis) support via libflite -lflite_cmu_us_awb # --enable-libiec61883 enable iec61883 via libiec61883 # --enable-openssl enable openssl, needed for https support # NOT AVAILABLE # --enable-avisynth enable reading of AviSynth script files # --enable-decklink enable Blackmagic DeckLink I/O support # --enable-libdcadec enable DCA decoding via libdcadec >= 0.1.0 https://github.com/foo86/dcadec # --enable-libfaac enable AAC encoding via libfaac # --enable-libfdk-aac enable AAC de/encoding via libfdk-aac https://github.com/mstorsjo/fdk-aac/ # --enable-libkvazaar enable HEVC encoding via libkvazaar >= 0.8.1 https://github.com/ultravideo/kvazaar # --enable-libmfx enable HW acceleration through libmfx https://github.com/lu-zero/mfx_dispatch ? # --enable-libmp3lame enable MP3 encoding via libmp3lame >= 3.98.3 # --enable-libnut enable NUT (de)muxing via libnut, native (de)muxer exists https://github.com/Distrotech/libnut # --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb # --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb # --enable-libopenh264 enable H.264 encoding via OpenH264 # --enable-librtmp enable RTMP[E] support via librtmp # --enable-libshine enable fixed-point MP3 encoding via libshine http://sourceforge.net/projects/savonet/files/shine # --enable-libtwolame enable MP2 encoding via libtwolame # --enable-libutvideo enable Ut Video encoding and decoding via libutvideo https://github.com/qyot27/libutvideo # --enable-libvidstab enable video stabilization using vid.stab >= 0.98 # --enable-libvo-amrwbenc enable AMR-WB encoding via libvo-amrwbenc # --enable-libx264 enable H.264 encoding via x264 # --enable-libx265 enable HEVC encoding via x265 # --enable-libxavs enable AVS encoding via xavs http://xavs.sourceforge.net/ # --enable-libxvid enable Xvid encoding via xvidcore, native MPEG-4/Xvid encoder exists http://www.xvid.org/ # --enable-libzimg enable z.lib, needed for zscale filter https://github.com/sekrit-twc/zimg # --enable-mmal enable decoding via MMAL # --enable-nvenc enable NVIDIA NVENC support # --enable-videotoolbox enable VideoToolbox code %description FFmpeg is a complete and free Internet live audio and video broadcasting solution for Linux/Unix. It also includes a digital VCR. It can encode in real time in many formats including MPEG1 audio and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash. %package libavcodec Summary: FFmpeg library implementing various Audio/Video codecs %description libavcodec The libavcodec library provides a generic encoding/decoding framework and contains multiple decoders and encoders for audio, video and subtitle streams, and several bitstream filters. The shared architecture provides various services ranging from bit stream I/O to DSP optimizations, and makes it suitable for implementing robust and fast codecs as well as for experimentation. %package libavcodec-devel Summary: Development package for FFmpeg libavcodec Requires: %{name}-libavcodec%{_isa} = %{version}-%{release} %description libavcodec-devel This package contains the header files and static libraries needed to compile applications or shared objects that use FFmpeg libavcodec. %package libavdevice Summary: FFmpeg devices muxing/demuxing library %description libavdevice The libavdevice library provides a generic framework for grabbing from and rendering to many common multimedia input/output devices, and supports several input and output devices, including Video4Linux2, VfW, DShow, and ALSA. %package libavdevice-devel Summary: Development package for FFmpeg libavdevice Requires: %{name}-libavdevice%{_isa} = %{version}-%{release} %description libavdevice-devel This package contains the header files and static libraries needed to compile applications or shared objects that use FFmpeg libavdevice. %package libavfilter Summary: FFmpeg filtering library %description libavfilter The libavfilter library provides a generic audio/video filtering framework containing several filters, sources and sinks. %package libavfilter-devel Summary: Development package for FFmpeg libavfilter Requires: %{name}-libavfilter%{_isa} = %{version}-%{release} %description libavfilter-devel This package contains the header files and static libraries needed to compile applications or shared objects that use FFmpeg libavfilter. %package libavformat Summary: FFmpeg format library %description libavformat The libavformat library provides a generic framework for multiplexing and demultiplexing (muxing and demuxing) audio, video and subtitle streams. It encompasses multiple muxers and demuxers for multimedia container formats. It also supports several input and output protocols to access a media resource. %package libavformat-devel Summary: Development package for FFmpeg libavformat Requires: %{name}-libavformat%{_isa} = %{version}-%{release} %description libavformat-devel This package contains the header files and static libraries needed to compile applications or shared objects that use FFmpeg libavformat. %package libavresample Summary: FFmpeg resample library %description libavresample FFmpeg resample library. %package libavresample-devel Summary: Development package for FFmpeg libavresample Requires: %{name}-libavresample%{_isa} = %{version}-%{release} %description libavresample-devel This package contains the header files and static libraries needed to compile applications or shared objects that use FFmpeg libavresample. %package libavutil Summary: FFmpeg utility library %description libavutil The libavutil library is a utility library to aid portable multimedia programming. It contains safe portable string functions, random number generators, data structures, additional mathematics functions, cryptography and multimedia related functionality (like enumerations for pixel and sample formats). It is not a library for code needed by both libavcodec and libavformat. %package libavutil-devel Summary: Development package for FFmpeg libavutil Requires: %{name}-libavutil%{_isa} = %{version}-%{release} %description libavutil-devel This package contains the header files and static libraries needed to compile applications or shared objects that use FFmpeg libavutil. %package libpostproc Summary: FFmpeg video postprocessing library %description libpostproc This package contains only FFmpeg's postproc post-processing library which other projects such as transcode may use. Install this package if you intend to use MPlayer, transcode or other similar programs. %package libpostproc-devel Summary: Development package for FFmpeg libpostproc Requires: %{name}-libpostproc%{_isa} = %{version}-%{release} %description libpostproc-devel This package contains the header files and static libraries needed to compile applications or shared objects that use FFmpeg libpostproc. %package libswresample Summary: FFmpeg resampling library %description libswresample The libswresample library performs highly optimized audio resampling, rematrixing and sample format conversion operations. %package libswresample-devel Summary: Development package for FFmpeg libswresample Requires: %{name}-libswresample%{_isa} = %{version}-%{release} %description libswresample-devel This package contains the header files and static libraries needed to compile applications or shared objects that use FFmpeg libswresample. %package libswscale Summary: FFmpeg video scaling library %description libswscale The libswscale library performs highly optimized image scaling and colorspace and pixel format conversion operations. %package libswscale-devel Summary: Development package for FFmpeg libswscale Requires: %{name}-libswscale%{_isa} = %{version}-%{release} %description libswscale-devel This package contains the header files and static libraries needed to compile applications or shared objects that use FFmpeg libswscale. %package doc Summary: Documentation for FFmpeg %description doc This package contains documentation for FFmpeg. %package examples Summary: FFmpeg coding examples %description examples FFmpeg coding examples. %package presets Summary: Preset configuration files used by libavcodec %description presets Preset configuration files used by libavcodec. %prep %setup -q -n FFmpeg-n%{version} # fix -O3 -g in host_cflags sed -i "s|-O3 -g|%{optflags}|" configure %build ./configure \ --arch=%{_target_cpu} \ --bindir=%{_bindir} \ --datadir=%{_datadir}/%{name} \ --incdir=%{_includedir}/%{name} \ --prefix="%{_prefix}" \ --libdir="%{_libdir}" \ --mandir="%{_mandir}" \ --optflags="%{optflags}" \ --shlibdir="%{_libdir}" \ --enable-pic \ --enable-shared \ --enable-pthreads \ --enable-gpl \ --enable-version3 \ --disable-debug \ --disable-static \ --disable-stripping \ %ifarch %{ix86} --cpu=%{_target_cpu} \ %endif %ifarch %{ix86} x86_64 ppc ppc64 --enable-runtime-cpudetect \ %endif %ifarch ppc --cpu=g3 \ %endif %ifarch ppc64 --cpu=g5 \ %endif %ifarch %{arm} --arch=arm \ --disable-runtime-cpudetect \ %ifarch armv6hl --cpu=armv6 \ %else --enable-thumb \ %endif %ifarch armv7hnl --enable-neon \ %endif %endif --enable-avresample \ --enable-postproc \ --enable-swscale \ --enable-swresample \ --enable-bzlib \ --enable-chromaprint \ --enable-frei0r \ --enable-gnutls \ --enable-libgsm \ --enable-ladspa \ --enable-libass \ --enable-libbluray \ --enable-libbs2b \ --enable-libcaca \ --enable-libcdio \ --enable-libdc1394 \ --enable-libfreetype \ --enable-libfribidi \ --enable-libgme \ --enable-libilbc \ --enable-libmodplug \ --enable-libopencv \ --enable-libopenjpeg \ --enable-libopus \ --enable-libpulse \ --enable-librubberband \ --enable-libschroedinger \ --enable-libsmbclient \ --enable-libsnappy \ --enable-libsoxr \ --enable-libspeex \ --enable-libssh \ --enable-libtesseract \ --enable-libtheora \ --enable-libv4l2 \ --enable-libvorbis \ --enable-libvpx \ --enable-libwavpack \ --enable-libwebp \ --enable-libzmq \ --enable-libzvbi \ --enable-netcdf \ --enable-openal \ --enable-opencl \ --enable-opengl \ --enable-x11grab \ make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} find %{buildroot} -name '*.a' -delete find %{buildroot} -name '*.la' -delete %files %{_bindir}/ffmpeg %{_bindir}/ffplay %{_bindir}/ffprobe %{_bindir}/ffserver %dir %{_datadir}/ffmpeg %{_datadir}/ffmpeg/ffprobe.xsd %{_mandir}/man1/ffmpeg-all.1.gz %{_mandir}/man1/ffmpeg-bitstream-filters.1.gz %{_mandir}/man1/ffmpeg-codecs.1.gz %{_mandir}/man1/ffmpeg-devices.1.gz %{_mandir}/man1/ffmpeg-filters.1.gz %{_mandir}/man1/ffmpeg-formats.1.gz %{_mandir}/man1/ffmpeg-protocols.1.gz %{_mandir}/man1/ffmpeg-resampler.1.gz %{_mandir}/man1/ffmpeg-scaler.1.gz %{_mandir}/man1/ffmpeg-utils.1.gz %{_mandir}/man1/ffmpeg.1.gz %{_mandir}/man1/ffplay-all.1.gz %{_mandir}/man1/ffplay.1.gz %{_mandir}/man1/ffprobe-all.1.gz %{_mandir}/man1/ffprobe.1.gz %{_mandir}/man1/ffserver-all.1.gz %{_mandir}/man1/ffserver.1.gz %doc CREDITS README.md doc/ffserver.conf RELEASE RELEASE_NOTES %license COPYING.* LICENSE.md %post libavcodec -p /sbin/ldconfig %postun libavcodec -p /sbin/ldconfig %files libavcodec %{_libdir}/libavcodec.so.* %license COPYING.* LICENSE.md %files libavcodec-devel %{_includedir}/ffmpeg/libavcodec %{_libdir}/libavcodec.so %{_libdir}/pkgconfig/libavcodec.pc %{_mandir}/man3/libavcodec.3.gz %post libavdevice -p /sbin/ldconfig %postun libavdevice -p /sbin/ldconfig %files libavdevice %{_libdir}/libavdevice.so.* %license COPYING.* LICENSE.md %files libavdevice-devel %{_includedir}/ffmpeg/libavdevice %{_libdir}/libavdevice.so %{_libdir}/pkgconfig/libavdevice.pc %{_mandir}/man3/libavdevice.3.gz %post libavfilter -p /sbin/ldconfig %postun libavfilter -p /sbin/ldconfig %files libavfilter %{_libdir}/libavfilter.so.* %license COPYING.* LICENSE.md %files libavfilter-devel %{_includedir}/ffmpeg/libavfilter %{_libdir}/libavfilter.so %{_libdir}/pkgconfig/libavfilter.pc %{_mandir}/man3/libavfilter.3.gz %post libavformat -p /sbin/ldconfig %postun libavformat -p /sbin/ldconfig %files libavformat %{_libdir}/libavformat.so.* %license COPYING.* LICENSE.md %files libavformat-devel %{_includedir}/ffmpeg/libavformat %{_libdir}/libavformat.so %{_libdir}/pkgconfig/libavformat.pc %{_mandir}/man3/libavformat.3.gz %post libavresample -p /sbin/ldconfig %postun libavresample -p /sbin/ldconfig %files libavresample %{_libdir}/libavresample.so.* %license COPYING.* LICENSE.md %files libavresample-devel %{_includedir}/ffmpeg/libavresample %{_libdir}/libavresample.so %{_libdir}/pkgconfig/libavresample.pc %post libavutil -p /sbin/ldconfig %postun libavutil -p /sbin/ldconfig %files libavutil %{_libdir}/libavutil.so.* %license COPYING.* LICENSE.md %files libavutil-devel %{_includedir}/ffmpeg/libavutil %{_libdir}/libavutil.so %{_libdir}/pkgconfig/libavutil.pc %{_mandir}/man3/libavutil.3.gz %post libpostproc -p /sbin/ldconfig %postun libpostproc -p /sbin/ldconfig %files libpostproc %{_libdir}/libpostproc.so.* %license COPYING.* LICENSE.md %files libpostproc-devel %{_includedir}/ffmpeg/libpostproc %{_libdir}/libpostproc.so %{_libdir}/pkgconfig/libpostproc.pc %post libswscale -p /sbin/ldconfig %postun libswscale -p /sbin/ldconfig %files libswscale %{_libdir}/libswscale.so.* %license COPYING.* LICENSE.md %files libswscale-devel %{_includedir}/ffmpeg/libswscale %{_libdir}/libswscale.so %{_libdir}/pkgconfig/libswscale.pc %{_mandir}/man3/libswscale.3* %post libswresample -p /sbin/ldconfig %postun libswresample -p /sbin/ldconfig %files libswresample %{_libdir}/libswresample.so.* %license COPYING.* LICENSE.md %files libswresample-devel %{_includedir}/ffmpeg/libswresample %{_libdir}/libswresample.so %{_libdir}/pkgconfig/libswresample.pc %{_mandir}/man3/libswresample.3* %files presets %{_datadir}/ffmpeg/libvpx-*.ffpreset %license COPYING.* LICENSE.md %files doc %dir %{_docdir}/ffmpeg %{_docdir}/ffmpeg/*.html %license COPYING.* LICENSE.md %files examples %{_datadir}/ffmpeg/examples %license COPYING.* LICENSE.md %changelog * Wed Feb 24 2016 gil cattaneo 3.0-1 - initial rpm