Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (59)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7271)

  • pthread : Avoid spurious wakeups

    18 octobre 2013, par Ben Jackson
    pthread : Avoid spurious wakeups
    

    pthread_wait_cond can wake up unexpectedly (Wikipedia : Spurious_wakeup).

    The FF_THREAD_SLICE thread mechanism could spontaneously execute
    jobs or allow the caller of avctx->execute to return before all
    jobs were complete.

    Test both cases to ensure the wakeup is real.

    Signed-off-by : Ben Jackson <ben@ben.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>
    Signed-off-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>
    Signed-off-by : Luca Barbato <lu_zero@gentoo.org>

    • [DH] libavcodec/pthread.c
  • 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 &#39;asm&#39;: invalid operand code &#39;R&#39;
    ./libavutil/arm/intmath.h:104:5: error: invalid &#39;asm&#39;: invalid operand code &#39;R&#39;
    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

  • problems for building FFMPEG library for android on windows

    6 février 2014, par user3275506

    I am developing application for video which supports all formats.
    After much research I came to conclusion that I have to use FFMPEG library
    I have downloaded that I followed some steps I am geting unexpected end of the file.

    #!/usr/bin/env bash
    NDK=cygdrive/C/AndroidNDKx86/android-ndk-r9b
    SYSROOT=$NDK/platforms/android-18/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/windows
    function build_one
    {  
    ./configure \
    --prefix=$PREFIX \
    --enable-shared \
    --disable-static \
    --disable-doc \
    --disable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --disable-avdevice \
    --disable-doc \
    --disable-symver \
    --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi \
    --target-os=linux \
    --arch=arm \
    --enable-cross-compile \
    --sysroot=$SYSROOT \
    --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
    --extra-ldflags="$ADDI_LDFLAGS" \
    $ADDITIONAL_CONFIGURE_FLAG

    make clean
    make -j4
    make install
    }
    CPU=arm
    PREFIX=$(pwd)/android/$CPU
    ADDI_CFLAGS="-marm"
    build_one

    Please tell me is the code wrong it gives output unexpected end of file

    I tried another one it was almost compile but during make at the end it got some errors
    Here is the updated script

    #!/bin/bash
       export TMPDIR=C:/cygwin/tmp
       ANDROID_API=android-18
       export ANDROID_NDK=C:/AndroidNDKx86/android-ndk-r9b
       export ANDROID_SDK=E:/Android/Android/Data/Android/AndroidADT/sdk
       SYSROOT=$ANDROID_NDK/platforms/$ANDROID_API/arch-arm
       ANDROID_BIN=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin
       CROSS_COMPILE=${ANDROID_BIN}/arm-linux-androideabi-
       export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools
       export ARM_ROOT=$ANDROID_NDK
       export ARM_INC=$ARM_ROOT/platforms/android-18/arch-arm/usr/include
       export ARM_LIB=$ARM_ROOT/platforms/android-18/arch-arm/usr/lib
       export LIB_INC=${HOME}/include
       export LIB_LIB=${HOME}/lib

       FLAGS="--target-os=linux
       --enable-cross-compile
       --cross-prefix=$CROSS_COMPILE
       --arch=arm --prefix=$HOME
       --disable-shared
       --enable-static
       --extra-libs=-static
       --extra-cflags=--static
       --enable-small
       --disable-asm
       --disable-yasm
       --disable-amd3dnow
       --disable-amd3dnowext
       --disable-mmx
       --disable-sse
       --disable-debug
       --disable-ssse3
       --disable-indevs"    
    ./configure $FLAGS \
    --cc="${CROSS_COMPILE}gcc
    --sysroot=${SYSROOT}"  \
    --cxx="${CROSS_COMPILE}g++ --sysroot=${SYSROOT}" \
    --nm="${CROSS_COMPILE}nm" \
    --ar="${CROSS_COMPILE}ar"
    make clean
    make -j4 || exit 1
    make install || exit 1

    Following is the output
    OUTPUT :

    WARNING: C:/AndroidNDKx86/android-ndk-r9b/toolchains/arm-linux-androideabi-
    4.8/prebuilt/windows/bin/arm-linux-androideabi-pkg-config not found, library detection
    may fail.
    CC      libavdevice/alldevices.o
    CC      libavdevice/avdevice.o
    CC      libavfilter/af_aconvert.o
    In file included from libavdevice/avdevice.c:19:0:
    ./libavutil/avassert.h:30:20: fatal error: stdlib.h: No such file or directory
    #include
                       ^
    compilation terminated.
    In file included from libavdevice/alldevices.c:21:0:
    ./config.h:8:18: warning: missing terminating " character [enabled by default]
    (GCC)"e CC_IDENT "gcc 4.8
                     ^
    ./config.h:9:7: warning: missing terminating " character [enabled by default]
    #define av_restrict restrict
          ^
    ./config.h:9:2: error: missing terminating " character
    #define av_restrict restrict
     ^
    common.mak:48: recipe for target &#39;libavdevice/avdevice.o&#39; failed
    make: *** [libavdevice/avdevice.o] Error 1
    make: *** Waiting for unfinished jobs....
    In file included from libavdevice/version.h:28:0,
                    from libavdevice/avdevice.h:22,
                    from libavdevice/alldevices.c:22:
    ./libavutil/avutil.h:120:1: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39;
    before &#39;unsigned&#39;
    unsigned avutil_version(void);
    ^
    In file included from ./libavutil/avutil.h:238:0,
                    from libavdevice/version.h:28,
                    from libavdevice/avdevice.h:22,
                    from libavdevice/alldevices.c:22:
    ./libavutil/common.h:29:19: fatal error: errno.h: No such file or directory
    #include
                      ^
    compilation terminated.
    CC      libavfilter/af_afade.o
    common.mak:48: recipe for target &#39;libavdevice/alldevices.o&#39; failed
    make: *** [libavdevice/alldevices.o] Error 1
    In file included from ./libavutil/channel_layout.h:25:0,
                    from libavfilter/af_aconvert.c:29:
    c:\androidndkx86\android-ndk-r9b\toolchains\arm-linux-androideabi-
    4.8\prebuilt\windows\lib\gcc\arm-linux-androideabi\4.8\include\stdint.h:9:26: fatal  
    error: stdint.h: No such file or directory
    # include_next
                             ^
    compilation terminated.
    common.mak:48: recipe for target &#39;libavfilter/af_aconvert.o&#39; failed
    make: *** [libavfilter/af_aconvert.o] Error 1
    In file included from ./libavutil/rational.h:31:0,
                    from ./libavutil/opt.h:30,
                    from libavfilter/af_afade.c:26:
    c:\androidndkx86\android-ndk-r9b\toolchains\arm-linux-androideabi-  
    4.8\prebuilt\windows\lib\gcc\arm-linux-androideabi\4.8\include\stdint.h:9:26: fatal    
    error: stdint.h: No such file or directory
    # include_next
                             ^
    compilation terminated.
    common.mak:48: recipe for target &#39;libavfilter/af_afade.o&#39; failed
    make: *** [libavfilter/af_afade.o] Error 1

    Is the script wrong ??