Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save LuisPalacios/357bf48a56cc43b030b66ad3e04909cf to your computer and use it in GitHub Desktop.
Save LuisPalacios/357bf48a56cc43b030b66ad3e04909cf to your computer and use it in GitHub Desktop.
configure con la opción `--enable-qsv` que provoca que se instalen ffmpeg con las opciones que necesitamos
# mkdir /root/github_tvh
# cd github_tvh
# git clone https://github.com/tvheadend/tvheadend.git
# cd tvheadend
# pwd
/root/github_tvh/tvheadend
# ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info \
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --prefix=/usr --datadir=/usr/share --enable-qsv
Checking support/features
  checking for cc execinfo.h ...                    ok
  checking for cc -mmmx ...                         ok
  checking for cc -msse2 ...                        ok
  checking for cc -Wunused-result ...               ok
  checking for cc getloadavg ...                    ok
  checking for cc atomic64 ...                      ok
  checking for cc atomic_time_t ...                 ok
  checking for cc lockowner ...                     ok
  checking for cc qsort_r ...                       ok
  checking for cc stime ...                         ok
  checking for cc gmtoff ...                        ok
  checking for cc recvmmsg ...                      ok
  checking for cc sendmmsg ...                      ok
  checking for cc libiconv ...                      fail
  checking for cc libdvben50221 ...                 ok
  checking for cc ifnames ...                       ok
  checking for py module gzip ...                   ok
  checking for pkg-config ...                       ok
  checking for xgettext ...                         ok
  checking for msgmerge ...                         ok
  checking for gzip ...                             ok
  checking for bzip2 ...                            ok
  checking for pkg openssl  ...                     ok (detected 1.0.2h)
  checking for cc linux/dvb/version.h ...           ok
  checking for pkg zlib  ...                        ok (detected 1.2.8)
  checking for pkg liburiparser  ...                ok (detected 0.8.0)
  checking for pkg avahi-client  ...                ok (detected 0.6.32)
  checking for cmake ...                            ok
  checking for cc -lstdc++ ...                      ok
  checking for cc nvEncodeAPI.h ...                 fail
  checking for autoreconf ...                       ok
  checking for libtool ...                          ok
  checking for libtoolize ...                       ok
  checking for cc -lstdc++ ...                      ok
  checking for pkg libva >=0.38.0 ...               ok (detected 0.39.2)
  checking for pkg libva-x11 >=0.38.0 ...           ok (detected 0.39.2)
  checking for pkg libva-drm >=0.38.0 ...           ok (detected 0.39.2)
  checking for cc sys/inotify.h ...                 ok
  fetching dvb-scan files ...                       ok
  checking for pkg dbus-1  ...                      ok (detected 1.10.8)
Compiler:
  Using C compiler:                        cc
  Using LD flags:                           -ldvben50221 -ldvbapi -lucsi
  Build for arch:                          x86_64
Binaries:
  Using PYTHON:                            python
  Using GZIP:                              gzip
  Using BZIP2:                             bzip2
Options:
  pie                                      yes
  ccdebug                                  no
  cwc                                      yes
  capmt                                    yes
  constcw                                  yes
  linuxdvb                                 yes
  satip_server                             yes
  satip_client                             yes
  hdhomerun_client                         yes
  hdhomerun_static                         yes
  iptv                                     yes
  tsfile                                   yes
  dvbscan                                  yes
  timeshift                                yes
  trace                                    yes
  imagecache                               yes
  avahi                                    yes
  zlib                                     yes
  libav                                    yes
  ffmpeg_static                            yes
  libx264                                  yes
  libx264_static                           yes
  libx265                                  yes
  libx265_static                           yes
  libvpx                                   yes
  libvpx_static                            yes
  libtheora                                yes
  libtheora_static                         yes
  libvorbis                                yes
  libvorbis_static                         yes
  libfdkaac                                yes
  libfdkaac_static                         yes
  nvenc                                    no
  qsv                                      yes
  libmfx_static                            yes
  inotify                                  yes
  epoll                                    yes
  uriparser                                yes
  ccache                                   no
  tvhcsa                                   yes
  bundle                                   no
  dvbcsa                                   no
  dvben50221                               yes
  kqueue                                   no
  dbus_1                                   yes
  android                                  no
  tsdebug                                  no
  gtimer_check                             no
  slow_memoryinfo                          no
  libsystemd_daemon                        no
  bintray_cache                            yes
  execinfo                                 yes
  mmx                                      yes
  sse2                                     yes
  W_unused_result                          yes
  getloadavg                               yes
  atomic64                                 yes
  atomic_time_t                            yes
  lockowner                                yes
  qsort_r                                  yes
  stime                                    yes
  gmtoff                                   yes
  recvmmsg                                 yes
  sendmmsg                                 yes
  libdvben50221                            yes
  ifnames                                  yes
  py_gzip                                  yes
  bin_pkg_config                           yes
  bin_xgettext                             yes
  bin_msgmerge                             yes
  bin_gzip                                 yes
  bin_bzip2                                yes
  ssl                                      yes
  linuxdvbapi                              yes
  upnp                                     yes
  bin_cmake                                yes
  stdcpp                                   yes
  libogg_static                            yes
  bin_autoreconf                           yes
  bin_libtool                              yes
  bin_libtoolize                           yes
  vaapi                                    yes
  inotify_h                                yes
  linuxdvb_ca                              yes
  mpegts                                   yes
  mpegts_dvb                               yes
Packages:
  openssl                                  1.0.2h
  zlib                                     1.2.8
  liburiparser                             0.8.0
  avahi-client                             0.6.32
  libva                                    0.39.2
  libva-x11                                0.39.2
  libva-drm                                0.39.2
  dbus-1                                   1.10.8
Installation paths:
  Prefix:                                  /usr
  Binaries:                                ${prefix}/bin
  Libraries:                               /usr/lib64
  Data files:                              /usr/share
  Man pages:                               /usr/share/man
Final Binary:
  /root/github_tvh/tvheadend/build.linux/tvheadend
Tvheadend Data Directory:
  /usr/share/tvheadend
# make
Se baja y compila yasm 1.3.0
Se baja y compila x264 desde el proyecto videolan
Se baja y compila x265 desde el proyecto videolan
Se baja y compila libvpx
Se baja y compila libogg
Se baja y compila libtheora
Se baja y compila libvorbis
Se baja y compila fdk-aac
Se baja y compila mfx_dispatch
Se baja y compila el ffmpeg (3.1)
FFMEG LO COMPILA CON ESTAS OPCIONES:
./configure --prefix=/ffmpeg --enable-static --disable-shared \
    --disable-all \
    --enable-gpl \
    --extra-cflags="-I/root/git/tvheadend/build.linux/ffmpeg/build/ffmpeg/include -fPIE" \
    --extra-libs="-L/root/git/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib -ldl" \
    --pkg-config="/root/git/tvheadend/support/pkg-config.ffmpeg" \
    --enable-avutil --enable-avcodec --enable-avformat --enable-swscale --enable-avresample --enable-swresample --enable-avfilter \
    --enable-libx264 --enable-libx265 --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libfdk-aac --enable-vaapi --enable-libmfx --enable-nonfree \
    --enable-protocol=file \
    --enable-decoder=mpeg2video --enable-decoder=mp2 --enable-decoder=aac --enable-decoder=vorbis --enable-decoder=ac3 --enable-decoder=eac3 --enable-decoder=aac_latm --enable-decoder=h264 --enable-decoder=hevc --enable-decoder=libvorbis --enable-decoder=mpeg2_qsv --enable-decoder=h264_qsv --enable-decoder=hevc_qsv \
    --enable-encoder=mpeg2video --enable-encoder=mp2 --enable-encoder=aac --enable-encoder=vorbis --enable-encoder=libx264 --enable-encoder=libx265 --enable-encoder=libvpx_vp8 --enable-encoder=libvpx_vp9 --enable-encoder=libtheora --enable-encoder=libvorbis --enable-encoder=libfdk_aac --enable-encoder=h264_vaapi --enable-encoder=hevc_vaapi --enable-encoder=mpeg2_qsv --enable-encoder=h264_qsv --enable-encoder=hevc_qsv \
    --enable-muxer=mpegts --enable-muxer=mpeg2dvd --enable-muxer=matroska --enable-muxer=webm --enable-muxer=mp4 --enable-muxer=ogg \
    --enable-bsf=h264_mp4toannexb --enable-bsf=hevc_mp4toannexb \
    --enable-filter=yadif --enable-filter=scale --enable-filter=null --enable-filter=aresample --enable-filter=anull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment