Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (72)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (7139)

  • Ffmpeg change height with fixed width

    2 mars 2012, par Dmitry

    I'm trying to change video dimensions using ffmpeg.
    For example, user is uploading video 1280*960.

    And i need to get video 640*480 in return.

    I tried this code and it works

    exec($ffmpegPath." -i ".$srcFile." -ar 22050 -ab 32 -f flv -s 640x480".$destFile,$tmp);

    but this method d't keep width/height balance of video (i.e. video 5000*480 becomes 640*480 and looks compressed from left and right).

    In case of this dimensions (5000*480) i need to get video on exit like 640*61
    i mean fixed height is not suitable for me.

    I look over the internet and found this topics
    http://superuser.com/questions/201051/resize-videos-with-different-widths-to-a-fixed-height-preserving-aspect-ratio-wi
    http://delogics.blogspot.com/2011/11/ffmpeg-maintain-aspect-ratio-with-fixed.html

    but neither of them works for me (ffmpeg even not works with this code, maybe i've made mistake when adding theirs code parts in my ffmpeg string)

    Help me to improve my code pls

    Thanks

  • How can I get FFmpeg to locate installed libraries when —sysroot is pointing to another directory ?

    3 février 2013, par Xaero Degreaz

    I've been going at this, literally for days. I'm trying to build FFmpeg with libmp3lame for use in an Android application. The build script sets a --sysroot flag that points to the Android NDK directory necessary to build these libraries in a way that Android can use them.

    The problem comes when I add the flag to --enable-libmp3lame ; I get ERROR: libmp3lame >= 3.98.3 not found during the build start up. I know that LAME, and it's libraries are installed, because I can just run ./configure --enable-libmp3lame manually and the configuration launches without a hitch, and shows that libmp3lame is enabled for this build. However, building like this will simply not work for what I need it for, since I need the Android NDK to do some work.

    I've tracked the problem down to the fact that this build script is declaring the sysroot, and through some research, I've tried adding -Luser/include, -L/user/includeto the extra cflags, and ldflags (which I've read is the default search location for gcc). I've tried several other things as well, but I'm confident that someone out here can help with this specific problem. This entire build script is as follows :

    Extra info :

    • Build OS : Ubuntu 11.10
    • FFmpeg Ver : Latest from git
    • LAME Ver : 3.9.x
    • Android NDK : r7

    build.sh

    #!/bin/bash

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

    SYSROOT=$NDK/platforms/android-3/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

    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 --cross-prefix=arm-linux-androideabi- --arch=arm"
           FLAGS="$FLAGS --sysroot=$SYSROOT"
           FLAGS="$FLAGS --soname-prefix=/data/data/net.smartnotes/lib/"
           FLAGS="$FLAGS --enable-shared --disable-symver"
           FLAGS="$FLAGS --enable-small --optimization-flags=-O2"
           FLAGS="$FLAGS --disable-everything --enable-protocol=file"
           FLAGS="$FLAGS --enable-libmp3lame --enable-encoder=nellymoser"

           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)
                       # I have tried many things here.
                       EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp"
                       EXTRA_LDFLAGS=""
                       ABI="armeabi-v7a"
                       ;;
                   *)
                       # I have tried many things here.
                       EXTRA_CFLAGS="-Luser/include"
                       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
  • ffmpeg install on CentOS 64-bit 'install with -fPIC' error

    16 février 2017, par ndmweb

    I get this error when attempting to compile ffmpeg on a 64bit CentOS machine.

    Here are my ./configure options :

    ./configure --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-pthreads --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libfaac --enable-libmp3lame --enable-libvpx

    make

    I get the following error when compiling the source :

    /usr/bin/ld: /usr/local/lib/libvpx.a(vpx_codec.c.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
    /usr/local/lib/libvpx.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make: *** [libavcodec/libavcodec.so.54] Error 1

    How do I get around this error, and get libvpx up and running with the latest ffmpeg on my 64-bit CentOS box ?