Recherche avancée

Médias (91)

Autres articles (105)

  • 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 (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (5361)

  • FFmpeg cross compile for Android fails with on C compiler test for x86_64

    5 novembre 2018, par nLL

    I am trying to cross compile FFmpeg for Android with NDK r16b
    I have manged to compile without any issues for all platforms but x86_64.

    Here is my compile script

           #!/bin/bash



       function build_one
       {
       ./configure \
       --prefix=$PREFIX \
       --enable-shared \
       --disable-static \
       --enable-pic \
       --enable-small \
       --disable-programs \
       --disable-symver \
       --target-os=android \
       --enable-cross-compile \
       --cross-prefix=$CROSS_PREFIX \
       --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
       --extra-ldflags="$ADDI_LDFLAGS" \
       --sysroot=$TOOLCHAIN/sysroot $ADDITIONAL_CONFIG_FLAG \
       --disable-all --disable-autodetect --disable-network --enable-pthreads \
       --enable-protocol=file --enable-protocol=pipe --enable-protocol=concat \
       --disable-all --disable-autodetect --disable-network --enable-pthreads \
       --enable-avcodec --enable-avformat --enable-swresample --enable-avfilter --enable-filter=aresample \
       --enable-parser=aac --enable-parser=aac_latm --enable-parser=flac --enable-parser=mpegaudio --enable-parser=vorbis \
       --enable-muxer=mp3,wav --enable-encoder=pcm*,libmp3lame --enable-nonfree --enable-gpl \
       --enable-jni --enable-mediacodec --enable-libmp3lame


       make -j4
       make install
       make distclean
       }

       HOME_PATH=/home/nll/Desktop
       CPU=x86_64
       TOOLCHAIN=$HOME_PATH/my_toolchains/x86_64
       CROSS_PREFIX=$TOOLCHAIN/bin/x86_64-linux-android-
       mkdir -p $(pwd)/android/$CPU
       PREFIX=$(pwd)/android/$CPU
       ADDI_CFLAGS="-march=x86-64 -I$INCLUDE_PATH"
       ADDI_LDFLAGS="-shared -L$LIBS_PATH"
       ADDITIONAL_CONFIG_FLAG="--arch=x86_64 --enable-x86asm"
       build_one

    Above script fails with

           WARNING: /home/nll/Desktop/my_toolchains/x86_64/bin/x86_64-linux-android-pkg-config not found, library detection may fail.
       mktemp -u XXXXXX
       5ZpQya
       test_ld cc
       test_cc
       BEGIN /tmp/ffconf.KWqViHoN/test.c
           1   int main(void){ return 0; }
       END /tmp/ffconf.KWqViHoN/test.c
       /home/nll/Desktop/my_toolchains/x86_64/bin/x86_64-linux-android-gcc --sysroot=/home/nll/Desktop/my_toolchains/x86_64/sysroot -Os -fpic -march=x86-64 -I -c -o /tmp/ffconf.KWqViHoN/test.o /tmp/ffconf.KWqViHoN/test.c
       /home/nll/Desktop/my_toolchains/x86_64/bin/x86_64-linux-android-gcc -shared -L --sysroot=/home/nll/Desktop/my_toolchains/x86_64/sysroot -o /tmp/ffconf.KWqViHoN/test /tmp/ffconf.KWqViHoN/test.o
       /home/nll/Desktop/my_toolchains/x86_64/bin/../lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld: error: /tmp/ffconf.KWqViHoN/test.o: unsupported ELF file type 2
       collect2: error: ld returned 1 exit status
       C compiler test failed.

    So, error is "unsupported ELF file type 2" which means 64 bit. But, I am trying to build 64 bit library anyway.

    I do not understand what is the issue here. Can anyone give me some direction ?

  • Using ffmpeg with MAMP local server

    22 mai 2012, par dirk_22

    In my MAMP local server home folder on Mac OS X (htdocs), I have a bunch of images (labeled image0 through image(n)) which I would like to stitch together into a jpeg using ffmpeg. When I type the following command into terminal, a .mpg file is successfully generated.

    ffmpeg -f image2 -i image%d.jpg videofile.mpg

    However, when I try to execute the same command using the php code pasted below, nothing seems to happen.

    <?php
    shell_exec('ffmpeg -f image2 -i image%d.jpg videofile.mpg');
    ?>

    I've copied the installed ffmpeg folder on my home directory into htdocs, but ffmpeg doesn't seem to be accessed. I'm very new to PHP, so please feel free to point out any gross errors in my code. I'd just like the php script to accomplish the same task which terminal executes upon input of the aforementioned command. I'd welcome any and all advice. Cheers.

  • get metadata and download mp4 video link to server with ffmpeg

    17 mars 2019, par user892134

    I have the following directory in server /home/example.com/videos

    I want to download this video http://example.com/videos/video.mp4 into the directory.

    First how do i get metadata of http://example2.com/videos/video.mp4 ?

    Here is my command to download video, is it correct ?

    ffmpeg -i "http://example2.com/videos/video.mp4" -c copy "/home/example.com/videos/video2.mp4"

    Lastly, how do i determine if video has downloaded or didn’t finish downloading successfully ?