Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (74)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (7524)

  • 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`
    -------------------------------------------------------------------------------
  • how does one loop a video using ffmpeg on android ?

    15 juillet 2015, par Magicomiralles

    I’m using hiteshsondhi88’s "FFmpeg Android Java" library and it works fine for scaling, trans-coding, and overlaying. However, when I try to loop a video I just get the same un-looped video on my output.

    My code :

    String internalPath = getFilesDir().getPath(); //get internal directory
    String command = "-y -f concat -i "+internalPath+"/myList.txt -c copy "+internalPath+"/final.mp4";
    ffmpeg.execute(command, ffmpegResponseHandler);

    The text in "myList.txt" is generated programmatically but it looks like this :

    file 'final_unlooped.mp4' file 'final_unlooped.mp4' file 'final_unlooped.mp4' file 'final_unlooped.mp4' file 'final_unlooped.mp4'

    Finally, the log :

    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
    Input #0, concat, from '/data/data/com.testApp/files/myList.txt':
    Duration: N/A, start: 0.000000, bitrate: 744 kb/s
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x640, 744 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
    Output #0, mp4, to '/data/data/com.testApp/files/final.mp4':
    Metadata:
    encoder         : Lavf56.4.101
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x640, q=2-31, 744 kb/s, 25 fps, 12800 tbn, 12800 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    frame=  115 fps=0.0 q=-1.0 Lsize=     420kB time=00:00:04.48 bitrate= 768.1kbits/s
    video:418kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.509634%

    The OnSuccess() method in the response handler launches indicating that the execution was successful but the output is still unlooped.

    This command works fine on Windows but for some reason it wont work on Android. any ideas of what it could be, or what am I doing wrong ?