Recherche avancée

Médias (3)

Mot : - Tags -/plugin

Autres articles (63)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

Sur d’autres sites (10603)

  • 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