[Cin] Cin-GG git fails to fetch ffmpeg.git if requested

Andrew Randrianasulu randrianasulu at gmail.com
Sun May 12 13:30:53 CEST 2019


Hello, 

I was about to try --with-ffmpeg-git configure option, but found it not working ....

------------
root at slax:/home/guest/botva/src/cinelerra-git/cin-5# TMP=/dev/shm/tmp setarch i686 ./cinelerra-goodguy.SlackBuild
Клонирование в «cinelerra-goodguy-20190512»…
remote: Counting objects: 10381, done.
remote: Compressing objects: 100% (7640/7640), done.
remote: Total 10381 (delta 2823), reused 9565 (delta 2585)
Получение объектов: 100% (10381/10381), 127.52 MiB | 889.00 KiB/s, готово.
Определение изменений: 100% (2823/2823), готово.
Проверка патча cinelerra-5.1/libzmpeg3/Makefile…
Часть #1 успешно применена на 77 (со сдвигом в 2 строки).
Проверка патча cinelerra-5.1/mpeg2enc/Makefile…
Часть #1 успешно применена на 54 (со сдвигом в 2 строки).
Проверка патча cinelerra-5.1/mplexlo/Makefile…
Часть #1 успешно применена на 11 (со сдвигом в 2 строки).
Патч cinelerra-5.1/libzmpeg3/Makefile применен без ошибок.
Патч cinelerra-5.1/mpeg2enc/Makefile применен без ошибок.
Патч cinelerra-5.1/mplexlo/Makefile применен без ошибок.
Проверка патча cinelerra-5.1/cinelerra/Makefile…
Часть #1 успешно применена на 416 (со сдвигом в 33 строки).
Часть #2 успешно применена на 491 (со сдвигом в 33 строки).
Патч cinelerra-5.1/cinelerra/Makefile применен без ошибок.
Проверка патча cinelerra-5.1/db/utils/Makefile…
Часть #1 успешно применена на 7 (со сдвигом в 2 строки).
Часть #2 успешно применена на 52 (со сдвигом в 6 строк).
Проверка патча cinelerra-5.1/db/utils/xtv.C…
Патч cinelerra-5.1/db/utils/Makefile применен без ошибок.
Патч cinelerra-5.1/db/utils/xtv.C применен без ошибок.
patching file cinelerra/main.C
Hunk #1 succeeded at 147 with fuzz 2 (offset 30 lines).
Проверка патча cinelerra-5.1/configure.ac…
Часть #1 успешно применена на 321 (со сдвигом в 56 строк).
Часть #2 успешно применена на 369 (со сдвигом в 56 строк).
Патч cinelerra-5.1/configure.ac применен без ошибок.
patching file configure.ac
patching file configure.ac
+ rm -f global_config configure Makefile Makefile.in
+ rm -f aclocal.m4 depcomp compile install-sh ltmain.sh
+ rm -f config.log config.guess config.h config.h.in config.sub config.status missing
+ rm -rf autom4te.cache m4
+ '[' '' = clean ']'
+ mkdir m4
+ autoreconf --install
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:9:   run info Automake 'Extending aclocal'
/usr/share/aclocal/imlib.m4:9:   or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.ac:6: installing './compile'
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
configure: WARNING: unrecognized options: --with-opus
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... ccache gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether ccache gcc accepts -g... yes
checking for ccache gcc option to accept ISO C89... none needed
checking whether ccache gcc understands -c and -o together... yes
checking dependency style of ccache gcc... none
checking dependency style of ccache gcc... none
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for gtk_init in -lm... yes
ls: cannot access '/usr/lib64': No such file or directory
checking for nasm... yes
checking nasm x264 compatible... yes
checking for yasm... yes
checking for objcopy... yes
checking for pactl... no
checking whether X_HAVE_UTF8_STRING is declared... yes
checking for XOpenDisplay in -lX11... yes
checking for X11/X.h... yes
checking X11 headers... yes
checking for X11/keysym.h... yes
checking X11 headers... yes
checking for XShmQueryExtension in -lXext... yes
checking for X11/Xlib.h... yes
checking Xlib XShm extention... yes
checking for XineramaQueryExtension in -lXinerama... yes
checking for X11/extensions/Xinerama.h... yes
checking Xinerama headers... yes
checking for XvQueryExtension in -lXv... yes
checking for X11/Xlib.h... (cached) yes
checking Xlib Xv extention... yes
checking for XFixesQueryVersion in -lXfixes... yes
checking for BZ2_bzDecompress in -lbz2... yes
checking for FcInit in -lfontconfig... yes
checking for FT_Init_FreeType in -lfreetype... yes
checking for lzma_version_number in -llzma... yes
checking for png_read_png in -lpng... yes
checking for pthread_create in -lpthread... yes
checking for gzopen in -lz... yes
checking for fftw_execute in -lfftw3... yes
checking for fftw3.h... yes
checking fftw headers... yes
checking for uuid/uuid.h... yes
checking uuid headers... yes
checking for linux/cdrom.h... yes
checking linux cdrom headers... yes
checking for sys/ioctl.h... yes
checking linux sys... yes
checking for FLAC__stream_decoder_new in -lFLAC... yes
checking for FLAC/stream_decoder.h... yes
checking FLAC headers... yes
checking for lame_init in -lmp3lame... yes
checking for lame/lame.h... yes
checking lame headers... yes
checking for jpeg_start_decompress in -ljpeg... yes
checking for stdio.h... yes
checking jpeg headers... yes
checking for ogg_stream_init in -logg... yes
checking for ogg/ogg.h... yes
checking ogg headers... yes
checking for opj_version in -lopenjp2... yes
checking for openjpeg.h... yes
checking openjpeg headers... yes
checking for sf_open in -lsndfile... yes
checking for sndfile.h... yes
checking sndfile headers... yes
checking for ImfOpenInputFile in -lIlmImf... no
checking for theora_info_init in -ltheora... yes
checking for theora/theoraenc.h... yes
checking threora headers... yes
checking for vorbis_encode_init in -lvorbisenc... yes
checking for vorbis/vorbisenc.h... yes
checking vorbis encoders headers... yes
checking for ov_open in -lvorbisfile... yes
checking for vorbis/vorbisfile.h... yes
checking vorbis file headers... yes
checking for vpx/vpx_decoder.h... yes
checking vpx headers... yes
checking for mjpegtools/mjpeg_types.h... yes
checking mjpegtools headers... yes
checking for TIFFOpen in -ltiff... yes
checking for tiff.h... yes
checking tiff headers... yes
checking for twolame_encode_buffer_float32_interleaved in -ltwolame... yes
checking for twolame.h... yes
checking twolame headers... yes
checking for x264_encoder_encode in -lx264... yes
checking for stdint.h... yes
checking x264 headers... yes
checking for x265_encoder_encode in -lx265... yes
checking for x265.h... yes
checking x265 headers... yes
checking for opus/opus_multistream.h... yes
checking libopus headers... yes
checking for aom_codec_version in -laom... no
checking for WebPGetEncoderVersion in -lwebp... yes
checking for webp/encode.h... yes
checking libwebp headers... yes
checking for a52.h... no
checking a52 headers... no
checking for encore.h... no
checking encore headers... no
checking for gif_lib.h... yes
checking gif lib headers... yes
checking for jbg_dec_init in -ljbig... no
checking for vdp_device_create_x11 in -lvdpau... yes
checking for vaInitialize in -lva... yes
checking for va/va_x11.h... yes
checking va x11 headers... yes
checking for vaGetDisplay in -lva-x11... yes
checking for va/va_drm.h... yes
checking va drm headers... yes
checking for vaGetDisplayDRM in -lva-drm... yes
checking for glUseProgram in -lGL... yes
checking for gluOrtho2D in -lGLU... yes
checking for GL/gl.h... yes
checking opengl headers... yes
checking for sys/soundcard.h... yes
checking oss headers... yes
checking for XftInit in -lXft... yes
checking for X11/Xlib.h... (cached) yes
checking Xft/freetype headers... yes
checking for snd_pcm_open in -lasound... yes
checking for alsa/asoundlib.h... yes
checking asound headers... yes
checking for avc1394_init_target in -lavc1394... yes
checking for libavc1394/avc1394.h... yes
checking libavc1394 headers... yes
checking for rom1394_get_bus_id in -lrom1394... yes
checking for libavc1394/rom1394.h... yes
checking librom1394 headers... yes
checking for iec61883_mpeg2_recv_init in -liec61883... yes
checking for libiec61883/iec61883.h... yes
checking libiec61883 headers... yes
checking for raw1394_iso_recv_init in -lraw1394... yes
checking for libraw1394/raw1394.h... yes
checking libraw1394 headers... yes
checking for dv_init in -ldv... yes
checking for libdv/dv.h... yes
checking libdv headers... yes
checking for linux/dvb/dmx.h... yes
checking dvb device headers... yes
checking for linux/kernel.h... yes
checking v4l2 system headers... yes
checking for X11/Xlib.h... (cached) yes
checking XF86VM headers... yes
checking for esd.h... yes
checking esound headers... yes
checking for audiofile.h... yes
checking audiofile headers... yes
checking for X11/keysymdef.h... yes
checking x11 keysym defs... yes
checking for libusb_init in -lusb-1.0... yes
checking for libusb-1.0/libusb.h... yes
checking libusb headers... yes
checking for lilv_world_new in -llilv-0... no
checking for sord_world_new in -lsord-0... no
checking for serd_reader_new in -lserd-0... no
checking for sratom_new in -lsratom-0... no
checking for lilv/lilv.h... no
checking lilv headers... no
checking for suil_instance_new in -lsuil-0... no
checking for dlopen in -ldl... yes
checking for numa_alloc in -lnuma... no
=== want NUMA Failed.
checking for openexr available... yes
  Reason                  Package
  ------                  -------
  forced                  a52dec
  forced                  djbfft
  disabled                encore
  disabled                audiofile
  disabled                esound
  forced                  ffmpeg
  forced                  giflib
  forced                  ilmbase
  needed                  ladspa
  forced                  lame
  forced                  libraw1394
  forced                  libogg
  forced                  libtheora
  forced                  libuuid
  forced                  libvorbis
  forced                  mjpegtools
  needed                  libaom
  needed                  openexr
  forced                  openjpeg
  forced                  twolame
  forced                  x264
  forced                  x265
  forced                  libvpx
  forced                  opus
  needed                  lv2
  needed                  lilv
  needed                  sratom
  needed                  serd
  needed                  sord
  needed                  suil
  shared                  -ltheoraenc
  shared                  -ltheoradec
  shared                  -logg
  shared                  -lvorbis
  shared                  -lvorbisfile
  shared                  -logg
  shared                  -lfftw3
  shared                  -lFLAC
  shared                  -lavc1394
  shared                  -lrom1394
  shared                  -liec61883
  shared                  -ldv
  shared                  -ljpeg
  shared                  -lsndfile
  shared                  -lwebp
  shared                  -ltiff
  system                  -lX11
  system                  -lXext
  system                  -lXinerama
  system                  -lXv
  system                  -lXfixes
  system                  -lbz2
  system                  -lfontconfig
  system                  -lfreetype
  system                  -llzma
  system                  -lpng
  system                  -lpthread
  system                  -lz
  system                  -lvdpau
  system                  -lva
  system                  -lva-x11
  system                  -lva-drm
  system                  -lGL
  system                  -lGLU
  system                  -lXft
  system                  -lasound
  system                  -lusb-1.0
  system                  -ldl

  using: with-gl
  using: with-xft
  using: with-xxf86vm
  using: with-oss
  using: with-alsa
  using: with-firewire
  using: with-dv
  using: with-dvb
  using: with-video4linux2
  using: without-esound
  using: without-pactl
  using: with-openexr
  using: with-lv2
  using: with-commercial
  using: with-libzmpeg
  using: with-shuttle
  using: with-shuttle_usb
  using: with-jobs = 4
  using: exec-name = cin
  using: with-cinlib = /usr/lib/cin
  using: with-cindat = /usr/share/cin
  using: with-config-dir = $$HOME/.bcast5
  using: with-browser = firefox
  using: with-plugin-dir = /usr/lib/cin/plugins
  using: with-ladspa-dir = /usr/lib/cin/ladspa
  using: with-opencv = no
  using: with-git-ffmpeg = yes
  using: with-noelision = auto
  using: with-booby = yes
  using: with-libzmpeg = yes
  using: with-commerical = yes
  using: with-vaapi = yes
  using: with-vdpau = yes

  using: thirdparty build = yes
  using: single-user  = no
  using: static-build = no
  using: ladspa-build = yes

checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --with-opus
mkdir -p bin bin/applications bin/pixmaps bin/lv2
make -j4 all-recursive
make[1]: Вход в каталог `/dev/shm/tmp/cinelerra-goodguy-20190512/cinelerra-5.1'
Making all in thirdparty
make[2]: Вход в каталог `/dev/shm/tmp/cinelerra-goodguy-20190512/cinelerra-5.1/thirdparty'
make[2]: предупреждение: в суб-Makefile принудительно задан -jN; режим сервера задач запрещён
mkdir /dev/shm/tmp/cinelerra-goodguy-20190512/cinelerra-5.1/thirdparty/../thirdparty/build
tar -xJf src/a52dec-0.7.4.tar.xz
tar -xJf src/djbfft-0.76.tar.xz
git clone yes ffmpeg.git
tar -xJf src/twolame-0.3.13.tar.xz
fatal: репозиторий «yes» не существует
make[2]: *** [/dev/shm/tmp/cinelerra-goodguy-20190512/cinelerra-5.1/thirdparty/../thirdparty/build/ffmpeg.source] Ошибка 128
make[2]: *** Ожидание завершения заданий...
patch -d djbfft* -p1 < src/djbfft-0.76.patch1
patching file error.h
touch /dev/shm/tmp/cinelerra-goodguy-20190512/cinelerra-5.1/thirdparty/../thirdparty/build/djbfft.source
patch -d a52dec* -p1 < src/a52dec-0.7.4.patch1
patching file liba52/imdct.c
touch /dev/shm/tmp/cinelerra-goodguy-20190512/cinelerra-5.1/thirdparty/../thirdparty/build/a52dec.source
touch /dev/shm/tmp/cinelerra-goodguy-20190512/cinelerra-5.1/thirdparty/../thirdparty/build/twolame.source
make[2]: Выход из каталога `/dev/shm/tmp/cinelerra-goodguy-20190512/cinelerra-5.1/thirdparty'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Выход из каталога `/dev/shm/tmp/cinelerra-goodguy-20190512/cinelerra-5.1'
make: *** [all] Ошибка 2
-------------------

as you can see it choked at "git clone yes ffmpeg.git" ... may be removing 'yes' will make it work, until finish or at least next err... Time to patch.

PS: reason why I tried this was interesting commit in ffmpeg, removing nvenc from non-free:

https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/c8b50ff8f9b3c102765e8b8902db82e9ebf7332c

=====
LICENSE: Remove nvenc from the non-free section.
 
 The headers are auto-detected by current FFmpeg.
=====

Also, I found this text, explaining various options you can pass to hw encoders:

https://gist.github.com/Brainiarc7/4b49f463a08377530df6cecb8171306a
FFmpeg and libav's playbook: Advanced encoding options with hardware-based acceleration, NVIDIA's NVENC and Intel's VAAPI-based encoder.
-----------------

ffmpeg -h encoder=h264_vaapi

Encoder h264_vaapi [H.264/AVC (VAAPI)]:
    General capabilities: delay 
    Threading capabilities: none
    Supported pixel formats: vaapi_vld
h264_vaapi AVOptions:
  -qp                <int>        E..V.... Constant QP (for P-frames; scaled by qfactor/qoffset for I/B) (from 0 to 52) (default 20)
  -quality           <int>        E..V.... Set encode quality (trades off against speed, higher is faster) (from 0 to 8) (default 0)
  -low_power         <int>        E..V.... Use low-power encoding mode (experimental: only supported on some platforms, does not support all features) (from 0 to 1) (default 0)
-----------------

Also, I wonder if some ffmpeg filters, based on va-api  (deinterlace, scale, brightness ...) or opencl will work for at least Intel/AMD ... But then Cinelerra probably should understand what kind  of hw (GPU) based filters attached to track, and not call download from GPU until first sw effect appear ... (a bit like it should work with OpenGL today).


More information about the Cin mailing list