Recherche avancée

Médias (0)

Mot : - Tags -/flash

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (59)

  • 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 ;

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

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (10709)

  • Building ffmpeg for Android with clang

    30 juillet 2019, par Guerlando OCs

    I’m trying to build ffmpeg for Android using Clang and Android NDK 20 in Ubuntu 18.04.

    I’m trying :

    ./configure
    --prefix=android/
    --disable-asm
    --enable-cross-compile
    --disable-static
    --disable-programs
    --disable-doc
    --enable-shared
    --enable-protocol=file
    --enable-pic
    --enable-small
    --disable-pthreads
    --ar=/home/sources/android-ndk-r20/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar
    --strip=/home/sources/android-ndk-r20/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip
    --ld=/home/sources/android-ndk-r20/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld
    --cc=/home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
    --cxx=/home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
    --as=/home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
    --target-os=android
    --extra-cflags=-target aarch64-none-linux-android
    -mfpu=neon
    -mfloat-abi=soft
    -I/home/sources/android-ndk-r20/sysroot/usr/include/aarch64-linux-android
    -O3
    -fPIC
    --extra-ldflags=-L/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x
    -L/platforms/android-/arch-arm64/usr/lib
    --sysroot=/home/sources/android-ndk-r20/sysroot

    But I’m getting some compile errors like this :

    /home/sources/android-ndk-r20/sysroot/usr/include/stdlib.h:61:7: error: expected identifier or '('
    char* getenv(const char* __name);
         ^
    ./config.h:17:19: note: expanded from macro 'getenv'
    #define getenv(x) NULL
                     ^
    /home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.7/include/stddef.h:105:18: note: expanded from macro 'NULL'
    #  define NULL ((void*)0)
                    ^
    In file included from libavdevice/alldevices.c:23:
    In file included from ./libavformat/internal.h:27:
    In file included from ./libavformat/avformat.h:319:
    In file included from ./libavcodec/avcodec.h:31:
    In file included from ./libavutil/samplefmt.h:24:
    In file included from ./libavutil/avutil.h:296:
    In file included from ./libavutil/common.h:39:
    /home/sources/android-ndk-r20/sysroot/usr/include/stdlib.h:61:7: error: expected ')'
    ./config.h:17:19: note: expanded from macro 'getenv'
    #define getenv(x) NULL
                     ^
    /home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.7/include/stddef.h:105:18: note: expanded from macro 'NULL'
    #  define NULL ((void*)0)
                    ^
    /home/sources/android-ndk-r20/sysroot/usr/include/stdlib.h:61:7: note: to match this '('
    ./config.h:17:19: note: expanded from macro 'getenv'
    #define getenv(x) NULL
                     ^
    /home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.7/include/stddef.h:105:17: note: expanded from macro 'NULL'
    #  define NULL ((void*)0)
                   ^
    In file included from libavdevice/alldevices.c:23:
    In file included from ./libavformat/internal.h:27:
    In file included from ./libavformat/avformat.h:319:
    In file included from ./libavcodec/avcodec.h:31:
    In file included from ./libavutil/samplefmt.h:24:
    In file included from ./libavutil/avutil.h:296:
    In file included from ./libavutil/common.h:39:
    /home/sources/android-ndk-r20/sysroot/usr/include/stdlib.h:61:7: error: expected ')'
    char* getenv(const char* __name);
         ^
    ./config.h:17:19: note: expanded from macro 'getenv'
    #define getenv(x) NULL
                     ^
    /home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.7/include/stddef.h:105:24: note: expanded from macro 'NULL'
    #  define NULL ((void*)0)
                          ^
    /home/sources/android-ndk-r20/sysroot/usr/include/stdlib.h:61:7: note: to match this '('
    ./config.h:17:19: note: expanded from macro 'getenv'
    #define getenv(x) NULL
                     ^
    /home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.7/include/stddef.h:105:16: note: expanded from macro 'NULL'
    #  define NULL ((void*)0)
                  ^
    In file included from libavdevice/fbdev_dec.c:37:
    In file included from ./libavutil/internal.h:42:
    In file included from ./libavutil/timer.h:41:
    /home/sources/android-ndk-r20/sysroot/usr/include/stdlib.h:61:7: error: expected identifier or '('
    char* getenv(const char* __name);
         ^
    ./config.h:17:19: note: expanded from macro 'getenv'
    #define getenv(x) NULL
                     ^
    /home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.7/include/stddef.h:105:18: note: expanded from macro 'NULL'
    #  define NULL ((void*)0)
                    ^
    In file included from libavdevice/fbdev_dec.c:37:
    In file included from ./libavutil/internal.h:42:
    In file included from ./libavutil/timer.h:41:
    /home/sources/android-ndk-r20/sysroot/usr/include/stdlib.h:61:7: error: expected ')'
    ./config.h:17:19: note: expanded from macro 'getenv'
    #define getenv(x) NULL
                     ^
    /home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.7/include/stddef.h:105:18: note: expanded from macro 'NULL'
    #  define NULL ((void*)0)
                    ^
    /home/sources/android-ndk-r20/sysroot/usr/include/stdlib.h:61:7: note: to match this '('
    ./config.h:17:19: note: expanded from macro 'getenv'
    #define getenv(x) NULL

    I also tried, from here :

    ./configure
    --prefix=/home/deps/build/ffmpeg/arm64
    --cross-prefix=/home/sources/android-ndk-r20/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/aarch64-linux-android-
    --sysroot=/home/sources/android-ndk-r20/sysroot
    --disable-static
    --disable-doc
    --disable-ffmpeg
    --disable-ffplay
    --disable-ffprobe
    --disable-symver
    --enable-shared
    --enable-protocol=concat
    --enable-protocol=file
    --enable-muxer=mp4
    --enable-demuxer=mpegts
    --target-os=android
    --enable-decoder=h264
    --enable-cross-compile
    --arch=aarch64
    --toolchain=clang-usan
    --extra-cflags=-fPIE
    -fPIC
    -ffast-math
    -funroll-loops
    -mfloat-abi=softfp
    -mfpu=vfpv3-d16
    --extra-ldflags=-pie
    --ar=/home/sources/android-ndk-r20/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar
    --strip=/home/sources/android-ndk-r20/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip
    --ld=/home/sources/android-ndk-r20/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld
    --cc=/home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
    --cxx=/home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
    --as=/home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang

    But I get this error :

    /home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang is unable to create an executable file.
    C compiler test failed.

    In the log file I get :

    /home/sources/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --sysroot=/home/sources/android-ndk-r20/sysroot -fsanitize=undefined -fPIE -fPIC -ffast-math -funroll-loops -mfloat-abi=softfp -mfpu=vfpv3-d16 -c -o /tmp/ffconf.knsd57OI/test.o /tmp/ffconf.knsd57OI/test.c
    clang: warning: argument unused during compilation: '-mfloat-abi=softfp' [-Wunused-command-line-argument]
    clang: warning: argument unused during compilation: '-mfpu=vfpv3-d16' [-Wunused-command-line-argument]
    /home/sources/android-ndk-r20/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld -pie -fsanitize=undefined --sysroot=/home/sources/android-ndk-r20/sysroot -o /tmp/ffconf.knsd57OI/test /tmp/ffconf.knsd57OI/test.o
    /home/sources/android-ndk-r20/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld: -f may not be used without -shared
    C compiler test failed.

    It looks like, by the line -fsanitize=undefined that an undefined is being passed, I don’t know why.

    Anyone knows what’s happening or an alternative way to build ?

  • Exec () Creating two different process for FFMPEG

    23 mai 2018, par Bruno Andrade

    I run this command in exec () and it creates two FFMPEG processes one at the same time as the other but with different PID. Is this behavior normal ? When I run the code directly in the shell this does not happen.

    $ffmpeg = "/home/user/bin/ffmpeg -hide_banner -loglevel verbose -n -i https://sitelink/list.m3u8 -map 0:4 -map 0:5 -acodec copy -bsf:a aac_adtstoasc -vcodec copy video.mp4 1> log.txt  2>&1";

       exec($ffmpeg, $output, $var);

    Example of the two processes created

    user+ 24414 24413  0 13:42 pts/2    00:00:00 sh -c /home/user/bin/ffmpeg -hide_banner -loglevel verbose -n -i https://sitelink/list.m3u8 -map 0:4 -map 0:5 -acodec copy -bsf:a aac_adtstoasc -vcodec copy video.mp4 1> log.txt  2>&1
    user+ 24415 24414  1 13:42 pts/2    00:00:00 /home/user/bin/ffmpeg -hide_banner -loglevel verbose -n -i https://sitelink/list.m3u8 -map 0:4 -map 0:5 -acodec copy -bsf:a aac_adtstoasc -vcodec copy video.mp4
  • FFMPEG with php video compressing size [on hold]

    21 octobre 2019, par matrix4583

    I am trying to reduce the size of my video files with ffmpeg using php. However the code I use from the documentation is not working and little explanation on how to reduce the size. Here is the code I use.I tried to declare the video with $video = ’video.mp4’ ;, but still no result.

                           $video = 'video.mp4';
                           $ffmpeg = \FFMpeg\FFMpeg::create([
                           'ffmpeg.binaries'  => '/home//ffmpeg/ffmpeg',
                           'ffprobe.binaries' => '/home//ffmpeg/ffprobe'
                       ]);



                           $format = new FFMpeg\Format\Video\X264();
                           $format->on('progress', function ($video, $format, $percentage)
                           {
                               echo "$percentage % transcoded";
                           });

                           $format
                               ->setKiloBitrate(1000)
                               ->setAudioChannels(2)
                               ->setAudioKiloBitrate(256);

                           $video->save($format, 'video.mp4');  

    OUTPUT: Undefined variable: video