
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (63)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (8663)
-
Failing to build ffmpeg for Android
3 octobre 2018, par Hamed MomeniI’m trying build the ffmpeg sources for Android using two different approaches :
- https://yesimroy.gitbooks.io/android-note/content/compile_ffmpeg_for_android.html
- https://github.com/Khang-NT/ffmpeg-binary-android
The problem here is that I am facing a somewhat similar problem in both the approaches so I guess the problem lies not with those scripts but there is some thing off in my environment. Here are the outputs of both build scripts :
For approach #1 :
/home/hamed/dev/android-tools/android-sdk-linux/ndk-bundle/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "conflog.txt" produced by configure as this will help
solve the problem.
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:90: /libavutil/Makefile: No such file or directory
Makefile:90: /ffbuild/library.mak: No such file or directory
Makefile:92: /fftools/Makefile: No such file or directory
Makefile:93: /doc/Makefile: No such file or directory
Makefile:94: /doc/examples/Makefile: No such file or directory
Makefile:159: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'. Stop.
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:90: /libavutil/Makefile: No such file or directory
Makefile:90: /ffbuild/library.mak: No such file or directory
Makefile:92: /fftools/Makefile: No such file or directory
Makefile:93: /doc/Makefile: No such file or directory
Makefile:94: /doc/examples/Makefile: No such file or directory
Makefile:159: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'. Stop.
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:90: /libavutil/Makefile: No such file or directory
Makefile:90: /ffbuild/library.mak: No such file or directory
Makefile:92: /fftools/Makefile: No such file or directory
Makefile:93: /doc/Makefile: No such file or directory
Makefile:94: /doc/examples/Makefile: No such file or directory
Makefile:159: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'. Stop.
Android X86 builds finishedAnd for approach #2 :
checking how to print strings... printf
checking for style of include used by make... GNU
checking for arm-linux-androideabi-gcc... /home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/opus-1.1.5':
configure: error: C compiler cannot create executablesI even tried redownloading the NDK fearing that the gcc compiler was corrupt but still the same error line appears.
And this is the
config.log
file from theOPUS
module of the second approach :This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by opus configure 1.1.5, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure -v --prefix=/home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/build_dir --host=arm-linux-androideabi --enable-static --disable-shared --disable-doc --disable-extra-programs
## --------- ##
## Platform. ##
## --------- ##
hostname = putech-laptop
uname -m = x86_64
uname -r = 4.15.0-36-generic
uname -s = Linux
uname -v = #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/hamed/.local/bin
PATH: /home/hamed/.local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /snap/bin
PATH: /home/hamed/dev/go/bin
PATH: /home/hamed/dev/android-tools/android-sdk-linux/platform-tools/
PATH: /home/hamed/dev/go/bin
PATH: /home/hamed/dev/android-tools/android-sdk-linux/platform-tools/
PATH: /home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/build_dir/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2354: checking whether make supports nested variables
configure:2371: result: yes
configure:2437: checking for a BSD-compatible install
configure:2505: result: /usr/bin/install -c
configure:2516: checking whether build environment is sane
configure:2571: result: yes
configure:2630: checking for arm-linux-androideabi-strip
configure:2657: result: /home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip
configure:2722: checking for a thread-safe mkdir -p
configure:2761: result: /bin/mkdir -p
configure:2768: checking for gawk
configure:2798: result: no
configure:2768: checking for mawk
configure:2784: found /usr/bin/mawk
configure:2795: result: mawk
configure:2806: checking whether make sets $(MAKE)
configure:2828: result: yes
configure:2953: checking whether to enable maintainer-specific portions of Makefiles
configure:2962: result: yes
configure:2980: checking build system type
configure:2994: result: x86_64-unknown-linux-gnu
configure:3014: checking host system type
configure:3027: result: arm-unknown-linux-androideabi
configure:3099: checking how to print strings
configure:3126: result: printf
configure:3159: checking for style of include used by make
configure:3187: result: GNU
configure:3218: checking for arm-linux-androideabi-gcc
configure:3245: result: /home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
configure:3514: checking for C compiler version
configure:3523: /home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --version >&5
Android (4751641 based on r328903) clang version 7.0.2 (https://android.googlesource.com/toolchain/clang 003100370607242ddd5815e4a043907ea9004281) (https://android.googlesource.com/toolchain/llvm 1d739ffb0366421d383e04ff80ec2ee591315116) (based on LLVM 7.0.2svn)
Target: arm--linux-android
Thread model: posix
InstalledDir: /home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../../../../llvm/prebuilt/linux-x86_64/bin
configure:3534: $? = 0
configure:3523: /home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -v >&5
Android (4751641 based on r328903) clang version 7.0.2 (https://android.googlesource.com/toolchain/clang 003100370607242ddd5815e4a043907ea9004281) (https://android.googlesource.com/toolchain/llvm 1d739ffb0366421d383e04ff80ec2ee591315116) (based on LLVM 7.0.2svn)
Target: arm--linux-android
Thread model: posix
InstalledDir: /home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../../../../llvm/prebuilt/linux-x86_64/bin
configure:3534: $? = 0
configure:3523: /home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3534: $? = 1
configure:3523: /home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -qversion >&5
clang: error: unknown argument '-qversion', did you mean '--version'?
clang: error: no input files
configure:3534: $? = 1
configure:3554: checking whether the C compiler works
configure:3576: /home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -mfloat-abi=softfp -marm -march=armv7-a -Os -O3 -I/home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/build_dir/include --sysroot=/home/hamed/dev/android-tools/android-ndk-r18/platforms/android-16/arch-arm/ -fPIE --sysroot=/home/hamed/dev/android-tools/android-ndk-r18/platforms/android-16/arch-arm/ -L/home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/build_dir/lib -fPIE -pie conftest.c >&5
/usr/bin/ld: unrecognised emulation mode: armelf_linux_eabi
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om i386pep i386pe
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3580: $? = 1
configure:3618: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "opus"
| #define PACKAGE_TARNAME "opus"
| #define PACKAGE_VERSION "1.1.5"
| #define PACKAGE_STRING "opus 1.1.5"
| #define PACKAGE_BUGREPORT "opus@xiph.org"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3623: error: in `/home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/opus-1.1.5':
configure:3625: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_ARM_NEON_INTR_CFLAGS_set=
ac_cv_env_ARM_NEON_INTR_CFLAGS_value=
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-mfloat-abi=softfp -marm -march=armv7-a -Os -O3 -I/home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/build_dir/include --sysroot=/home/hamed/dev/android-tools/android-ndk-r18/platforms/android-16/arch-arm/ -fPIE '
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='--sysroot=/home/hamed/dev/android-tools/android-ndk-r18/platforms/android-16/arch-arm/ '
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-cpp
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/build_dir/lib -fPIE -pie '
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_X86_AVX_CFLAGS_set=
ac_cv_env_X86_AVX_CFLAGS_value=
ac_cv_env_X86_SSE2_CFLAGS_set=
ac_cv_env_X86_SSE2_CFLAGS_value=
ac_cv_env_X86_SSE4_1_CFLAGS_set=
ac_cv_env_X86_SSE4_1_CFLAGS_value=
ac_cv_env_X86_SSE_CFLAGS_set=
ac_cv_env_X86_SSE_CFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-linux-androideabi
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=arm-unknown-linux-androideabi
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_CC=/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
ac_cv_prog_STRIP=/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/opus-1.1.5/missing aclocal-1.15'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AR='/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ar'
ARM2GNU_PARAMS=''
ARM_NEON_INTR_CFLAGS=''
AUTOCONF='${SHELL} /home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/opus-1.1.5/missing autoconf'
AUTOHEADER='${SHELL} /home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/opus-1.1.5/missing autoheader'
AUTOMAKE='${SHELL} /home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/opus-1.1.5/missing automake-1.15'
AWK='mawk'
CC='/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-mfloat-abi=softfp -marm -march=armv7-a -Os -O3 -I/home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/build_dir/include --sysroot=/home/hamed/dev/android-tools/android-ndk-r18/platforms/android-16/arch-arm/ -fPIE '
CPP='/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-cpp'
CPPFLAGS='--sysroot=/home/hamed/dev/android-tools/android-ndk-r18/platforms/android-16/arch-arm/ '
CPU_ARM_FALSE=''
CPU_ARM_TRUE=''
CUSTOM_MODES_FALSE=''
CUSTOM_MODES_TRUE=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DISABLE_FLOAT_API_FALSE=''
DISABLE_FLOAT_API_TRUE=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_PROGRAMS_FALSE=''
EXTRA_PROGRAMS_TRUE=''
FGREP=''
FIXED_POINT_FALSE=''
FIXED_POINT_TRUE=''
GREP=''
HAVE_ARM_NE10=''
HAVE_ARM_NE10_FALSE=''
HAVE_ARM_NE10_TRUE=''
HAVE_ARM_NEON_INTR_FALSE=''
HAVE_ARM_NEON_INTR_TRUE=''
HAVE_AVX_FALSE=''
HAVE_AVX_TRUE=''
HAVE_DOXYGEN=''
HAVE_DOXYGEN_FALSE=''
HAVE_DOXYGEN_TRUE=''
HAVE_PERL=''
HAVE_SSE2_FALSE=''
HAVE_SSE2_TRUE=''
HAVE_SSE4_1_FALSE=''
HAVE_SSE4_1_TRUE=''
HAVE_SSE_FALSE=''
HAVE_SSE_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld'
LDFLAGS='-L/home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/build_dir/lib -fPIE -pie '
LIBM=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/opus-1.1.5/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
NE10_CFLAGS=''
NE10_LIBS=''
NM='/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-nm'
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPUS_ARM_EXTERNAL_ASM_FALSE=''
OPUS_ARM_EXTERNAL_ASM_TRUE=''
OPUS_ARM_INLINE_ASM_FALSE=''
OPUS_ARM_INLINE_ASM_TRUE=''
OPUS_ARM_MAY_HAVE_EDSP=''
OPUS_ARM_MAY_HAVE_MEDIA=''
OPUS_ARM_MAY_HAVE_NEON=''
OPUS_ARM_NEON_INTR_CFLAGS=''
OPUS_HAVE_RTCD=''
OPUS_LT_AGE='5'
OPUS_LT_CURRENT='5'
OPUS_LT_REVISION='5'
OPUS_X86_AVX_CFLAGS=''
OPUS_X86_SSE2_CFLAGS=''
OPUS_X86_SSE4_1_CFLAGS=''
OPUS_X86_SSE_CFLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE='opus'
PACKAGE_BUGREPORT='opus@xiph.org'
PACKAGE_NAME='opus'
PACKAGE_STRING='opus 1.1.5'
PACKAGE_TARNAME='opus'
PACKAGE_URL=''
PACKAGE_VERSION='1.1.5'
PATH_SEPARATOR=':'
PC_BUILD=''
RANLIB='/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ranlib'
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP='/home/hamed/dev/android-tools/android-ndk-r18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip'
VERSION='1.1.5'
X86_AVX_CFLAGS=''
X86_SSE2_CFLAGS=''
X86_SSE4_1_CFLAGS=''
X86_SSE_CFLAGS=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-unknown-linux-androideabi'
host_alias='arm-linux-androideabi'
host_cpu='arm'
host_os='linux-androideabi'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/opus-1.1.5/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/hamed/dev/projects/ffmpeg/ffmpeg-binary-android/build_scripts/build_dir'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "opus"
#define PACKAGE_TARNAME "opus"
#define PACKAGE_VERSION "1.1.5"
#define PACKAGE_STRING "opus 1.1.5"
#define PACKAGE_BUGREPORT "opus@xiph.org"
#define PACKAGE_URL ""
configure: exit 77 -
Wrong video duration when recording with ffmpeg
4 octobre 2018, par lulasI am trying to record a H264 video using ffmpeg.
In order to do this, I am grabbing frames from a video source and pushing them into a pipe that FFmpeg reads from and afterwards writes to a file.
My problem is that when I record a 10 second video, the file contains the full video sped up, being the final duration 3 seconds...
I believe the problem I am having might be related with the frame rate, since I am saying to record with 30 FPS, but I can only provide 10 FPS.
These are the options I use with FFmpeg :
-thread_queue_size 512 -framerate 30 -f rawvideo -pix_fmt rgb32 -video_size 1920x1080 -i \.\pipe\pipe_name -vcodec libx264 -crf 23 -pix_fmt yuv420p -preset ultrafast -r 30 "output.mp4"
And these are the FFmpeg logs :
2018-10-04 15:56:11.9342 | INFO | ffmpeg version N-91715-gd71dfc087b Copyright (c) 2000-2018 the FFmpeg developers
2018-10-04 15:56:11.9402 | INFO | built with gcc 8.2.1 (GCC) 20180813
2018-10-04 15:56:11.9402 | INFO | configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
2018-10-04 15:56:11.9402 | INFO | libavutil 56. 19.100 / 56. 19.100
2018-10-04 15:56:11.9542 | INFO | libavcodec 58. 27.100 / 58. 27.100
2018-10-04 15:56:11.9542 | INFO | libavformat 58. 17.103 / 58. 17.103
2018-10-04 15:56:11.9728 | INFO | libavdevice 58. 4.101 / 58. 4.101
2018-10-04 15:56:11.9728 | INFO | libavfilter 7. 26.100 / 7. 26.100
2018-10-04 15:56:11.9999 | INFO | libswscale 5. 2.100 / 5. 2.100
2018-10-04 15:56:12.0239 | INFO | libswresample 3. 2.100 / 3. 2.100
2018-10-04 15:56:12.0239 | INFO | libpostproc 55. 2.100 / 55. 2.100
2018-10-04 15:56:12.0350 | INFO | Input #0, rawvideo, from '\\.\pipe\pipe_name':
2018-10-04 15:56:12.0350 | INFO | Duration: N/A, start: 0.000000, bitrate: 1990656 kb/s
2018-10-04 15:56:12.0350 | INFO | Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1920x1080, 1990656 kb/s, 30 tbr, 30 tbn, 30 tbc
2018-10-04 15:56:12.0481 | INFO | Stream mapping:
2018-10-04 15:56:12.0481 | INFO | Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
2018-10-04 15:56:12.0691 | INFO | Press [q] to stop, [?] for help
2018-10-04 15:56:12.0881 | INFO | [libx264 @ 000001bceea618c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
2018-10-04 15:56:12.0881 | INFO | [libx264 @ 000001bceea618c0] profile Constrained Baseline, level 4.0, 4:2:0, 8-bit
2018-10-04 15:56:12.0951 | INFO | [libx264 @ 000001bceea618c0] 264 - core 157 r2932 303c484 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=30.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
2018-10-04 15:56:12.0951 | INFO | Output #0, mp4, to 'output.mp4':
2018-10-04 15:56:12.0951 | INFO | Metadata:
2018-10-04 15:56:12.0951 | INFO | encoder : Lavf58.17.103
2018-10-04 15:56:12.0951 | INFO | Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1920x1080, q=-1--1, 30 fps, 15360 tbn, 30 tbc
2018-10-04 15:56:12.1171 | INFO | Metadata:
2018-10-04 15:56:12.1171 | INFO | encoder : Lavc58.27.100 libx264
2018-10-04 15:56:12.1531 | INFO | Side data:
2018-10-04 15:56:12.1691 | INFO | cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
2018-10-04 15:56:12.8750 | INFO | frame= 8 fps=0.0 q=31.0 size= 0kB time=00:00:00.00 bitrate=5907.7kbits/s speed=0.000121x
2018-10-04 15:56:13.3238 | INFO | frame= 11 fps=9.9 q=31.0 size= 0kB time=00:00:00.10 bitrate= 3.8kbits/s speed=0.0904x
2018-10-04 15:56:13.7782 | INFO | frame= 16 fps=9.5 q=31.0 size= 0kB time=00:00:00.26 bitrate= 1.4kbits/s speed=0.159x
2018-10-04 15:56:14.2346 | INFO | frame= 21 fps=9.5 q=31.0 size= 0kB time=00:00:00.43 bitrate= 0.9kbits/s speed=0.197x
2018-10-04 15:56:14.8011 | INFO | frame= 27 fps=9.7 q=31.0 size= 0kB time=00:00:00.63 bitrate= 0.6kbits/s speed=0.229x
2018-10-04 15:56:15.4266 | INFO | frame= 33 fps=9.7 q=32.0 size= 0kB time=00:00:00.83 bitrate= 0.5kbits/s speed=0.246x
2018-10-04 15:56:16.0827 | INFO | frame= 39 fps=9.6 q=31.0 size= 256kB time=00:00:01.03 bitrate=2029.7kbits/s speed=0.255x
2018-10-04 15:56:16.7291 | INFO | frame= 47 fps= 10 q=31.0 size= 256kB time=00:00:01.30 bitrate=1613.4kbits/s speed=0.277x
2018-10-04 15:56:17.4279 | INFO | frame= 54 fps= 10 q=31.0 size= 256kB time=00:00:01.53 bitrate=1367.9kbits/s speed=0.284x
2018-10-04 15:56:18.0562 | INFO | frame= 61 fps= 10 q=31.0 size= 512kB time=00:00:01.76 bitrate=2374.3kbits/s speed=0.298x
2018-10-04 15:56:18.5401 | INFO | frame= 64 fps=9.9 q=31.0 size= 512kB time=00:00:01.86 bitrate=2247.1kbits/s speed=0.287x
2018-10-04 15:56:19.2106 | INFO | frame= 70 fps=9.9 q=32.0 size= 512kB time=00:00:02.06 bitrate=2029.6kbits/s speed=0.293x
2018-10-04 15:56:19.6653 | INFO | frame= 75 fps=9.9 q=31.0 size= 512kB time=00:00:02.23 bitrate=1878.2kbits/s speed=0.294x
2018-10-04 15:56:20.1512 | INFO | frame= 78 fps=9.6 q=31.0 size= 512kB time=00:00:02.33 bitrate=1797.7kbits/s speed=0.287x
2018-10-04 15:56:21.0577 | INFO | frame= 84 fps=9.3 q=31.0 size= 768kB time=00:00:02.53 bitrate=2483.6kbits/s speed=0.281x
2018-10-04 15:56:21.6416 | INFO | frame= 91 fps=9.5 q=31.0 size= 768kB time=00:00:02.76 bitrate=2274.1kbits/s speed=0.29x
2018-10-04 15:56:22.1779 | INFO | frame= 97 fps=9.6 q=31.0 size= 768kB time=00:00:02.96 bitrate=2120.8kbits/s speed=0.295x
2018-10-04 15:56:22.6571 | INFO | frame= 101 fps=9.5 q=-1.0 Lsize= 1015kB time=00:00:03.33 bitrate=2495.6kbits/s speed=0.313x
2018-10-04 15:56:22.6571 | INFO | video:1014kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.117556%
2018-10-04 15:56:22.6571 | INFO | [libx264 @ 000001bceea618c0] frame I:1 Avg QP:27.00 size: 60682
2018-10-04 15:56:22.6571 | INFO | [libx264 @ 000001bceea618c0] frame P:100 Avg QP:31.09 size: 9774
2018-10-04 15:56:22.6571 | INFO | [libx264 @ 000001bceea618c0] mb I I16..4: 100.0% 0.0% 0.0%
2018-10-04 15:56:22.6736 | INFO | [libx264 @ 000001bceea618c0] mb P I16..4: 10.6% 0.0% 0.0% P16..4: 15.2% 0.0% 0.0% 0.0% 0.0% skip:74.3%
2018-10-04 15:56:22.6736 | INFO | [libx264 @ 000001bceea618c0] coded y,uvDC,uvAC intra: 15.8% 24.4% 1.4% inter: 4.8% 6.8% 0.0%
2018-10-04 15:56:22.6736 | INFO | [libx264 @ 000001bceea618c0] i16 v,h,dc,p: 39% 20% 15% 26%
2018-10-04 15:56:22.6736 | INFO | [libx264 @ 000001bceea618c0] i8c dc,h,v,p: 54% 19% 20% 7%
2018-10-04 15:56:22.6896 | INFO | [libx264 @ 000001bceea618c0] kb/s:2466.66So, through the logs I can see that I provided around 100 frames in 10 seconds, but FFmpeg wrote all those 100 frames in 3 seconds...
What can I do to write the 100 frames spread in the 10 seconds ?
I looked into a FFmpeg option called -vsync, but haven’t had any success with it.
-
FFMPEG NVENC encoding with Windows10
1er mars 2021, par Daniel BartleyI had to reinstall windows 10 because windows. I have this exact same code working prior to the reinstall, however after I cant get it to work.



I am using the latest nvidia drivers 416.16
I have VisualStudio and Cuda Toolkit installed
2x 1080TIs



Using ffmpeg 4.0.2 :



T:\ffmpeg\bin\4.0.2\ffmpeg.exe -c:v h264_cuvid -i "T:\Streams\01-ready\2018-10-10 21-19-21.mp4" -i "T:\Streams\10-source\kpg-logo.png" -filter_complex "overlay=10:10" -b:v 24000k -c:v h264_nvenc -c:a copy "T:\Streams\02-encoded\2018-10-10 21-19-21_watermarked.mp4"




Output :



ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
 built with gcc 7.3.1 (GCC) 20180722
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
 libavutil 56. 14.100 / 56. 14.100
 libavcodec 58. 18.100 / 58. 18.100
 libavformat 58. 12.100 / 58. 12.100
 libavdevice 58. 3.100 / 58. 3.100
 libavfilter 7. 16.100 / 7. 16.100
 libswscale 5. 1.100 / 5. 1.100
 libswresample 3. 1.100 / 3. 1.100
 libpostproc 55. 1.100 / 55. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'T:\Streams\01-ready\2018-10-10 21-19-21.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf57.84.100
 Duration: 00:28:41.71, start: 0.000000, bitrate: 24422 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt470bg/unknown/unknown), 2560x1440, 24130 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default)
 Metadata:
 handler_name : VideoHandler
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 286 kb/s (default)
 Metadata:
 handler_name : SoundHandler
Input #1, png_pipe, from 'T:\Streams\10-source\kpg-logo.png':
 Duration: N/A, bitrate: N/A
 Stream #1:0: Video: png, rgba(pc), 2560x1440 [SAR 2834:2834 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
 Stream #0:0 (h264_cuvid) -> overlay:main
 Stream #1:0 (png) -> overlay:overlay
 overlay -> Stream #0:0 (h264_nvenc)
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[h264_nvenc @ 000002851a001940] CreateInputBuffer failed: out of memory (10)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
Press any key to continue . . .




Error Message



[h264_nvenc @ 000002851a001940] CreateInputBuffer failed: out of memory (10)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
Press any key to continue . . .




Any ideas ?



EDIT :
Still having issues, now even with the simple commands :



ffmpeg.exe -y -hwaccel cuvid -c:v h264_cuvid -i "input" -c:v h264_nvenc -preset slow "output.mp4"
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
 built with gcc 7.3.1 (GCC) 20180722
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
 libavutil 56. 14.100 / 56. 14.100
 libavcodec 58. 18.100 / 58. 18.100
 libavformat 58. 12.100 / 58. 12.100
 libavdevice 58. 3.100 / 58. 3.100
 libavfilter 7. 16.100 / 7. 16.100
 libswscale 5. 1.100 / 5. 1.100
 libswresample 3. 1.100 / 3. 1.100
 libpostproc 55. 1.100 / 55. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'T:\Streams\01-ready\2018-10-15 20-49-44.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf57.84.100
 Duration: 00:00:10.64, start: 0.000000, bitrate: 22978 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/unknown/unknown), 2560x1440, 24216 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default)
 Metadata:
 handler_name : VideoHandler
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 156 kb/s (default)
 Metadata:
 handler_name : SoundHandler
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> h264 (h264_nvenc))
 Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, mp4, to 'T:\Streams\02-encoded\2018-10-15 20-49-44.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.12.100
 Stream #0:0(und): Video: h264 (h264_nvenc) (Main) (avc1 / 0x31637661), cuda, 2560x1440 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 60 fps, 15360 tbn, 60 tbc (default)
 Metadata:
 handler_name : VideoHandler
 encoder : Lavc58.18.100 h264_nvenc
 Side data:
 cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: -1
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 encoder : Lavc58.18.100 aac
[h264_cuvid @ 000001a99033b600] ctx->cvdl->cuvidMapVideoFrame(ctx->cudecoder, parsed_frame.dispinfo.picture_index, &mapped_frame, &pitch, &params) failed -> CUDA_ERROR_UNKNOWN: unknown error
Error while decoding stream #0:0: Generic error in an external library
/* repeated many many times */
[h264_nvenc @ 000001a98fcfc100] Failed locking bitstream buffer: invalid param (8)
video encoding failed: Invalid argument
[aac @ 000001a98fdcd380] Qavg: 64894.355
[aac @ 000001a98fdcd380] 2 frames left in the queue on closing
Conversion failed!
Press any key to continue . . .




Full windows batch file :



@echo off

set ffmpegversion=20181015-c27c7b4-win64-static

set sourcedir=T:\Streams\01-ready
set outputdir=T:\Streams\02-encoded
set finaldir=T:\ffmpeg\mp4-upload

set libdir=T:\ffmpeg\bin\%ffmpegversion%

set introvid=T:\Streams\10-source\kpg-intro-10pec-audio.mp4
set watermark=T:\Streams\10-source\kpg-logo.png
set introvidlen=3.00
set outputbitrate=24000

cd /d %libdir%

if not exist %outputdir% (
 mkdir %outputdir%
)

if not exist %finaldir% (
 mkdir %finaldir%
)

setlocal enabledelayedexpansion
@echo Checking %sourcedir%\*.mp4
for %%f in (%sourcedir%\*.mp4) do ( 
 if not exist "%outputdir%\%%~nf_watermarked.mp4" (
 %libdir%\ffmpeg.exe -i "%%f" -i "%watermark%" -filter_complex "overlay=0:0" -b:v %outputbitrate%k -s 2560x1440 -pix_fmt yuv420p -c:a copy "%outputdir%\%%~nf_watermarked.mp4"
 TIMEOUT 2
 )

 if not exist "%outputdir%\%%~nf_watermarked_ready.mp4" (
 %libdir%\ffmpeg.exe -i "%introvid%" -i "%outputdir%\%%~nf_watermarked.mp4" -an -filter_complex " [0:v]trim=start=0:end=%introvidlen%,setpts=PTS-STARTPTS[firstclip]; [1:v]trim=start=1,setpts=PTS-STARTPTS[secondclip]; [0:v]trim=start=%introvidlen%,setpts=PTS-STARTPTS[fadeoutsrc]; [1:v]trim=start=0:end=1,setpts=PTS-STARTPTS[fadeinsrc]; [fadeinsrc]format=pix_fmts=yuva420p, fade=t=in:st=0:d=1:alpha=1[fadein]; [fadeoutsrc]format=pix_fmts=yuva420p, fade=t=out:st=0:d=1:alpha=1[fadeout]; [fadein]fifo[fadeinfifo]; [fadeout]fifo[fadeoutfifo];[fadeoutfifo][fadeinfifo]overlay[crossfade]; [firstclip][crossfade][secondclip]concat=n=3[output]; [0:a][1:a] acrossfade=d=1 [audio]" -map "[output]" -map "[audio]" -c:v libx264 -c:a aac -b:v %outputbitrate%k -ar 44100 -ab 96k -sn "%outputdir%\%%~nf_watermarked_ready.mp4"
 TIMEOUT 2
 )

 if not exist "%finaldir%\%%~nf.mp4" (
 COPY "%outputdir%\%%~nf_watermarked_ready.mp4" "%finaldir%\%%~nf.mp4"
 TIMEOUT 2
 )
)

PAUSE