Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (54)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (9737)

  • How to compile FFmpeg for Android with clang in ubuntu18.04 ?

    31 juillet 2019, par user10959099

    I want to compile FFmpeg with clang as it’s more faster,but I don’t know how to do it in ubuntu.
    NDk version r16b ,ffmpeg version 4.1.

    I did it with gcc. here is my build script,and it works well.

    #!/bin/sh
    NDK=/home/gjy/ndk/android-ndk-r16b-linux-x86_64/android-ndk-r16b
    ANDROID_VERSION=19
    TOOLCHAIN_VERSION=4.9
    BUILD_PLATFORM=linux-x86_64
    ARCH=arm
    ANDROID_ARCH_ABI=armeabi
    HOST=arm-linux-androideabi
    CROSS=arm-linux-androideabi
    SYSROOT=${NDK}/platforms/android-${ANDROID_VERSION}/arch-${ARCH}/
    PREFIX=$(pwd)/android/${ANDROID_VERSION}/$ANDROID_ARCH_ABI
    TOOLCHAIN=${NDK}/toolchains/${HOST}-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}
    CFLAGS="-Os -fpic -march=armv5te -isysroot $NDK/sysroot -I$NDK/sysroot/usr/include/$CROSS -D__ANDROID_API__=$ANDROID_VERSION -U_FILE_OFFSET_BITS"
    CROSS_PREFIX=${TOOLCHAIN}/bin/${CROSS}-
    build(){
    echo "configuring $ANDROID_ARCH_ABI ANDROID_VERSION=$ANDROID_VERSION"
    ./configure \
       --prefix=$PREFIX \
       --enable-neon \
       --enable-hwaccels \
       --enable-gpl \
       --enable-postproc \
       --enable-shared \
       --enable-jni \
       --enable-mediacodec \
       --enable-decoder=h264_mediacodec \
       --enable-hwaccel=h264_mediacodec \
       --enable-decoder=hevc_mediacodec \
       --enable-decoder=mpeg4_mediacodec \
       --enable-decoder=vp8_mediacodec \
       --enable-decoder=vp9_mediacodec \
       --disable-static \
       --disable-doc \
       --enable-ffmpeg \
       --disable-ffplay \
       --disable-ffprobe \
       --enable-avdevice \
       --disable-doc \
       --disable-symver \
       --cross-prefix=$CROSS_PREFIX \
       --target-os=android \
       --arch=$ARCH \
       --disable-yasm \
       --enable-cross-compile \
       --sysroot=$SYSROOT \
       --extra-cflags="$CFLAGS " \
       --extra-ldflags="$ADDI_LDFLAGS" \
       $ADDITIONAL_CONFIGURE_FLAG
       make clean
       make -j4
       make install
       echo "$ANDROID_ARCH_ABI installed"
    }
    build

    I wonder how to do it with clang friendly.I’m still new int the NDK and I’ve just started learning.So I have no idea to do it at all.
    When I was trying turn to clang,and get many errors.
    After trying so many times,I update my build script with this question :

    FFMPEG source compilation failed with Android NDK Clang compiler (r16b) with error "the clang compiler does not support ’-mcpu=arm’"

    #!/bin/sh
    #r16b min support android-14  max android-8.1
    NDK=/home/gjy/ndk/android-ndk-r16b-linux-x86_64/android-ndk-r16b
    ANDROID_VERSION=19
    TOOLCHAIN_VERSION=4.9
    BUILD_PLATFORM=linux-x86_64
    ARCH=arm
    ANDROID_ARCH_ABI=armeabi
    HOST=arm-linux-androideabi
    CROSS=arm-linux-androideabi
    SYSROOT=${NDK}/platforms/android-${ANDROID_VERSION}/arch-${ARCH}/
    PREFIX=$(pwd)/android/${ANDROID_VERSION}/$ANDROID_ARCH_ABI
    TOOLCHAIN=${NDK}/toolchains/llvm/prebuilt/${BUILD_PLATFORM}/bin
    #LD
    LD=${NDK}/toolchains/${HOST}-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}/bin/${CROSS}-ld
    #AS
    AS=${NDK}/toolchains/${HOST}-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}/bin/${CROSS}-as
    #AR
    AR=${NDK}/toolchains/${HOST}-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}/bin/${CROSS}-ar
    CFLAGS="-mcpu=$ARCH -I$NDK/sysroot/usr/include/$CROSS -D__ANDROID_API__=$ANDROID_VERSION"
    CROSS_PREFIX=${NDK}/toolchains/${HOST}-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}/bin/${CROSS}-
    build(){
    echo "configuring $ANDROID_ARCH_ABI ANDROID_VERSION=$ANDROID_VERSION"
    ./configure \
       --prefix=$PREFIX \
       --toolchain=clang-usan \
       --cross-prefix=$CROSS_PREFIX \
       --enable-neon \
       --enable-hwaccels \
       --enable-gpl \
       --enable-postproc \
       --enable-shared \
       --disable-static \
       --enable-jni \
       --enable-mediacodec \
       --enable-decoder=h264_mediacodec \
       --enable-hwaccel=h264_mediacodec \
       --enable-decoder=hevc_mediacodec \
       --enable-decoder=mpeg4_mediacodec \
       --enable-decoder=vp8_mediacodec \
       --enable-decoder=vp9_mediacodec \
       --disable-doc \
       --enable-ffmpeg \
       --disable-ffplay \
       --disable-ffprobe \
       --enable-avdevice \
       --disable-doc \
       --disable-symver \
       --target-os=android \
       --extra-ldflags="-shared" \
       --arch=$ARCH \
       --cpu=$ANDROID_ARCH_ABI \
       --extra-cflags="-fPIE -fPIC -ffast-math -funroll-loops -mfloat-abi=softfp -mfpu=vfpv3-d16" \
       --enable-x86asm \
       --enable-cross-compile \
       --cc=$TOOLCHAIN/clang \
       --cxx=$TOOLCHAIN/clang++ \
       --ld=$LD \
       --as=$AS \
       --ar=$AR \
       --strip=${NDK}/toolchains/${HOST}-${TOOLCHAIN_VERSION}/prebuilt/${BUILD_PLATFORM}/${CROSS}-strip \
       $ADDITIONAL_CONFIGURE_FLAG
       #make clean
       #make -j4
       #make install
       echo "$ANDROID_ARCH_ABI installed"
    }
    build

    then I get error form config.log :

    /home/gjy/ndk/android-ndk-r16b-linux-x86_64/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-as -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -fPIE -fPIC -ffast-math -funroll-loops -mfloat-abi=softfp -mfpu=vfpv3-d16 -mcpu=armeabi -fPIC -c -o /tmp/ffconf.hfTGr6sO/test.o /tmp/ffconf.hfTGr6sO/test.S
    /home/gjy/ndk/android-ndk-r16b-linux-x86_64/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-as: invalid option -- '_'
    GNU assembler not found, install/update gas-preprocessor

    it seems like that the frist char was ignored. When I try :

    /home/gjy/ndk/android-ndk-r16b-linux-x86_64/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-as -fPIC -c -o /tmp/ffconf.jHtqLsFE/test.o /tmp/ffconf.jHtqLsFE/test.S
    invalid option -- P

    can any body help fine the problem?

  • ffmpeg android unable to build

    2 janvier 2014, par nmxprime

    My goal is to build ffmpeg static libraries so that i can use them with jni and call directly the functions defined in ffmpeg to encode series of images as h264 video stream and render it on screen using GLSurfaceVIew in android 2.3.6.

    Using https://www.ffmpeg.org/doxygen/0.6/api-example_8c-source.html i came to know that by having the required .so files and headers i can do that.

    I followed Android NDK & FFMPEG build and many others. Everywhere i found reference to the build scripts by roman10.

    I use Ubunthu 12.0.4 LTS with android-ndk-r9 and ffmpeg-0.10 source !

    Below is the built script i used !

    NDK=~/android-ndk-r9
    PLATFORM=$NDK/platforms/android-8/arch-arm/
    #PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.7/prebuilt/windows
    PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86

    function build_one
    {
    ./configure --target-os=linux \
    --prefix=$PREFIX \
    --enable-cross-compile \
    --extra-libs="-lgcc" \
    --arch=arm \
    --cc=$PREBUILT/bin/arm-linux-androideabi-gcc-4.8 \
    --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \  
    --nm=$PREBUILT/bin/arm-linux-androideabi-nm \
    --sysroot=$PLATFORM \
    --extra-cflags=" -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 " \
    --disable-shared \
    --enable-static \
    --extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog" \
    --disable-everything \
    --enable-demuxer=mov \
    --enable-demuxer=h264 \
    --disable-ffplay \
    --enable-protocol=file \
    --enable-avformat \
    --enable-avcodec \
    --enable-decoder=rawvideo \
    --enable-decoder=mjpeg \
    --enable-decoder=h263 \
    --enable-decoder=mpeg4 \
    --enable-decoder=h264 \
    --enable-parser=h264 \
    --disable-network \
    --enable-zlib \
    --disable-avfilter \
    --disable-avdevice \
    --disable-asm \
    $ADDITIONAL_CONFIGURE_FLAG

    make clean
    make  -j4 install
    $PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a inverse.o
    $PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib  -soname libffmpeg.so -shared -nostdlib  -z,noexecstack -Bsymbolic --whole-archive --no-undefined -o $PREFIX/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 $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a
    }


    #arm v7vfpv3
    CPU=armv7-a
    OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
    PREFIX=./android/$CPU
    ADDITIONAL_CONFIGURE_FLAG=
    build_one

    When i run the script( test_build.sh) i get following

    Unknown option "".
    See ./configure --help for available options.
    ./test_build.sh: line 34: --nm=/home/user/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-nm: No such file or directory
    CC      ffmpeg.o
    CC      cmdutils.o
    CC      libavdevice/alldevices.o
    CC      libavdevice/avdevice.o
    CC      libavdevice/dv1394.o
    ffmpeg.c: In function âopt_input_fileâ:
    ffmpeg.c:3698:9: warning: âloop_inputâ is deprecated (declared at libavformat/avformat.h:1049) [-Wdeprecated-declarations]
    ffmpeg.c: In function âopt_output_fileâ:
    ffmpeg.c:4483:9: warning: âloop_outputâ is deprecated (declared at libavformat/avformat.h:1025) [-Wdeprecated-declarations]
    CC      libavdevice/fbdev.o
    CC      libavdevice/lavfi.o
    CC      libavdevice/oss_audio.o
    CC      libavdevice/v4l2.o
    CC      libavfilter/af_aconvert.o
    libavfilter/af_aconvert.c:53:5: warning: function declaration isnât a prototype[-Wstrict-prototypes]
    libavfilter/af_aconvert.c:105:5: warning: function declaration isnât a prototype[-Wstrict-prototypes]
    CC      libavfilter/af_aformat.o
    CC      libavfilter/af_amerge.o
    CC      libavfilter/af_anull.o
    CC      libavfilter/af_aresample.o
    CC      libavfilter/af_ashowinfo.o
    CC      libavfilter/af_asplit.o
    CC      libavfilter/af_astreamsync.o
    CC      libavfilter/af_earwax.o
    CC      libavfilter/af_pan.o
    CC      libavfilter/af_silencedetect.o
    CC      libavfilter/af_volume.o
    CC      libavfilter/allfilters.o
    CC      libavfilter/asink_anullsink.o
    libavfilter/af_volume.c: In function âfilter_samplesâ:
    ./libavutil/arm/intmath.h:104:5: error: invalid 'asm': invalid operand code 'R'
    ./libavutil/arm/intmath.h:104:5: error: invalid 'asm': invalid operand code 'R'
    make: *** [libavfilter/af_volume.o] Error 1
    make: *** Waiting for unfinished jobs....
    ./test_build.sh: line 61: /home/user/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-ar: cannot execute binary file
    ./test_build.sh: line 62: /home/user/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-ld: cannot  binary file

    How can i get it work, or am i trying in wrong way ? Any help is appriciated !!

    Also if some one point me out the reason for errors. I dont' know why nm is showing error although it exist on specified path !
    Thank You

  • Who Invented FLIC ?

    26 mai 2011, par Multimedia Mike — Multimedia History

    I have been reading through “All Your Base Are Belong To Us : How 50 Years of Video Games Conquered Pop Culture” by Harold Goldberg. Despite the title, Zero Wing has yet to be mentioned (I’m about halfway done).



    I just made it through the chapter describing early breakthrough CD-ROM games, including Myst, The 7th Guest, and The 11th Hour. Some interesting tidbits :

    The 7th Guest
    Of course, Graeme Devine created a new FMV format (called VDX, documented here) for The 7th Guest. The player was apparently called PLAY and the book claims that Autodesk was so impressed by the technology that it licensed the player for use in its own products. When I think of an Autodesk multimedia format, I think of FLIC. The VDX coding format doesn’t look too much like FLIC, per my reading.

    Here’s the relevant passage (pp 118-119) :

    Devine began working on creating software within the CD-ROM disk that would play full-motion video. Within days he had a robust but small ninety-kilobyte player called PLAY that was so good, it was licensed by Autodesk, the makers of the best 3-D animation program at the time. Then Devine figured out a way to compress the huge video files so that they would easily fit on two CD-ROMs.

    Googling for “autodesk trilobyte play program” (Trilobyte was the company behind 7th Guest) led me to this readme file for a program called PLAY73 (hosted at Jason Scott’s massive CD-ROM archive, and it’s on a disc that, incidentally, I donated to the archive ; so, let’s here it for Jason’s tireless archival efforts ! And for Google’s remarkable indexing prowess). The file — dated September 10, 1991 — mentions that it’s a FLICK player, copyright Trilobyte software.



    However, it also mentions being a Groovie Player. Based on ScummVM’s reimplementation of the VDX format, Groovie might refer to the engine behind The 7th Guest.

    So now I’m really interested : Did Graeme Devine create the FLIC file format ? Multimedia nerds want to know !

    I guess not. Thanks to Jim Leonard for digging up this item : “I developed the flic file format for the Autodesk Animator.” Jim Kent, Dr. Dobbs Magazine, March 1993.

    The PLAY73 changelog reveals something from the bad old days of DOS/PC programming : The necessity of writing graphics drivers for 1/2 dozen different video adapters. The PLAY73 readme file also has some vintage contact address for Graeme Devine ; remember when addresses looked like these ?

    If you have any comments, please send them to :
    	Compuserve : 72330,3276
    	Genie : G.DEVINE
    	Internet : 72330,3276@compuserve.com
    

    The 11th Hour
    The book didn’t really add anything I didn’t already know regarding the compression format (RoQ) used in 11th Hour. I already knew how hard Devine worked at it. This book took pains to emphasize the emotional toll taken on the format’s creator.

    I wonder if he would be comforted to know that, more than 15 years later, people are still finding ways to use the format.