Recherche avancée

Médias (91)

Autres articles (53)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • 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 (...)

Sur d’autres sites (9250)

  • SIGSEV when loading ffmpeg library

    20 février 2014, par gookman

    I am trying to build ffmpeg for Android similar to AndroidFFmpeg.

    I have configured ffmpeg so that I have only what I need. My android_build.sh looks like
    this :

    #!/bin/bash

    if [ "$NDK" = "" ]; then
       echo NDK variable not set, exiting
       echo "Use: export NDK=/your/path/to/android-ndk"
       exit 1
    fi

    OS=`uname -s | tr '[A-Z]' '[a-z]'`
    function build_ffmpeg
    {
       PLATFORM=$NDK/platforms/$PLATFORM_VERSION/arch-$ARCH/
       CC=$PREBUILT/bin/$EABIARCH-gcc
       CROSS_PREFIX=$PREBUILT/bin/$EABIARCH-
       PKG_CONFIG=${CROSS_PREFIX}pkg-config
       if [ ! -f $PKG_CONFIG ];
       then
          cat > $PKG_CONFIG << EOF
    #!/bin/bash
    pkg-config \$*
    EOF
          chmod u+x $PKG_CONFIG
       fi
       NM=$PREBUILT/bin/$EABIARCH-nm
       cd ffmpeg
       export PKG_CONFIG_LIBDIR=$(pwd)/$PREFIX/lib/pkgconfig/
       export PKG_CONFIG_PATH=$(pwd)/$PREFIX/lib/pkgconfig/
       ./configure --target-os=linux \
           --prefix=$PREFIX \
           --enable-small \
           --enable-cross-compile \
           --extra-libs="-lgcc" \
           --arch=$ARCH \
           --cc=$CC \
           --cross-prefix=$CROSS_PREFIX \
           --nm=$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 \
           --enable-runtime-cpudetect \
           --extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib  -nostdlib -lc -lm -ldl -llog -L$PREFIX/lib" \
           --extra-cflags="-I$PREFIX/include" \
           --disable-everything \
           --enable-muxer=mp4 \
           --enable-protocol=file \
           --enable-decoder=mpeg4 \
           --enable-encoder=mpeg4 \
           --enable-avformat \
           --enable-avcodec \
           --enable-avresample \
           --enable-zlib \
           --disable-doc \
           --disable-ffplay \
           --disable-ffmpeg \
           --disable-ffplay \
           --disable-ffprobe \
           --disable-ffserver \
           --disable-avdevice \
           --enable-nonfree \
           --enable-version3 \
           --enable-memalign-hack \
           --enable-asm \
           $ADDITIONAL_CONFIGURE_FLAG \
           || exit 1
       make clean || exit 1
       make -j4 install || exit 1

       cd ..
    }

    function build_one {
       cd ffmpeg
       PLATFORM=$NDK/platforms/$PLATFORM_VERSION/arch-$ARCH/
       $PREBUILT/bin/$EABIARCH-ld -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -L$PREFIX/lib  -soname $SONAME -shared -nostdlib  -z noexecstack -Bsymbolic --whole-archive --no-undefined -o $OUT_LIBRARY -lavcodec -lavformat -lavresample -lavutil -lc -lm -lz -ldl -llog --dynamic-linker=/system/bin/linker -zmuldefs $PREBUILT/lib/gcc/$EABIARCH/4.6/libgcc.a || exit 1
      cd ..
    }

    #arm v5
    EABIARCH=arm-linux-androideabi
    ARCH=arm
    CPU=armv5
    OPTIMIZE_CFLAGS="-marm -march=$CPU"
    PREFIX=../ffmpeg-build/armeabi
    OUT_LIBRARY=$PREFIX/libffmpeg.so
    ADDITIONAL_CONFIGURE_FLAG=
    SONAME=libffmpeg.so
    PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/$OS-x86_64
    PLATFORM_VERSION=android-5
    build_ffmpeg
    build_one

    #arm v7vfpv3
    EABIARCH=arm-linux-androideabi
    ARCH=arm
    CPU=armv7-a
    OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
    PREFIX=../ffmpeg-build/armeabi-v7a
    OUT_LIBRARY=$PREFIX/libffmpeg.so
    ADDITIONAL_CONFIGURE_FLAG=
    SONAME=libffmpeg.so
    PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/$OS-x86_64
    PLATFORM_VERSION=android-5
    build_ffmpeg
    build_one

    My Android.mk file looks like this :

    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)
    LOCAL_MODULE := ffmpeg-prebuilt
    LOCAL_SRC_FILES := ffmpeg-build/$(TARGET_ARCH_ABI)/libffmpeg.so
    LOCAL_EXPORT_C_INCLUDES := ffmpeg-build/$(TARGET_ARCH_ABI)/include
    LOCAL_EXPORT_LDLIBS := ffmpeg-build/$(TARGET_ARCH_ABI)/libffmpeg.so
    LOCAL_PRELINK_MODULE := true
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_ALLOW_UNDEFINED_SYMBOLS=false
    LOCAL_MODULE    := native
    LOCAL_SRC_FILES := native.c
    LOCAL_LDLIBS := -llog
    LOCAL_C_INCLUDES := $(LOCAL_PATH)/ffmpeg-build/$(TARGET_ARCH_ABI)/include
    LOCAL_SHARED_LIBRARY := ffmpeg-prebuilt
    include $(BUILD_SHARED_LIBRARY)

    The actual code I am trying to use is very simple and looks like this :

    #include
    #include <android></android>log.h>
    #include <libavcodec></libavcodec>avcodec.h>
    #include <libavformat></libavformat>avformat.h>

    static jint Java_dk_bendingspoons_clipstitch_VideoLoader_start(JNIEnv * env, jobject thiz, jstring path)
    {
       __android_log_print(ANDROID_LOG_VERBOSE, "native", "Before register all.");
       av_register_all();

       return 0;
    }

    The compilation of both ffmpeg and my code is without any errors. The problem is that when I am loading the library in Android it fails with the error : Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 27050. This leads me to believe that there is something that I am doing wrong when compiling.

    I should mention that I am compiling on Ubuntu 13.10 x64 with NDK-r9c-x86_64.

    How should I proceed in finding out what the issue is ?

  • arm-linux-androideabi-gcc is unable to create an executable - compile ffmpeg for android armeabi devices

    6 décembre 2015, par Chaitanya Chandurkar

    I am trying to compile ffmpeg for android armeabi devices.
    I am following tutorial by roman10.net
    His given build script builds ffmpeg for armv7-a devices. I want to build it for armeabi.

    My ultimate aim is to run ffmpeg commands on android armeabi and armv7-a devices.

    So I change the script’s CPU part from

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

    to

    #arm v6
    CPU=armv6
    OPTIMIZE_CFLAGS="-marm -march=$CPU"
    PREFIX=./android/$CPU
    ADDITIONAL_CONFIGURE_FLAG=
    build_one

    (I thought changing it to armv6 would build ffmpeg compatible with armeabi devices. m I wrong ?)

    Doubt 1 :
    Do I also have to change toolchain ?
    i.e from arm-linux-androideabi-4.4.3 to arm-eabi-4.4.0 ?????

    Doubt 2 :

    When I try running ./build.sh (without changing toolchain) it gives me following error :

    /home/chaitanya/android/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc is unable to create an executable file.
    C compiler test failed.

    If you think configure made a mistake,.. blaah blahh blaah

    after that I got lot of warnings saying :
    ‘sub_id’ is deprecated and many other function deprecated warnings.

    platform : ubuntu 11.10
    ffmpeg version : 0.11.2
    NDK : android-ndk-r5b

    Here is my build script :

    #!/bin/bash
    ######################################################
    # Usage:
    # put this script in top of FFmpeg source tree
    # ./build_android
    # It generates binary for following architectures:
    # ARMv6
    # ARMv6+VFP
    # ARMv7+VFM-ïd16 (Tegra2)
    # ARMv7+Neon (Cortex-A8)
    # Customizing:
    # 1. Feel free to change ./configure parameters for more features
    # 2. To adapt other ARM variants
    # set $CPU and $OPTIMIZE_CFLAGS
    # call build_one
    ######################################################
    NDK=~/android/android-ndk-r5b
    PLATFORM=$NDK/platforms/android-8/arch-arm/
    PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/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 \
       --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 \
       $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 v6
    CPU=armv6
    OPTIMIZE_CFLAGS="-marm -march=$CPU"
    PREFIX=./android/$CPU
    ADDITIONAL_CONFIGURE_FLAG=
    build_one

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

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

    #arm v7n
    #CPU=armv7-a
    #OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=neon -marm -march=$CPU -mtune=cortex-a8"
    #PREFIX=./android/$CPU
    #ADDITIONAL_CONFIGURE_FLAG=--enable-neon
    #build_one

    #arm v6+vfp
    #CPU=armv6
    #OPTIMIZE_CFLAGS="-DCMP_HAVE_VFP -mfloat-abi=softfp -mfpu=vfp -marm -march=$CPU"
    #PREFIX=./android/${CPU}_vfp
    #ADDITIONAL_CONFIGURE_FLAG=
    #build_one

    How do I tackle this problem ? what is going wrong ?

  • ffmpeg failing to convert

    27 mars 2014, par Daniel7912

    I am using the following command to convert a mp4 on my server to webm as part of a Node.js script.

    var command = execSync(&#39;ffmpeg -i &#39;+video+&#39; -vpre libvpx-720p -cpu-used -5 -deadline realtime -b 3900k -an -f webm -y &#39;+saveTo);

    When running the command in a regular terminal, it works fine. However, when running it as above using the execSync() node package, I get the following console output.

    Error: ffmpeg version 1.0.8 Copyright (c) 2000-2013 the FFmpeg developers
     built on Mar 27 2014 17:09:06 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5)
     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=&#39;-O2 -pipe -march=native -fomit-frame-pointer&#39; --extra-cflags=&#39;-O2 -pipe -march=native -fomit-frame-pointer&#39; --extra-cxxflags
    =&#39;-O2 -pipe -march=native -fomit-frame-pointer&#39; --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-avresample --disable-stripp
    ing --disable-debug --disable-doc --disable-vaapi --disable-vdpau --disable-ffplay --disable-runtime-cpudetect --enable-libmp3lame --enable-libvo-aacenc --enable-libthe
    ora --enable-libfdk-aac --enable-nonfree --disable-indev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss -
    -disable-outdev=sdl --enable-libvorbis --enable-libvpx --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmxext --disable-ssse3 --disab
    le-vis --disabl  libavutil      51. 73.101 / 51. 73.101
     libavcodec     54. 59.100 / 54. 59.100
     libavformat    54. 29.104 / 54. 29.104
     libavdevice    54.  2.101 / 54.  2.101
     libavfilter     3. 17.100 /  3. 17.100
     libswscale      2.  1.101 /  2.  1.101
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#39;/path/to/video/input.mp4&#39;:
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isomavc1
       creation_time   : 2013-08-24 21:58:35
       encoder         : HandBrake 0.9.9 2013051800
     Duration: 00:06:31.46, start: 0.000000, bitrate: 5092 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 4919 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Metadata:
         creation_time   : 2013-08-24 21:58:35
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 168 kb/s
       Metadata:
         creation_time   : 2013-08-24 21:58:35
    Please use -b:a or -b:v, -b is ambiguous
    [libvpx @ 0x7f0c40] v1.3.0
    Output #0, webm, to &#39;/path/to/video/output.webm&#39;:
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isomavc1
       encoder         : Lavf54.29.104
       Stream #0:0(und): Video: vp8, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=11-51, 3900 kb/s, 1k tbn, 25 tbc
       encoder         : Lavf54.29.104                                                                                                                          [4009/9202]
       Stream #0:0(und): Video: vp8, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=11-51, 3900 kb/s, 1k tbn, 25 tbc
       Metadata:
         creation_time   : 2013-08-24 21:58:35
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libvpx)
    Press [q] to stop, [?] for help
    [h264 @ 0x8f42a0] AVC: nal size 3235393
       Last message repeated 1 times
    [h264 @ 0x8f42a0] no frame!
    [h264 @ 0x7be7e0] concealing 7123 DC, 7123 AC, 7123 MV errors in P frame
    [h264 @ 0x8f46c0] AVC: nal size 2572289
       Last message repeated 1 times
    [h264 @ 0x8f46c0] no frame!
    [h264 @ 0x8f4ae0] AVC: nal size 11559745
       Last message repeated 1 times
    [h264 @ 0x8f4ae0] no frame!
    [h264 @ 0x8f4f00] AVC: nal size 781975966
       Last message repeated 1 times
    [h264 @ 0x8f4f00] no frame!
    [h264 @ 0x7be7e0] AVC: nal size -1537130086
       Last message repeated 1 times
    [h264 @ 0x7be7e0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f42a0] AVC: nal size -1303101030
       Last message repeated 1 times
    [h264 @ 0x8f42a0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f46c0] AVC: nal size 833290655
       Last message repeated 1 times
    [h264 @ 0x8f46c0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f4ae0] AVC: nal size -816365157
       Last message repeated 1 times
    [h264 @ 0x8f4ae0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f4f00] AVC: nal size 776798623
       Last message repeated 1 times
    [h264 @ 0x8f4f00] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x7be7e0] AVC: nal size -824622693
       Last message repeated 1 times
    [h264 @ 0x7be7e0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f42a0] AVC: nal size 1276789151
    Error while decoding stream #0:0: Operation not permitted
    frame=    4 fps=0.0 q=0.0 Lsize=     107kB time=00:00:00.16 bitrate=5476.5kbits/s    
    video:106kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.473334%
    Received signal 2: terminating.

    The 'no frame' bits repeat several thousand times before it reaches the final section.

    Could someone tell me what's wrong ?

    Thanks for any help