Recherche avancée

Médias (3)

Mot : - Tags -/Valkaama

Autres articles (69)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

Sur d’autres sites (6103)

  • Adding ffmpeg library to Python Kivy App and Buildozer for Android

    15 août 2023, par Chris-Yoon

    I am working on a Python Kivy App, in which I have to manipulate audio files such as joining audio files or converting them into aac format. In order to achieve this I use the ffmpeg library. Everything works fine on my Linux machine, however, I couldn't make it run on the Android device. I build my apk/aab file by using Buildozer. I built a variety of cross-platform apps for Windows or Linux or for the web, but I am not really an experienced Android developer.

    


    Can someone give me a high-level explanation or even a detailed description on how I can add this third party library to the apk/aab file and define it as environment variable using buildozer, so that other modules such as ffmpeg-python or pydub can find it ? I am also open to alternatives if there are any.

    


    I tried ffmpegkit, adding prebuilt libraries, defining the path to the converter in PyDub.

    


  • Android ffmpeg with opus support

    6 décembre 2014, par ademar111190

    I’m following this tutorial, with some changes, i want add the opus support, I think adding the option --enable-libopus is all i need but no, when I try compile with the shell as follow I’m getting the error :

    configure.sh

    #!/bin/bash

    export ANDROID_NDK=/home/ademar/android-ndk-r9
    export TOOLCHAIN=$(pwd)/temp/ffmpeg
    export SYSROOT=$TOOLCHAIN/sysroot/
    $ANDROID_NDK/build/tools/make-standalone-toolchain.sh --platform=android-9 --toolchain=arm-linux-androideabi-4.8 --install-dir=$TOOLCHAIN

    export PATH=$TOOLCHAIN/bin:$PATH
    export CC=arm-linux-androideabi-gcc
    export LD=arm-linux-androideabi-ld
    export AR=arm-linux-androideabi-ar

    CFLAGS="-O3 -Wall -mthumb -pipe -fpic -fasm \
     -finline-limit=300 -ffast-math \
     -fstrict-aliasing -Werror=strict-aliasing \
     -fmodulo-sched -fmodulo-sched-allow-regmoves \
     -Wno-psabi -Wa,--noexecstack \
     -D__ARM_ARCH_5__ -D__ARM_ARCH_5E__ \
     -D__ARM_ARCH_5T__ -D__ARM_ARCH_5TE__ \
     -DANDROID -DNDEBUG"

    EXTRA_CFLAGS="-march=armv7-a -mfpu=neon -mfloat-abi=softfp -mvectorize-with-neon-quad"
    EXTRA_LDFLAGS="-Wl,--fix-cortex-a8"

    FFMPEG_FLAGS="--prefix=/tmp/ffmpeg/build \
     --target-os=linux \
     --arch=arm \
     --enable-cross-compile \
     --cross-prefix=arm-linux-androideabi- \
     --enable-shared \
     --disable-symver \
     --disable-doc \
     --disable-ffplay \
     --disable-ffmpeg \
     --disable-ffprobe \
     --disable-ffserver \
     --disable-avdevice \
     --disable-avfilter \
     --disable-encoders  \
     --disable-muxers \
     --disable-filters \
     --disable-devices \
     --disable-everything \
     --enable-protocols  \
     --enable-parsers \
     --enable-demuxers \
     --disable-demuxer=sbg \
     --enable-decoders \
     --enable-bsfs \
     --disable-network \
     --enable-swscale  \
     --enable-asm \
     --enable-libopus \
     --enable-libtheora \
     --enable-libvorbis \
     --enable-nonfree \
     --enable-version3"

    cd ffmpeg
    ./configure $FFMPEG_FLAGS --extra-cflags="$CFLAGS $EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS"

    the error :

    ERROR: opus not found

    If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem.

    if want i can post the config.log content, but it is big.

    on folder ffmpeg I have a git clone from source.ffmpeg.org on branch release/1.2

  • C flags which gives priority to quality for decoded images in ffmpeg

    18 janvier 2016, par Tank2005

    I’m trying to decode h.264 streaming with ffmpeg(latest version) on Android NDK.

    I succeeded to get a decoded frame. But, an aquired image is very dirty even if low latency flag is disabled.

    If I want to give priority to quality over decoding speed, which flags should I specify ?

    bool initCodec(bool low_latency)
    {
       av_register_all();

       codec = avcodec_find_decoder(AV_CODEC_ID_H264);
       if(!codec) return false;

       context = avcodec_alloc_context3(codec);
       if(!context) return false;

       if(codec->capabilities & CODEC_CAP_TRUNCATED) context->flags |= CODEC_FLAG_TRUNCATED;
       if(low_latency == true) context->flags |= CODEC_FLAG_LOW_DELAY;

       frame = av_frame_alloc();

       int res = avcodec_open2(context, codec, NULL);
       if (res < 0) {
           qDebug() << "Coundn't open codec :" << res;
           return false;
       }

       av_init_packet(&avpkt);
       return true;
    }

    void sendBytes(unsigned char *buf, int buflen)
    {
       avpkt.size = buflen;
       avpkt.data = buf;

       int got_frame, len;
       while (avpkt.size > 0) {
           len = avcodec_decode_video2(context, frame, &got_frame, &avpkt);
           if (len < 0) {
               qDebug() << "Error while decoding : " << len;
               break;
           }
           if (got_frame) {
               onGotFrame(frame);
           }
           avpkt.size -= len;
           avpkt.data += len;
       }
    }

    Decoded image sample

    Ex : I heard that it made a problem while compiling the library. So I write a compile option here(I built it on OpenSUSE Linux).

    #!/bin/bash
    NDK=/home/ndk
    SYSROOT=$NDK/platforms/android-9/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
    function build_one
    {
    ./configure \
    --prefix=$PREFIX \
    --enable-shared \
    --disable-static \
    --disable-avdevice \
    --disable-doc \
    --disable-symver \
    --disable-encoders \
    --disable-decoders \
    --enable-decoder=h264 \
    --enable-decoder=aac \
    --disable-protocols \
    --disable-demuxers \
    --disable-muxers \
    --disable-filters \
    --disable-network \
    --disable-parsers \
    --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
    --target-os=linux \
    --arch=arm \
    --enable-asm --enable-yasm \
    --enable-cross-compile \
    --sysroot=$SYSROOT \
    --extra-cflags="-Os -marm -march=armv7-a -mfloat-abi=softfp -mfpu=neon" \
    --extra-ldflags="-Wl,--fix-cortex-a8" \
    $ADDITIONAL_CONFIGURE_FLAG
    make clean
    make
    make install
    }
    CPU=armv7-a
    PREFIX=$(pwd)/android/$CPU
    build_on