Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (94)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

Sur d’autres sites (9236)

  • Build ffmpeg in Window OS is keep failing

    11 avril 2018, par Jy.L

    I tried to build ffmpeg in Windows 10 to use in Android Projects but it is keep failing.

    NDK version : 16

    ffmpeg version : 3.4.2

    the error message.

    C:/Users/JY/AppData/Local/Android/sdk/ndk-bundle/toolchains/arm-linux-
    androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc is
    unable to create an executable file.
    C compiler test failed.

    build_android.sh

    #!/bin/bash
    NDK=C:/Users/JY/AppData/Local/Android/sdk/ndk-bundle
      SYSROOT=$NDK/platforms/android-19/arch-arm/
      TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64
    function build_one
    {
    ./configure \
       --prefix=$PREFIX \
       --enable-shared \
       --disable-static \
       --disable-doc \
       --disable-ffmpeg \
       --disable-ffplay \
       --disable-ffprobe \
       --disable-ffserver \
       --disable-avdevice \
       --disable-doc \
       --disable-symver \
       --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
       --target-os=linux \
       --arch=arm \
       --enable-cross-compile \
       --sysroot=$SYSROOT \
       --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
       --extra-ldflags="$ADDI_LDFLAGS" \
       $ADDITIONAL_CONFIGURE_FLAG
    make clean
    make -j4
    make install
    }
    CPU=arm
    PREFIX=$(pwd)/android/$CPU
    ADDI_CFLAGS="-marm"
    build_one

    I checked file location in several times, but it keeps failing.

  • SharedArrayBuffer is not defined & SyntheticBaseEvent

    3 juin 2024, par Dain Park

    thank you for your help with my problem.

    


    I am using FFmpeg.wasm on Next.js to compress videos when users upload them. I then send the videos to a server and save them on AWS S3. For the client side, I'm using Next.js.

    


    To solve the error "SharedArrayBuffer is not defined", I added the following code to next.config.mjs :

    


    /** @type {import('next').NextConfig} */
const nextConfig = {
    reactStrictMode: false,
    async headers() {
      return [
        {
          source: '/(.*)',
          headers: [
            {
              key: 'Cross-Origin-Opener-Policy',
              value: 'same-origin',
            },
            {
              key: 'Cross-Origin-Embedder-Policy',
              value: 'require-corp',
            },
          ],
        },
      ];
    },
};
export default nextConfig;


    


    Here is the code I'm using for video compression :

    


    import { createFFmpeg, fetchFile } from &#x27;@ffmpeg/ffmpeg&#x27;;&#xA;const ffmpeg = createFFmpeg({ log: true });&#xA;&#xA;export const compressVideo = async (file: File): Promise<blob> => {&#xA;  if (!ffmpeg.isLoaded()) {&#xA;    await ffmpeg.load();&#xA;  }&#xA;&#xA;  // Write the file to FFmpeg&#x27;s filesystem&#xA;  ffmpeg.FS(&#x27;writeFile&#x27;, &#x27;input.mp4&#x27;, await fetchFile(file));&#xA;&#xA;  // Run the ffmpeg command to compress the video&#xA;  await ffmpeg.run(&#x27;-i&#x27;, &#x27;input.mp4&#x27;, &#x27;-vf&#x27;, &#x27;scale=1280:720&#x27;, &#x27;-b:v&#x27;, &#x27;1M&#x27;, &#x27;-c:v&#x27;, &#x27;libx264&#x27;, &#x27;-preset&#x27;, &#x27;fast&#x27;, &#x27;-crf&#x27;, &#x27;28&#x27;, &#x27;output.mp4&#x27;);&#xA;&#xA;  // Read the output file from FFmpeg&#x27;s filesystem&#xA;  const data = ffmpeg.FS(&#x27;readFile&#x27;, &#x27;output.mp4&#x27;);&#xA;&#xA;  // Convert the output to a Blob&#xA;  const compressedVideo = new Blob([data.buffer], { type: &#x27;video/mp4&#x27; });&#xA;&#xA;  return compressedVideo;&#xA;};&#xA;&#xA;</blob>

    &#xA;

    This works well, but after that, I got this error : SyntheticBaseEvent on the video tag.

    &#xA;

    Can anyone help me resolve this issue ?

    &#xA;

  • Capture Windows screen with ffmpeg

    26 juin 2015, par kamae

    The ffmpeg is cross-platform and very powerful software to handle video/audio or to stream it.
    On Linux ffmpeg can capture X11 screen with a command below :

    ffmpeg -f x11grab -r 25 -s cif -i :0.0 out.mpeg

    But is it possible to grab Windows Desktop with ffmpeg ?