Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (84)

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

  • node-webkit with ffmpeg

    29 novembre 2012, par David Weldon

    I'm interested in building a cross-platform video compression and upload utility using node-webkit. My requirements are as follows :

    • completely self contained - no other installs are necessary
    • ffmpeg is included
    • fluent-ffmpeg included
    • temp files are created and streamed to my server
    • can run on windows, mac, linux

    I have no idea if this can be done, but if you know if this is even possible and how to do it, I'd really like to know.

  • ffmpeg commands not working in micromax android

    10 février 2014, par pavan

    I am able to execute ffmpeg commands on android devices like Samsung,LG and Sony but in Micromax it's not working. I have built ffmpeg library for arm processor. I could not collect the log because I am not able to connect the device. I have following questions on this,
    1) Why it's not working on Micromax ?
    2) I do not want to show my app on other device apart from ARM based android device, is it possible to control ?

    The below configuration I have used while building ffmpeg,

     !/bin/bash

    cd ffmpeg

    export TMPDIR=tmp
    mkdir -p $TMPDIR

    Android NDK Location

    NDK=/Users/sunitha/Downloads/android-ndk-r9c

    ANDROID_API=android-9
    SYSROOT=$NDK/platforms/$ANDROID_API/arch-arm
    PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86
    CROSS_PREFIX=$PREBUILT/bin/arm-linux-androideabi-
    ARM_INCLUDE=$SYSROOT/usr/include
    ARM_LIB=$SYSROOT/usr/lib
    PREFIX=../build
    OPTIMIZE_CFLAGS=" -marm -march=armv6 "
    ADDITIONAL_CONFIGURE_FLAG=

    Location of lame's static installation

    MP3LAME=../libmp3lame
    X264=../libx264

    ./configure \
    —arch=arm \
    —target-os=linux \
    —enable-cross-compile \
    —cross-prefix=$CROSS_PREFIX \
    —prefix=$PREFIX \
    —sysroot=$SYSROOT \
    —extra-cflags=" -I$ARM_INCLUDE -I$MP3LAME/include -I$X264/include -DANDROID $OPTIMIZE_CFLAGS" \
    —extra-ldflags=" -L$ARM_LIB -L$MP3LAME/lib -L$X264/lib" \
    —disable-debug \
    —enable-libmp3lame \
    —enable-libx264 \
    —disable-ffplay \
    —disable-ffprobe \
    —disable-ffserver \
    —enable-avfilter \
    —enable-decoders \
    —enable-demuxers \
    —enable-encoders \
    —enable-filters \
    —enable-indevs \
    —enable-network \
    —enable-parsers \
    —enable-protocols \
    —enable-swscale \
    —enable-gpl \
    —enable-nonfree \
    $ADDITIONAL_CONFIGURE_FLAG

    cd ..

  • Error loading FFmpeg : ReferenceError : SharedArrayBuffer is not defined - Angular 18.2.3

    9 septembre 2024, par Memariya Chirag

    Question :

    


    I am working on an Angular project (version 18.2.3) where I use ffmpeg.wasm to trim videos and extract frames. However, when trying to load FFmpeg, I am encountering the following error in the console :

    


    Error loading FFmpeg: ReferenceError: SharedArrayBuffer is not definedenter image description here


    


    Below is the code that initializes FFmpeg and attempts to load it: 


    


    export class VideoEditorComponent implements OnInit {&#xA;  ffmpeg = createFFmpeg({ log: true });&#xA;  isPlaying = false;&#xA;  frameDataArray: Uint8Array[] = [];&#xA;  frameIndex = 0;&#xA;&#xA;  async trimAndExtractFrames(): Promise<void> {&#xA;    try {&#xA;      // Load FFmpeg&#xA;      await this.ffmpeg.load();&#xA;      console.log("FFmpeg loaded successfully");&#xA;    } catch (error) {&#xA;      console.error("Error loading FFmpeg:", error);&#xA;    }&#xA;  }&#xA;}&#xA;</void>

    &#xA;

    I have tried to troubleshoot the issue but am unsure how to proceed.

    &#xA;

    The error seems related to SharedArrayBuffer, which I understand is required for performance improvements in multi-threading for web applications.

    &#xA;

    I have checked my ffmpeg.wasm setup, and it works fine in a plain JavaScript application.

    &#xA;

    Ensured that my Angular application is correctly serving the WebAssembly files.

    &#xA;

    Looked into setting up the appropriate HTTP headers for Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy, but I am unsure if I have done it correctly.

    &#xA;

    My questions :

    &#xA;

      &#xA;
    • How do I resolve the SharedArrayBuffer is not defined error in Angular ?
    • &#xA;

    • Is there a specific setup required for using SharedArrayBuffer in Angular with WebAssembly applications like FFmpeg ?
    • &#xA;

    • How can I ensure that the necessary HTTP headers are configured correctly in my Angular project to support this ?
    • &#xA;

    &#xA;

    Additional information :

    &#xA;

      &#xA;
    • Angular version : 18.2.3
    • &#xA;

    • ffmpeg.wasm version : Latest (installed via npm)
    • &#xA;

    • Browser : Chrome 100+
    • &#xA;

    &#xA;