Closed aomv closed 3 years ago
It crashes on this line GLuint shader = glCreateShader(type);
I tracked the issue down to eglInitialize not being able to start the EGL display connection. I'm compiling mesa from scratch now to try to address this.
Here's a sample program I put together that you can use to test your OpenGL setup
If this program doesn't run it means this library won't work.
EGLConfig config;
EGLContext context;
EGLint num_config;
display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
if (display == EGL_NO_DISPLAY)
{
std:: cout << "ERROR: EGL could not be initialized"<< std::endl;
exit(EXIT_FAILURE);
}
if (!eglInitialize(display, nullptr, nullptr))
{
std:: cout << "ERROR: Could not start EGL display connection"<< std::endl;
exit(EXIT_FAILURE);
}
if (eglChooseConfig(display, nullptr, &config, 1, &num_config) != EGL_TRUE)
{
std:: cout << "ERROR: Configuration selection failed" << std::endl;
exit(EXIT_FAILURE);
}
eglBindAPI(EGL_OPENGL_API);
context = eglCreateContext(display, config, EGL_NO_CONTEXT, NULL);
if (eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, context) != EGL_TRUE) {
std:: cout << "ERROR: Display was not made current one"<< std::endl;
exit(EXIT_FAILURE);
}```
same here using ubuntu:16.04 container In general my setup resembles official ffmpeg docker setup with few additions and polishing
# ffmpeg -buildconf
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
configuration: --prefix=/usr/local --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs='-lGLEW -lEGL -ldl' --extra-libs=-lpthread --disable-debug --disable-doc --disable-ffplay --enable-postproc --enable-small --enable-version3 --enable-gpl --enable-nonfree --enable-shared --enable-openssl --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libfdk_aac --enable-libkvazaar --enable-libwebp --enable-libaom
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
configuration:
--prefix=/usr/local
--extra-cflags=-I/usr/local/include
--extra-ldflags=-L/usr/local/lib
--extra-libs='-lGLEW -lEGL -ldl'
--extra-libs=-lpthread
--disable-debug
--disable-doc
--disable-ffplay
--enable-postproc
--enable-small
--enable-version3
--enable-gpl
--enable-nonfree
--enable-shared
--enable-openssl
--enable-avresample
--enable-libopencore-amrnb
--enable-libopencore-amrwb
--enable-libass
--enable-libfreetype
--enable-libvidstab
--enable-libmp3lame
--enable-libopenjpeg
--enable-libopus
--enable-libtheora
--enable-libvorbis
--enable-libvpx
--enable-libx264
--enable-libx265
--enable-libxvid
--enable-libfdk_aac
--enable-libkvazaar
--enable-libwebp
--enable-libaom
# dependencies for transitions project
apt-get -y install libxext-dev \
libx11-dev \
x11proto-gl-dev \
libglu1-mesa \
libglu1-mesa-dev \
libegl1-mesa-dev \
libxmu-dev \
libxi-dev \
libgl-dev
libglvnd latest from the source, as well as GLEW
Curious if this project works well with FFMPEG 4.1.3
# valgrind -v /usr/local/bin/ffmpeg -i media/0.mp4 -i media/1.mp4 -filter_complex gltransition -y out.mp4
==23842== Memcheck, a memory error detector
==23842== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==23842== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==23842== Command: /usr/local/bin/ffmpeg -i media/0.mp4 -i media/1.mp4 -filter_complex gltransition -y out.mp4
==23842==
--23842-- Valgrind options:
--23842-- -v
--23842-- Contents of /proc/version:
--23842-- Linux version 4.9.125-linuxkit (root@659b6d51c354) (gcc version 6.4.0 (Alpine 6.4.0) ) #1 SMP Fri Sep 7 08:20:28 UTC 2018
--23842--
--23842-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-sse3-avx-avx2-bmi
--23842-- Page sizes: currently 4096, max supported 4096
--23842-- Valgrind library directory: /usr/lib/valgrind
--23842-- Reading syms from /usr/local/bin/ffmpeg
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /lib/x86_64-linux-gnu/ld-2.23.so
--23842-- Considering /lib/x86_64-linux-gnu/ld-2.23.so ..
--23842-- .. CRC mismatch (computed 10d8ea02 wanted 4fdda1aa)
--23842-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.23.so ..
--23842-- .. CRC is valid
--23842-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
--23842-- Considering /usr/lib/valgrind/memcheck-amd64-linux ..
--23842-- .. CRC mismatch (computed eea41ea9 wanted 2009db78)
--23842-- object doesn't have a symbol table
--23842-- object doesn't have a dynamic symbol table
--23842-- Scheduler: using generic scheduler lock implementation.
--23842-- Reading suppressions file: /usr/lib/valgrind/default.supp
==23842== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-23842-by-???-on-2434754d2f20
==23842== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-23842-by-???-on-2434754d2f20
==23842== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-23842-by-???-on-2434754d2f20
==23842==
==23842== TO CONTROL THIS PROCESS USING vgdb (which you probably
==23842== don't want to do, unless you know exactly what you're doing,
==23842== or are doing some strange experiment):
==23842== /usr/lib/valgrind/../../bin/vgdb --pid=23842 ...command...
==23842==
==23842== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==23842== /path/to/gdb /usr/local/bin/ffmpeg
==23842== and then give GDB the following command
==23842== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=23842
==23842== --pid is optional if only one valgrind process is running
==23842==
--23842-- REDIR: 0x401cf10 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809e181 (???)
--23842-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
--23842-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
--23842-- .. CRC mismatch (computed 2567ccf6 wanted 49420590)
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
--23842-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
--23842-- .. CRC mismatch (computed 0e27c9a8 wanted ac585421)
--23842-- object doesn't have a symbol table
==23842== WARNING: new redirection conflicts with existing -- ignoring it
--23842-- old: 0x0401cf10 (strlen ) R-> (0000.0) 0x3809e181 ???
--23842-- new: 0x0401cf10 (strlen ) R-> (2007.0) 0x04c31020 strlen
--23842-- REDIR: 0x401b860 (ld-linux-x86-64.so.2:index) redirected to 0x4c30bc0 (index)
--23842-- REDIR: 0x401ba80 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c320d0 (strcmp)
--23842-- REDIR: 0x401dc70 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c35270 (mempcpy)
--23842-- Reading syms from /usr/local/lib/libavdevice.so.58.5.100
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libavfilter.so.7.40.101
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libavformat.so.58.20.100
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libavcodec.so.58.35.100
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libavresample.so.4.0.0
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libpostproc.so.55.3.100
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libswresample.so.3.3.100
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libswscale.so.5.3.100
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libavutil.so.56.22.100
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /lib/x86_64-linux-gnu/libm-2.23.so
--23842-- Considering /lib/x86_64-linux-gnu/libm-2.23.so ..
--23842-- .. CRC mismatch (computed d1bcd7c2 wanted c6824701)
--23842-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.23.so ..
--23842-- .. CRC is valid
--23842-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.23.so
--23842-- Considering /usr/lib/debug/.build-id/b1/7c21299099640a6d863e423d99265824e7bb16.debug ..
--23842-- .. build-id is valid
--23842-- Reading syms from /lib/x86_64-linux-gnu/libc-2.23.so
--23842-- Considering /lib/x86_64-linux-gnu/libc-2.23.so ..
--23842-- .. CRC mismatch (computed 10016417 wanted 1f868c97)
--23842-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so ..
--23842-- .. CRC is valid
--23842-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0.0.0
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0.0.0
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/lib/x86_64-linux-gnu/libXv.so.1.0.0
--23842-- Considering /usr/lib/x86_64-linux-gnu/libXv.so.1.0.0 ..
--23842-- .. CRC mismatch (computed 077b1729 wanted ba2119e3)
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
--23842-- Considering /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 ..
--23842-- .. CRC mismatch (computed 2d6b0194 wanted c4b33c13)
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
--23842-- Considering /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 ..
--23842-- .. CRC mismatch (computed b483887a wanted 38c83e44)
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libass.so.9.0.2
--23842-- Reading syms from /usr/local/lib/libvidstab.so.1.1
--23842-- Reading syms from /usr/local/lib/libfreetype.so.6.17.0
--23842-- Reading syms from /usr/local/lib/libGLEW.so.2.1.0
--23842-- Reading syms from /usr/local/lib/libEGL.so.1.1.0
--23842-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.8
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /lib/x86_64-linux-gnu/libssl.so.1.0.0
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libvpx.so.6.0.0
--23842-- Reading syms from /usr/local/lib/libopencore-amrwb.so.0.0.3
--23842-- Reading syms from /usr/local/lib/libaom.so.0
--23842-- Reading syms from /usr/local/lib/libfdk-aac.so.1.0.0
--23842-- Reading syms from /usr/local/lib/libmp3lame.so.0.0.0
--23842-- Reading syms from /usr/local/lib/libopencore-amrnb.so.0.0.3
--23842-- Reading syms from /usr/local/lib/libopenjp2.so.2.3.1
--23842-- Reading syms from /usr/local/lib/libopus.so.0.6.0
--23842-- Reading syms from /usr/local/lib/libtheoraenc.so.1.1.2
--23842-- Reading syms from /usr/local/lib/libtheoradec.so.1.1.4
--23842-- Reading syms from /usr/local/lib/libvorbis.so.0.4.8
--23842-- Reading syms from /usr/local/lib/libvorbisenc.so.2.0.11
--23842-- Reading syms from /usr/local/lib/libwebp.so.7.0.4
--23842-- Reading syms from /usr/local/lib/libx264.so.157
--23842-- Reading syms from /usr/local/lib/libx265.so.169
--23842-- Reading syms from /usr/local/lib/libxvidcore.so.4.3
--23842-- Reading syms from /usr/local/lib/libkvazaar.so.4.0.0
--23842-- Reading syms from /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
--23842-- Considering /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 ..
--23842-- .. CRC mismatch (computed 256f5df8 wanted 5d40ac88)
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.23.so
--23842-- Considering /lib/x86_64-linux-gnu/libdl-2.23.so ..
--23842-- .. CRC mismatch (computed ca8e05bc wanted c502f875)
--23842-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.23.so ..
--23842-- .. CRC is valid
--23842-- Reading syms from /usr/local/lib/libfribidi.so.0.4.0
--23842-- Reading syms from /usr/local/lib/libfontconfig.so.1.12.0
--23842-- Reading syms from /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0
--23842-- Considering /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0 ..
--23842-- .. CRC mismatch (computed 31ec8b49 wanted 4fbed20c)
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libGL.so.1.7.0
--23842-- Reading syms from /usr/local/lib/libGLdispatch.so.0.0.0
--23842-- Reading syms from /usr/local/lib/libogg.so.0.8.3
--23842-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
--23842-- Considering /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 ..
--23842-- .. CRC mismatch (computed b2e7dc97 wanted c9833bdf)
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /lib/x86_64-linux-gnu/libexpat.so.1.6.0
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /lib/x86_64-linux-gnu/libuuid.so.1.3.0
--23842-- object doesn't have a symbol table
--23842-- Reading syms from /usr/local/lib/libGLX.so.0.0.0
--23842-- Reading syms from /lib/x86_64-linux-gnu/libgcc_s.so.1
--23842-- Considering /lib/x86_64-linux-gnu/libgcc_s.so.1 ..
--23842-- .. CRC mismatch (computed b9a68419 wanted 29d51b00)
--23842-- object doesn't have a symbol table
--23842-- REDIR: 0x7c9aa00 (libc.so.6:strcasecmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7c96280 (libc.so.6:strcspn) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7c9ccf0 (libc.so.6:strncasecmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7c986f0 (libc.so.6:strpbrk) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7c98a80 (libc.so.6:strspn) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7c9a14b (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7c9f3f0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7c94cd0 (libc.so.6:strcmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7c98400 (libc.so.6:rindex) redirected to 0x4c308a0 (rindex)
--23842-- REDIR: 0x7c96720 (libc.so.6:strlen) redirected to 0x4c30f60 (strlen)
--23842-- REDIR: 0x7c8fd10 (libc.so.6:calloc) redirected to 0x4c2faa0 (calloc)
--23842-- REDIR: 0x7c8f130 (libc.so.6:malloc) redirected to 0x4c2db20 (malloc)
--23842-- REDIR: 0x7d58ea0 (libc.so.6:__memcpy_avx_unaligned) redirected to 0x4c324a0 (memcpy@@GLIBC_2.14)
--23842-- REDIR: 0x7c8f6c0 (libc.so.6:realloc) redirected to 0x4c2fce0 (realloc)
--23842-- REDIR: 0x7c9f470 (libc.so.6:__GI_memcpy) redirected to 0x4c32b00 (__GI_memcpy)
--23842-- REDIR: 0x7c99ff0 (libc.so.6:__GI_memmove) redirected to 0x4c347e0 (__GI_memmove)
--23842-- REDIR: 0x7c8f4f0 (libc.so.6:free) redirected to 0x4c2ed80 (free)
--23842-- REDIR: 0x7c9a1b0 (libc.so.6:memset) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7d7d970 (libc.so.6:__memset_avx2) redirected to 0x4c344c0 (memset)
--23842-- REDIR: 0x7c96b70 (libc.so.6:__GI_strncmp) redirected to 0x4c31710 (__GI_strncmp)
--23842-- REDIR: 0x7c94a80 (libc.so.6:index) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7c94ab0 (libc.so.6:__GI_strchr) redirected to 0x4c30a00 (__GI_strchr)
--23842-- REDIR: 0x7c96b20 (libc.so.6:strncmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7d50a90 (libc.so.6:__strncmp_sse42) redirected to 0x4c317f0 (__strncmp_sse42)
--23842-- REDIR: 0x7caa570 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4c31f90 (strcmp)
--23842-- REDIR: 0x7d56ff0 (libc.so.6:__strncasecmp_avx) redirected to 0x4c31940 (strncasecmp)
--23842-- REDIR: 0x7c9a890 (libc.so.6:__GI_stpcpy) redirected to 0x4c33f80 (__GI_stpcpy)
--23842-- REDIR: 0x7c9a3b0 (libc.so.6:__GI_mempcpy) redirected to 0x4c34fa0 (__GI_mempcpy)
--23842-- REDIR: 0x7c983c0 (libc.so.6:strncpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7cb1000 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c31570 (__strncpy_sse2_unaligned)
--23842-- REDIR: 0x7c92600 (libc.so.6:posix_memalign) redirected to 0x4c300a0 (posix_memalign)
--23842-- REDIR: 0x7ca1760 (libc.so.6:strchrnul) redirected to 0x4c34da0 (strchrnul)
--23842-- REDIR: 0x7d21480 (libc.so.6:__strcpy_chk) redirected to 0x4c34e10 (__strcpy_chk)
--23842-- REDIR: 0x7c99630 (libc.so.6:strstr) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7cb5070 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x4c35460 (strstr)
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
configuration: --prefix=/usr/local --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs='-lGLEW -lEGL -ldl' --extra-libs=-lpthread --disable-debug --disable-doc --disable-ffplay --enable-postproc --enable-small --enable-version3 --enable-gpl --enable-nonfree --enable-shared --enable-openssl --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libfdk_aac --enable-libkvazaar --enable-libwebp --enable-libaom
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
--23842-- REDIR: 0x7d55860 (libc.so.6:__strspn_sse42) redirected to 0x4c35670 (strspn)
--23842-- REDIR: 0x7c96160 (libc.so.6:strcpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7cb09d0 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c31040 (strcpy)
--23842-- REDIR: 0x7c99bb0 (libc.so.6:bcmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--23842-- REDIR: 0x7d79430 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c33cd0 (__memcmp_sse4_1)
--23842-- REDIR: 0x7ca1550 (libc.so.6:rawmemchr) redirected to 0x4c34dd0 (rawmemchr)
--23842-- REDIR: 0x7d555f0 (libc.so.6:__strcspn_sse42) redirected to 0x4c35610 (strcspn)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'media/0.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.83.100
Duration: 00:00:04.00, start: 0.000000, bitrate: 454 kb/s
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 452 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'media/1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.83.100
Duration: 00:00:04.00, start: 0.000000, bitrate: 530 kb/s
Stream #1:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 640x360, 528 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
--23842-- REDIR: 0x7c99860 (libc.so.6:memchr) redirected to 0x4c32170 (memchr)
Stream mapping:
Stream #0:0 (h264) -> gltransition:from
Stream #1:0 (h264) -> gltransition:to
gltransition -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
--23842-- REDIR: 0x7d589b0 (libc.so.6:__memmove_avx_unaligned) redirected to 0x4c32230 (memcpy@GLIBC_2.2.5)
--23842-- REDIR: 0x7c9cd60 (libc.so.6:__GI___strncasecmp_l) redirected to 0x4c31e90 (__GI___strncasecmp_l)
==23842== Jump to the invalid address stated on the next line
==23842== at 0x0: ???
==23842== by 0x515BF2C: ??? (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x515C0F1: ??? (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102CCD: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102AFC: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102AFC: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102AFC: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x51061DF: avfilter_graph_config (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x41251D: ??? (in /usr/local/bin/ffmpeg)
==23842== by 0x41DF72: ??? (in /usr/local/bin/ffmpeg)
==23842== by 0x41E758: ??? (in /usr/local/bin/ffmpeg)
==23842== by 0x4214D9: ??? (in /usr/local/bin/ffmpeg)
==23842== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23842==
==23842==
==23842== Process terminating with default action of signal 11 (SIGSEGV)
==23842== Bad permissions for mapped region at address 0x0
==23842== at 0x0: ???
==23842== by 0x515BF2C: ??? (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x515C0F1: ??? (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102CCD: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102AFC: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102AFC: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102AFC: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x51061DF: avfilter_graph_config (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x41251D: ??? (in /usr/local/bin/ffmpeg)
==23842== by 0x41DF72: ??? (in /usr/local/bin/ffmpeg)
==23842== by 0x41E758: ??? (in /usr/local/bin/ffmpeg)
==23842== by 0x4214D9: ??? (in /usr/local/bin/ffmpeg)
==23842==
==23842== HEAP SUMMARY:
==23842== in use at exit: 12,194,472 bytes in 4,885 blocks
==23842== total heap usage: 8,609 allocs, 3,724 frees, 16,028,182 bytes allocated
==23842==
==23842== Searching for pointers to 4,885 not-freed blocks
==23842== Checked 157,190,576 bytes
==23842==
==23842== LEAK SUMMARY:
==23842== definitely lost: 0 bytes in 0 blocks
==23842== indirectly lost: 0 bytes in 0 blocks
==23842== possibly lost: 5,536 bytes in 18 blocks
==23842== still reachable: 12,188,936 bytes in 4,867 blocks
==23842== suppressed: 0 bytes in 0 blocks
==23842== Rerun with --leak-check=full to see details of leaked memory
==23842==
==23842== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==23842==
==23842== 1 errors in context 1 of 1:
==23842== Jump to the invalid address stated on the next line
==23842== at 0x0: ???
==23842== by 0x515BF2C: ??? (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x515C0F1: ??? (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102CCD: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102AFC: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102AFC: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x5102AFC: avfilter_config_links (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x51061DF: avfilter_graph_config (in /usr/local/lib/libavfilter.so.7.40.101)
==23842== by 0x41251D: ??? (in /usr/local/bin/ffmpeg)
==23842== by 0x41DF72: ??? (in /usr/local/bin/ffmpeg)
==23842== by 0x41E758: ??? (in /usr/local/bin/ffmpeg)
==23842== by 0x4214D9: ??? (in /usr/local/bin/ffmpeg)
==23842== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23842==
==23842== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Killed
Should be solved by https://github.com/transitive-bullshit/ffmpeg-gl-transition/pull/57
hey,
I've been trying to install on amazon linux and so far have been unsuccessful. I'm following the EGL instructions.
From what I understood the requirements are: 1) glvnd1.0 (from source) ./autogen.sh ./configure --prefix="$HOME/ffmpeg_build" make make install
2) mesaGL>=1.7 mesaGLU>=1.7 yum install mesa-libGLU mesa-libGLU-devel
3) GLEW >=2.0 (from source) make SYSTEM=linux-egl GLEW_DEST="$HOME/ffmpeg_build" make install
4) For ffmpeg I installed the libs required to build with libx264 (following the steps on https://trac.ffmpeg.org/wiki/CompilationGuide/Centos)
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --enable-libx264 --enable-gpl --enable-opengl --enable-filter=gltransition --extra-libs="-lGLEW -lEGL"
This is the error I get
ffmpeg -i ../ffmpeg-gl-transition/media/0.mp4 -i ../ffmpeg-gl-transition/media/1.mp4 -filter_complex gltransition -y out.mp4
And this is a more verbose log
ffmpeg -loglevel debug -i ../ffmpeg-gl-transition/media/0.mp4 -i ../ffmpeg-gl-transition/media/1.mp4 -filter_complex gltransition out.mp4
Here's output off
ldd ffmpeg