Recherche avancée

Médias (91)

Autres articles (70)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (7295)

  • execute ffmpeg command in a loop

    7 février 2014, par Mohammad Torfehnezhad

    I have 3 .wav files in my folder and I want to convert them into .mp3 with ffmpeg
    I wrote this bash script that will come as follow, but when I execute it, only the first one will have been converted to mp3
    what should I do to make script keep going through out of my files

    this is the script :

    #!/bin/bash
    find ./ -name "*.wav" -print | while read f
    do
       name=${f:2:${#f}-6}
       cmd='ffmpeg -i "$name.wav" -ab 320k -ac 2 "$name.mp3"'
       eval $cmd<br />
    done
  • How to catch stderr in a composite command ?

    12 février 2014, par Andrey Rikunov

    Say I have a linux command running from a java code :

    /bin/bash -c nice -n 8 ffmpeg {params of ffmpeg} &amp; echo $! > ffmpeg.pid

    In java I want to catch stderr of ffmpeg :

    Process process = Runtime.getRuntime().exec(command);

    BufferedReader input = new BufferedReader(new InputStreamReader(process.getErrorStream()));
    while (...) {
       String ffmpegStdErrLine = input.readLine();
       ...
    }

    That's not about ffmpeg but how can I make sure I'm reading ffmpeg's StdErr ?

  • Compiling ffmpeg for use in Android (ndk) for x86 architecture

    26 septembre 2012, par Ankur22

    I am trying to compile ffmpeg for Android but for the x86 architecture. I've successfully compiled an arm .so and it all works, and I though that by replacing arm with x86 in the relevant places within the build script would have done the trick. Unfortunately that's not the case and I get some strange things occurring.

    First I get this while it's compiling ffmpeg :

    /home/ankur/android-ndk-r8/platforms/android-8/arch-arm//usr/include/strings.h:49: warning: redundant redeclaration of &#39;index&#39;

    Notice the arch-arm instead of arch-x86. Finally I get this :

    /home/ankur/android-ndk-r8/toolchains/x86-4.4.3/prebuilt/linux-x86/bin/i686-android-linux-ld: libavcodec/libavcodec.a(4xm.o): Relocations in generic ELF (EM: 40)
    /home/ankur/android-ndk-r8/toolchains/x86-4.4.3/prebuilt/linux-x86/bin/i686-android-linux-ld: libavcodec/libavcodec.a(4xm.o): Relocations in generic ELF (EM: 40)
    /home/ankur/android-ndk-r8/toolchains/x86-4.4.3/prebuilt/linux-x86/bin/i686-android-linux-ld: libavcodec/libavcodec.a(4xm.o): Relocations in generic ELF (EM: 40)
    libavcodec/libavcodec.a(4xm.o): could not read symbols: File in wrong format

    The build script I've created looks like this :

    #!/bin/bash

    NDK=~/android-ndk-r8
    PLATFORM=$NDK/platforms/android-8/arch-x86/
    PREBUILT=$NDK/toolchains/x86-4.4.3/prebuilt/linux-x86
    function build_one_r8
    {
    ./configure \
       --disable-shared \
       --enable-static \
       --enable-gpl \
       --enable-version3 \
       --enable-nonfree \
       --disable-doc \
       --disable-ffmpeg \
       --disable-ffplay \
       --disable-ffprobe \
       --disable-ffserver \
       --disable-avdevice \
       --disable-avfilter \
       --disable-postproc \
       --enable-small \
       --cross-prefix=$PREBUILT/bin/i686-android-linux- \
       --enable-cross-compile \
       --target-os=linux \
       --extra-cflags="-I$PLATFORM/usr/include" \
       --arch=x86 \
       --disable-symver \
       --disable-debug \
       --disable-stripping \
       $ADDITIONAL_CONFIGURE_FLAG
    sed -i &#39;s/HAVE_LRINT 0/HAVE_LRINT 1/g&#39; config.h
    sed -i &#39;s/HAVE_LRINTF 0/HAVE_LRINTF 1/g&#39; config.h
    sed -i &#39;s/HAVE_ROUND 0/HAVE_ROUND 1/g&#39; config.h
    sed -i &#39;s/HAVE_ROUNDF 0/HAVE_ROUNDF 1/g&#39; config.h
    sed -i &#39;s/HAVE_TRUNC 0/HAVE_TRUNC 1/g&#39; config.h
    sed -i &#39;s/HAVE_TRUNCF 0/HAVE_TRUNCF 1/g&#39; config.h
    make clean
    make  -j4 install
    $PREBUILT/bin/i686-android-linux-ar d libavcodec/libavcodec.a inverse.o
    $PREBUILT/bin/i686-android-linux-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/i686-android-linux/4.4.3/libgcc.a
    }
    function build_one_r8_2
    {
    $PREBUILT/bin/i686-android-linux-ar d libavcodec/libavcodec.a inverse.o
    $PREBUILT/bin/i686-android-linux-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/i686-android-linux/4.4.3/libgcc.a
    }
    #x86
    CPU=x86
    OPTIMIZE_CFLAGS="-march=$CPU "
    PREFIX=./android/$CPU
    ADDITIONAL_CONFIGURE_FLAG=
    build_one_r8

    I hope I'm doing something wrong rather than this not being possible.

    Thanks !