Recherche avancée

Médias (91)

Autres articles (90)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (11591)

  • The system cannot find the file specified with ffmpeg

    15 mai 2024, par Samhita vempatti

    In the process of using the ffmpeg module to edit video files i used the subprocess module

    



    The code is as follows :

    



    #trim bit

import subprocess
import os
seconds = "4"
mypath=os.path.abspath('trial.mp4')
subprocess.call(['ffmpeg', '-i',mypath, '-ss', seconds, 'trimmed.mp4'])


    



    Error message :

    



    Traceback (most recent call last):&#xA;  File "C:\moviepy-master\resizer.py", line 29, in <module>&#xA;    subprocess.call([&#x27;ffmpeg&#x27;, &#x27;-i&#x27;,mypath, &#x27;-ss&#x27;, seconds, &#x27;trimmed.mp4&#x27;])&#xA;  File "C:\Python27\lib\subprocess.py", line 168, in call&#xA;    return Popen(*popenargs, **kwargs).wait()&#xA;  File "C:\Python27\lib\subprocess.py", line 390, in __init__&#xA;    errread, errwrite)&#xA;  File "C:\Python27\lib\subprocess.py", line 640, in _execute_child&#xA;    startupinfo)&#xA;WindowsError: [Error 2] The system cannot find the file specified&#xA;</module>

    &#xA;&#xA;

    After looking up similar problems i understood that the module is unable to pick the video file because it needs its path, so i took the absolute path. But in spite of that the error still shows up.&#xA;The module where this code was saved and the video file trial.mp4 are in the same folder.

    &#xA;

  • run build.sh file not generating so files

    11 décembre 2017, par Shivani Vasundhara

    I am using this example of FFMpegExample for making Live wallpaper using mp4, I am using Windows 10, cygwin,16.0 NDK version and client version 1.3.7 to 1.3.10 of ffmpeg, I have successfully extracted it using extract.sh.

    Now my problem is when I run the build.sh command I am getting the error message below (see end of the question), but not making .so files.

    My build.sh file is :

    #!/bin/bash

    if [ "$NDK" = "" ]; then
    echo NDK variable not set, assuming $ANDROID_HOME
    export NDK=$ANDROID_HOME
    fi

    SYSROOT=$ANDROID_SYSROOT
    # Expand the prebuilt/* path into the correct one
    TOOLCHAIN=`echo $ANDROID_TOOLCHAIN`
    export PATH=$TOOLCHAIN/bin:$PATH

    rm -rf build/ffmpeg
    mkdir -p build/ffmpeg
    cd ffmpeg

    # Don't build any neon version for now
    for version in armv5te armv7a
    do

    DEST=../build/ffmpeg
    FLAGS="--target-os=linux --arch=arm"
    FLAGS="$FLAGS --cross-prefix=arm-linux-androideabi- --arch=arm"
    FLAGS="$FLAGS --sysroot=$SYSROOT"
    #FLAGS="$FLAGS --soname-prefix=/data/data/ffvideolivewallpaper.frankandrobot.com/lib/"
    #FLAGS="$FLAGS --enable-version3 --enable-gpl"
    #FLAGS="$FLAGS --enable-version3 --enable-gpl --enable-nonfree"
    FLAGS="$FLAGS --disable-ffmpeg --disable-ffplay"
    FLAGS="$FLAGS --disable-ffserver --disable-ffprobe --disable-encoders"
    FLAGS="$FLAGS --disable-muxers --disable-devices --disable-protocols"
    FLAGS="$FLAGS --enable-protocol=file --enable-avfilter"
    FLAGS="$FLAGS --disable-network"
    FLAGS="$FLAGS --disable-avdevice --disable-asm"
    FLAGS="$FLAGS --enable-shared --disable-symver"
    FLAGS="$FLAGS --enable-small"
    FLAGS="$FLAGS --disable-doc"
    #FLAGS="$FLAGS --optimization-flags=-O2"

    case "$version" in
       neon)
           EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon"
           EXTRA_LDFLAGS="-Wl,--fix-cortex-a8"
           # Runtime choosing neon vs non-neon requires
           # renamed files
           ABI="armeabi-v7a"
           ;;
       armv7a)
           EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp"
           EXTRA_LDFLAGS=""
           ABI="armeabi-v7a"
           ;;
       *)
           EXTRA_CFLAGS=""
           EXTRA_LDFLAGS=""
           ABI="armeabi"
           ;;
    esac
    DEST="$DEST/$ABI"
    FLAGS="$FLAGS --prefix=$DEST"

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

    done

    In $ANDROID_HOME is system environment variable defined to ndk-bundle path,
    $ANDROID_SYSROOT points : $ANDROID_HOME\platforms\android-27\arch-arm
    $ANDROID_TOOLCHAIN points : $ANDROID_HOME\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64

    And when i run ./build.sh file in Cygwin I am getting this message :

    NDK variable not set, assuming D :\sdk\ndk-bundle
    arm-linux-androideabi-gcc is unable to create an executable file.
    C compiler test failed.

    If you think configure made a mistake, make sure you are using the latest
    version from SVN. If the latest version fails, report the problem to the
    ffmpeg-user@mplayerhq.hu 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.

    See screenshot of error message.

    Any kind of help is appreciated.

  • System.load() is not loading the .so files though they are there

    22 février 2018, par Anuran Barman

    I am trying to load FFMPEG .so files from the /files folder of the application but System.load() is not loading them. My code look like this below :

    static {
           try {
               String[] libs={
                       App.getInstance().getFilesDir().getAbsolutePath()+"/sharedLibs/libavfilter.so",
                       App.getInstance().getFilesDir().getAbsolutePath()+"/sharedLibs/libswscale.so",
                       App.getInstance().getFilesDir().getAbsolutePath()+"/sharedLibs/libavformat.so",
                       App.getInstance().getFilesDir().getAbsolutePath()+"/sharedLibs/libffmpeg-jni.so",
                       App.getInstance().getFilesDir().getAbsolutePath()+"/sharedLibs/libswresample.so",
                       App.getInstance().getFilesDir().getAbsolutePath()+"/sharedLibs/libavutil.so",
                       App.getInstance().getFilesDir().getAbsolutePath()+"/sharedLibs/libavcodec.so"
               };
               for(int i=0;icode>

    If I remove them android studio logcat says library file not found specifying the exact location like /data/0/emulated/myPKGName/files/sharedLibs/.so so it is loading the so files but if I provide them it still shows UnsatisfiedLinkError error, like below :

    java.lang.UnsatisfiedLinkError: dlopen failed: library "libswscale.so" not found

    Why is it in turn searching for libswrescale.so file though that is already loaded from files folder ?