Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (83)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Liste des distributions compatibles

    26 avril 2011, par

    Le tableau ci-dessous correspond à la liste des distributions Linux compatible avec le script d’installation automatique de MediaSPIP. Nom de la distributionNom de la versionNuméro de version Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    Si vous souhaitez nous aider à améliorer cette liste, vous pouvez nous fournir un accès à une machine dont la distribution n’est pas citée ci-dessus ou nous envoyer le (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (5950)

  • Compile FFMPEG + x264 - undefined references

    18 juin 2013, par Tishu

    I have been trying to find a solution online for a couple of days with no luck. I am using Ubuntu and trying to compile the latest FFMPEG stable version (1.0.1) with x264 support. I made sure I uninstalled any existing x264 then I downloaded the latest x264 source and compiled it with the following config :

    ./configure --prefix=$PREFIX \
       --enable-shared \
       --enable-static \
       --disable-gpac \
       --extra-cflags=" -I$ARM_INC -fPIC -DANDROID -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fno-short-enums -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -march=armv5te -msoft-float -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wa,--noexecstack -MMD -MP " \
       --extra-ldflags=" -nostdlib -Bdynamic -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,nocopyreloc -Wl,-soname,/usr/lib/libz.so -Wl,-rpath-link=$ARM_LIB,-dynamic-linker=/system/bin/linker -L$ARM_LIB -lc -lm -ldl -lgcc" \
       --cross-prefix=${ARM_PRE}- \
       --disable-asm \
       --host=arm-linux \

       make clean
       make install

    All goes well, and I checked the installed version :

    x264 -V
       x264 0.129.x
       built on Dec 27 2012, gcc: 4.6.1
       configuration: --bit-depth=8 --chroma-format=all
       x264 license: GPL version 2 or later

    I then try to compile FFMPEG with the following options :

    ./configure --target-os=linux \
       --enable-libx264 \
       --enable-gpl \
       --prefix=$PREFIX \
       --extra-cflags="-I/home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/android/armv7-a/include -I/home/tishu/Workspaces/ffmpeg/ffmpeg/jni/x264 -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums  -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " \
       --extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L/home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/android/armv7-a/lib -L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog" \
       --enable-cross-compile \
       --extra-libs="-lgcc" \
       --arch=arm \
       --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
       --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
       --nm=$PREBUILT/bin/arm-linux-androideabi-nm \
       --sysroot=$PLATFORM \

    The configure and make clean/make install work well, but when I try to create the .so file the following command fails :

    /home/tishu/Apps/android-ndk-r8d/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ld
       -rpath-link=./android/armv7-a/usr/lib -L/home/tishu/Apps/android-ndk-r8d/platforms/android-14/arch-arm/usr/lib -soname libffmpeg.so -shared -nostdlib  -z,noexecstack -Bsymbolic \
       --whole-archive --no-undefined -o ./android/armv7-a/libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a libavutil/libavutil.a libswscale/libswscale.a -lc -lm -lz -ldl -llog  \
       --warn-once \
       --dynamic-linker=/system/bin/linker /home/tishu/Apps/android-ndk-r8d/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a

    This fails with the following output :

    libavcodec/libavcodec.a(libx264.o): In function `X264_frame':
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:159: undefined reference to `x264_picture_init'
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:179: undefined reference to `x264_encoder_reconfig'
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:190: undefined reference to `x264_encoder_encode'
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:196: undefined reference to `x264_encoder_delayed_frames'
    libavcodec/libavcodec.a(libx264.o): In function `encode_nals':
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:101: undefined reference to `x264_bit_depth'
    libavcodec/libavcodec.a(libx264.o): In function `X264_close':
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:231: undefined reference to `x264_encoder_close'
    libavcodec/libavcodec.a(libx264.o): In function `X264_init':
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:284: undefined reference to `x264_param_default'
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:292: undefined reference to `x264_param_default_preset'
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:314: undefined reference to `x264_param_parse'
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:459: undefined reference to `x264_param_apply_fastfirstpass'
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:490: undefined reference to `x264_param_apply_profile'
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:533: undefined reference to `x264_encoder_open_129'
    /home/tishu/Workspaces/ffmpeg/ffmpeg/jni/ffmpeg-1.0.1/libavcodec/libx264.c:544: undefined reference to `x264_encoder_headers'

    The x264 version it is looking for (129) is the one installed and compiled succesfully with —eanable-shared. Obviously all compiles fine when I do not include libx64.

    Question : How can I specify the include path for the last command ? I tried adding the path to $PATH and also adding this as an argument with no luck : -I/home/tishu/Workspaces/ffmpeg/ffmpeg/jni/x264

    Thanks

  • cygwin make errors : ffmpeg compile with ndk

    1er mars 2013, par Bryce

    Recently I'm compiling ffmpeg for android with ndk and I do this as this article(http://vec.io/posts/how-to-build-ffmpeg-with-android-ndk ). configure is right,
    but when I begin to make, it makes errors.
    configure shell :

    export TMPDIR=D:/temp/android
    export NDK=/cygdrive/D/DevelopKit/android-ndk-r8d
    export PATH=/cygdrive/C/cygwin/tmp/ffmpeg/bin:$PATH
    export CC=arm-linux-androideabi-gcc
    export LD=arm-linux-androideabi-ld
    export AR=arm-linux-androideabi-ar
    export C_INCLUDE_PATH=/cygdrive/C/cygwin/tmp/ffmpeg/sysroot/usr/include
    export LIBRARY_PATH=/cygdrive/C/cygwin/tmp/ffmpeg/sysroot/usr/lib
    CFLAGS="-O3 -Wall -mthumb -pipe -fpic -fasm \
     -finline-limit=300 -ffast-math \
     -fstrict-aliasing -Werror=strict-aliasing \
     -fmodulo-sched -fmodulo-sched-allow-regmoves \
     -Wno-psabi -Wa,--noexecstack \
     -D__ARM_ARCH_5__ -D__ARM_ARCH_5E__ \
     -D__ARM_ARCH_5T__ -D__ARM_ARCH_5TE__ \
     -DANDROID -DNDEBUG"

    EXTRA_CFLAGS="-march=armv7-a -mfpu=neon -mfloat-abi=softfp -mvectorize-with-neon-quad"
    EXTRA_LDFLAGS="-Wl,--fix-cortex-a8"

    FFMPEG_FLAGS="--prefix=/tmp/ffmpeg/build \
     --target-os=linux \
     --arch=arm \
     --enable-cross-compile \
     --cross-prefix=arm-linux-androideabi- \
     --enable-shared \
     --disable-symver \
     --disable-doc \
     --disable-ffplay \
     --disable-ffmpeg \
     --disable-ffprobe \
     --disable-ffserver \
     --disable-avdevice \
     --disable-avfilter \
     --disable-encoders  \
     --disable-muxers \
     --disable-filters \
     --disable-devices \
     --disable-everything \
     --enable-protocols  \
     --enable-parsers \
     --enable-demuxers \
     --disable-demuxer=sbg \
     --enable-decoders \
     --enable-bsfs \
     --enable-network \
     --enable-swscale  \
     --enable-asm \
     --enable-version3"

    ./configure $FFMPEG_FLAGS --extra-cflags="$CFLAGS $EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS"

    Configure Result(Part of config.mak) :

    ifndef FFMPEG_CONFIG_MAK
    FFMPEG_CONFIG_MAK=1
    FFMPEG_CONFIGURATION=--prefix=/tmp/ffmpeg/build --target-os=linux --arch=arm --enable-cross-compile --cross-prefix=arm-linux-androideabi- --enable-shared --disable-symver --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-ffserver --disable-avdevice --disable-avfilter --disable-encoders --disable-muxers --disable-filters --disable-devices --disable-everything --enable-protocols --enable-parsers --enable-demuxers --disable-demuxer=sbg --enable-decoders --enable-bsfs --enable-network --enable-swscale --enable-asm --enable-version3 --extra-cflags='-O3 -Wall -mthumb -pipe -fpic -fasm   -finline-limit=300 -ffast-math   -fstrict-aliasing -Werror=strict-aliasing   -fmodulo-sched -fmodulo-sched-allow-regmoves   -Wno-psabi -Wa,--noexecstack   -D__ARM_ARCH_5__ -D__ARM_ARCH_5E__   -D__ARM_ARCH_5T__ -D__ARM_ARCH_5TE__   -DANDROID -DNDEBUG -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mvectorize-with-neon-quad' --extra-ldflags='-Wl,--fix-cortex-a8'
    prefix=/tmp/ffmpeg/build
    LIBDIR=$(DESTDIR)${prefix}/lib
    SHLIBDIR=$(DESTDIR)${prefix}/lib
    INCDIR=$(DESTDIR)${prefix}/include
    BINDIR=$(DESTDIR)${prefix}/bin
    DATADIR=$(DESTDIR)${prefix}/share/ffmpeg
    MANDIR=$(DESTDIR)${prefix}/share/man
    SRC_PATH=.
    ifndef MAIN_MAKEFILE
    SRC_PATH:=$(SRC_PATH:.%=..%)
    endif
    CC_IDENT=gcc 4.6
    (GCC)
    ARCH=arm
    CC=arm-linux-androideabi-gcc
    CXX=arm-linux-androideabi-g++
    AS=arm-linux-androideabi-gcc
    LD=arm-linux-androideabi-gcc
    DEPCC=arm-linux-androideabi-gcc
    DEPCCFLAGS= $(CPPFLAGS)
    DEPAS=arm-linux-androideabi-gcc
    DEPASFLAGS= $(CPPFLAGS)
    YASM=yasm
    DEPYASM=yasm
    AR=arm-linux-androideabi-ar
    ARFLAGS=rc
    AR_O=$@

    But when I make it

    CC  libavformat/4xm.o
    In file included from ./libavutil/bswap.h:35:0,
                    from ./libavutil/intreadwrite.h:25,
                    from libavformat/4xm.c:30:
    ./config.h:8:18: warning: missing terminating " character [enabled by default]
    In file included from ./libavutil/bswap.h:35:0,
                    from ./libavutil/intreadwrite.h:25,
                    from libavformat/4xm.c:30:
    ./config.h:9:7: warning: missing terminating " character [enabled by default]
    ./config.h:9:2: error: missing terminating " character
    In file included from ./libavutil/intreadwrite.h:25:0,
                    from libavformat/4xm.c:30:
    ./libavutil/bswap.h:58:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'static'
    common.mak:48: recipe for target `libavformat/4xm.o' failed
    make: *** [libavformat/4xm.o] Error 1

    It is the character error and I guess it is the windows character(I'm using cygwin), I tried dos2unix but it didn't work. Please help me and thanks for advising.

  • FFMPEG Error VC1 to X264 (maybe decoding VC1)

    29 janvier 2013, par Xatian

    I am encountering the following error when transcoding using FFMPEG.
    It seams to me that it's an error decoding the VC1 format and has actually nothing to do with the target format (x264) I want to transcode.

    I tracked the error to this source-file :

    http://cekirdek.pardus.org.tr/ ismail/ffmpeg-docs/vc1_8c-source.html

    but I don't know how to set the profile to a value != simple.

    FFMPEG Output :

    ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
     built on Jan 16 2013 22:52:43 with gcc 4.6.3 (Gentoo 4.6.3 p1.10, pie-0.5.2)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -march=native -pipe' --extra-cflags='-O2 -march=native -pipe' --extra-cxxflags='-O2 -march=native -pipe' --disable-static --enable-gpl --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-network --disable-vaapi --disable-vdpau --disable-ffplay --disable-runtime-cpudetect --enable-libx264 --disable-indev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sdl --enable-libfreetype --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmxext --disable-vis --disable-neon --cpu=host --enable-hardcoded-tables
     libavutil      52. 13.100 / 52. 13.100
     libavcodec     54. 86.100 / 54. 86.100
     libavformat    54. 59.106 / 54. 59.106
     libavdevice    54.  3.102 / 54.  3.102
     libavfilter     3. 32.100 /  3. 32.100
     libswscale      2.  1.103 /  2.  1.103
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  2.100 / 52.  2.100
    [NULL @ 0x1f99a90] LOOPFILTER shall not be enabled in Simple Profile
    [NULL @ 0x1f99a90] FASTUVMC unavailable in Simple Profile
    [NULL @ 0x1f99a90] Old interlaced mode is not supported
    [NULL @ 0x1f99a90] Old WMV3 version detected, some frames may be decoded incorrectly
    [NULL @ 0x1f99a90] Old interlaced mode is not supported
    [NULL @ 0x1f99a90] FASTUVMC unavailable in Simple Profile
    [NULL @ 0x1f99a90] LOOPFILTER shall not be enabled in Simple Profile
    [NULL @ 0x1f99a90] FASTUVMC unavailable in Simple Profile
    [NULL @ 0x1f99a90] LOOPFILTER shall not be enabled in Simple Profile
    [NULL @ 0x1f99a90] FASTUVMC unavailable in Simple Profile
    Last message repeated 1 times
    [NULL @ 0x1f99a90] LOOPFILTER shall not be enabled in Simple Profile
    [NULL @ 0x1f99a90] FASTUVMC unavailable in Simple Profile
    [NULL @ 0x1f99a90] LOOPFILTER shall not be enabled in Simple Profile
    [NULL @ 0x1f99a90] FASTUVMC unavailable in Simple Profile
    Last message repeated 1 times
    ======
    ---> This goes on forever ... skipped
    ======
    [NULL @ 0x1f99a90] FASTUVMC unavailable in Simple Profile
    [NULL @ 0x1f99a90] LOOPFILTER shall not be enabled in Simple Profile
    [NULL @ 0x1f99a90] FASTUVMC unavailable in Simple Profile
    [NULL @ 0x1f99a90] Chroma scaling is not supported, expect wrong picture
    [NULL @ 0x1f99a90] LOOPFILTER shall not be enabled in Simple Profile
    [NULL @ 0x1f99a90] FASTUVMC unavailable in Simple Profile
    [NULL @ 0x1f99a90] LOOPFILTER shall not be enabled in Simple Profile
    [NULL @ 0x1f99a90] FASTUVMC unavailable in Simple Profile
    [NULL @ 0x1f99a90] LOOPFILTER shall not be enabled in Simple Profile
    [vc1 @ 0x1f93760] max_analyze_duration 5000000 reached at 5000000
    [vc1 @ 0x1f93760] Could not find codec parameters for stream 0 (Video: vc1): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [vc1 @ 0x1f93760] Estimating duration from bitrate, this may be inaccurate
    test.vc1: could not find codec parameters

    Here is the CMD-line i use ... xD
    Basically I stripped EVERYTHING (codec-related and quality-related) because the error happens no matter what I pass ...

    ffmpeg -i test.vc1 test.mkv