Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

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

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (8574)

  • Cutting whatsapp shared videos using FFMPEG

    2 août 2015, par Bhuvnesh Varma

    I am using hiteshsondhi88/ffmpeg-android library to time or cut videos.I have added below dependency.

    compile 'com.github.hiteshsondhi88.libffmpeg:FFmpegAndroid:0.2.5'

    I am using below command

    execFFmpegCommand("-i " + path + " -ss " + startMs / 1000 + " -to " + endMs / 1000 + " -strict -2 -async 1 " + dest.getAbsolutePath());

    to cut or trim videos.

    private void execFFmpegCommand(final String command) {
           try {
               ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
                   @Override
                   public void onFailure(String s) {
                       Log.e("Preview", "FAILED with output : " + s);
                   }

                   @Override
                   public void onSuccess(String s) {
                       Log.e("Preview", "SUCCESS with output : " + s);
                   }

                   @Override
                   public void onProgress(String s) {
                       Log.e("Preview", "Started command : ffmpeg " + command);
                       Log.e("Preview", "progress : " + s);
                   }

                   @Override
                   public void onStart() {
                       Log.e("Preview", "Started command : ffmpeg " + command);

                   }

                   @Override
                   public void onFinish() {
                       Log.e("Preview", "Finished command : ffmpeg " + command);



                   }
               });
           } catch (FFmpegCommandAlreadyRunningException e) {
               // do nothing for now
           }
       }

    Its working for most videos but for some videos its NOT working especially for videos that are shared from whatssapp.It gives below error..I am using Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_MOVIES ) for storage of videos.

    FAILED with output : WARNING: linker: files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
       ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
       built on Oct  7 2014 15:11:41 with gcc 4.8 (GCC)
       configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/x86 --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
       libavutil      54.  7.100 / 54.  7.100
       libavcodec     56.  1.100 / 56.  1.100
       libavformat    56.  4.101 / 56.  4.101
       libavdevice    56.  0.100 / 56.  0.100
       libavfilter     5.  1.100 /  5.  1.100
       libswscale      3.  0.100 /  3.  0.100
       libswresample   1.  1.100 /  1.  1.100
       libpostproc    53.  0.100 / 53.  0.100
       /storage/emulated/0/1: No such file or directory
  • FFMPEG not able to trim some videos

    2 août 2015, par Bhuvnesh Varma

    I am using hiteshsondhi88/ffmpeg-android library to time or cut videos.It works fine for most videos but for some of the videos it fails and give below error especially for videos shared from whatsapp.I am using Environment.getExternalStoragePublicDirectory(
    Environment.DIRECTORY_MOVIES
    ) for storage of videos.Whats does this error means and why i am not able to crop/trim some videos ?

    FAILED with output : WARNING: linker: /data/data/com.peoplecloudlabs.apps.guggu/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
       ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
       built on Oct  7 2014 15:11:41 with gcc 4.8 (GCC)
       configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/x86 --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
       libavutil      54.  7.100 / 54.  7.100
       libavcodec     56.  1.100 / 56.  1.100
       libavformat    56.  4.101 / 56.  4.101
       libavdevice    56.  0.100 / 56.  0.100
       libavfilter     5.  1.100 /  5.  1.100
       libswscale      3.  0.100 /  3.  0.100
       libswresample   1.  1.100 /  1.  1.100
       libpostproc    53.  0.100 / 53.  0.100
       /storage/emulated/0/1: No such file or directory
  • How to compile ffmpeg to support hw codec ?

    23 juillet 2015, par Kame Li

    I modified the build_libstagefright.sh to compile ffmpeg-2.7.1, and I got following libraries. But I can not load them successfully.
    ./ffmpeg-2.7.1/libswresample/libswresample.so
    ./ffmpeg-2.7.1/libavfilter/libavfilter.so
    ./ffmpeg-2.7.1/libavcodec/libavcodec.so
    ./ffmpeg-2.7.1/libswscale/libswscale.so
    ./ffmpeg-2.7.1/libavformat/libavformat.so
    ./ffmpeg-2.7.1/libavutil/libavutil.so`

    Detail of build_libstagefright.sh is as bellow. Can anyone help to take a look what happen ? If you already compiled the libs to support hw codec, can you share them for me ? Thanks so much.
    -------------------------------------------------------------------------------
    # !/bin/bash

    #NDK=/home/ming/Tools/android-ndk-r9d
    NDK=/home/ming/Tools/android-ndk-r10e
    SYSROOT=$NDK/platforms/android-19/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64

    if [ "$NDK" = "" ]; then
       echo NDK variable not set, assuming ${HOME}/android-ndk
       export NDK=${HOME}/android-ndk
    fi

    echo "Fetching Android system headers"
    git clone --depth=1 --branch gingerbread-release                             git://github.com/CyanogenMod/android_frameworks_base.git ../android-    source/frameworks/base
    git clone --depth=1 --branch gingerbread-release     git://github.com/CyanogenMod/android_system_core.git ../android-   source/system/core

    echo "Fetching Android libraries for linking"
    # Libraries from any froyo/gingerbread device/emulator should work
    # fine, since the symbols used should be available on most of them.
    if [ ! -d "../android-libs" ]; then
       if [ ! -f "../update-cm-7.0.3-N1-signed.zip" ]; then
           wget http://download.cyanogenmod.com/get/update-cm-7.0.3-N1-signed.zip -P../
       fi
       unzip ../update-cm-7.0.3-N1-signed.zip system/lib/* -d../
       mv ../system/lib ../android-libs
       rmdir ../system
    fi

    SYSROOT=$NDK/platforms/android-19/arch-arm
    # Expand the prebuilt/* path into the correct one
    #TOOLCHAIN=`echo $NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/*-x86`
    export PATH=$TOOLCHAIN/bin:$PATH
    ANDROID_SOURCE=../android-source
    ANDROID_LIBS=../android-libs
    ABI="armeabi-v7a"
    ADDI_CFLAGS="-marm"

    rm -rf ../build/stagefright
    mkdir -p ../build/stagefright

    DEST=../build/stagefright
    # --cpu=armv7-a
    FLAGS="--target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm --                        enable-shared --disable-static --disable-doc --disable-ffserver --enable-cross-    compile --cpu=armv7-a"
    FLAGS="$FLAGS --sysroot=$SYSROOT"
    FLAGS="$FLAGS --disable-avdevice --disable-decoder=h264 --disable-    decoder=h264_vdpau --enable-libstagefright-h264"

    EXTRA_CFLAGS="-I$ANDROID_SOURCE/frameworks/base/include -    I$ANDROID_SOURCE/system/core/include"
    EXTRA_CFLAGS="$EXTRA_CFLAGS -    I$ANDROID_SOURCE/frameworks/base/media/libstagefright"
    EXTRA_CFLAGS="$EXTRA_CFLAGS -    I$ANDROID_SOURCE/frameworks/base/include/media/stagefright/openmax"
    #EXTRA_CFLAGS="$EXTRA_CFLAGS -I$NDK/sources/cxx-stl/gnu-libstdc++/include -    I$NDK/sources/cxx-stl/gnu-libstdc++/libs/$ABI/include"
    EXTRA_CFLAGS="$EXTRA_CFLAGS -I$NDK/sources/cxx-stl/gnu-libstdc++/4.8/include -I$NDK/sources/cxx-stl/gnu-libstdc++/4.8/libs/$ABI/include"

    #-march=armv7-a -mfloat-abi=softfp -mfpu=neon

    EXTRA_CFLAGS="$EXTRA_CFLAGS -march=armv7-a -mfloat-abi=softfp -mfpu=neon"

    EXTRA_CFLAGS="$EXTRA_CFLAGS -Os -fpic $ADDI_CFLAGS"

    #EXTRA_LDFLAGS="-Wl,--fix-cortex-a8 -L$ANDROID_LIBS -Wl,-rpath-    link,$ANDROID_LIBS -L$NDK/sources/cxx-stl/gnu-libstdc++/libs/$ABI"
    EXTRA_LDFLAGS="-Wl,--fix-cortex-a8 -L$ANDROID_LIBS -Wl,-rpath-    link,$ANDROID_LIBS -L$NDK/sources/cxx-stl/gnu-libstdc++/4.8/libs/$ABI  -    lstagefright -lstdc++ -lutils -lbinder -lgnustl_static -lgnustl_shared     $ADDI_LDFLAGS"

    EXTRA_CXXFLAGS="-Wno-multichar -fno-exceptions -fno-rtti"
    DEST="$DEST/$ABI"
    FLAGS="$FLAGS --prefix=$DEST"

    mkdir -p $DEST

    echo $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS" --extra-cxxflags="$EXTRA_CXXFLAGS" > $DEST/info.txt
    ./configure $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-    ldflags="$EXTRA_LDFLAGS" --extra-cxxflags="$EXTRA_CXXFLAGS"         $ADDITIONAL_CONFIGURE_FLAG | tee $DEST/configuration.txt
    [ $PIPESTATUS == 0 ] || exit 1
    make clean
    echo "make -j4"
    make -j4 || exit 1`
    -------------------------------------------------------------------------------