Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (45)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • 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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (6107)

  • How can you run an exe as with no window, in the background and being the most efficient use of resources ? [closed]

    18 mars 2013, par Covenant Spokane

    I don't understand the way the windows totally functions so forgive the novice question.

    I want to setup a server running a video processing peogram called FFMpeg. The server will be used at an time to run that command line program in as many instances that the server can handle. I don't want the server to have 100 command windows open while its processing. Can an exe be run as a process or service or something so that it runs without a window and is as efficient as possible.

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

  • Serving a single JPEG using ffserver

    4 mai 2016, par Magnus

    I have a setup where a local application writes a sequence of JPEG images into a FIFO (Unix named pipe on Linux). On the other end I have ffmpeg picking up the sequence and passing it into an instance of ffserver :

    % ffmpeg -i fifo.mjpeg http://127.0.0.1:8090/feed.ffm

    The configuration for ffserver looks like this :

    HTTPPort 8090
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 20
    MaxClients 10
    MaxBandwidth 1000

    <feed>
     File /tmp/feed.ffm
     FileMaxSize 200k

     ACL allow 127.0.0.1
    </feed>

    <stream>
     Format mpjpeg
     Feed feed.ffm

     VideoSize 960x600
     VideoFrameRate 2
     VideoIntraOnly
     Strict -1

     NoAudio
     NoDefaults
    </stream>

    This works fine, I can point my web browser to http://127.0.0.1:8090/stream.mpjpeg and see the video.

    Now I want to add a way to download a single JPEG (I think of it as snapshot of the video). I added the following to the ffserver configuration :

    <stream>
     Format singlejpeg
     Feed feed.ffm

     VideoSize 960x600
     VideoFrameRate 2
     VideoIntraOnly
     Strict -1

     NoAudio
     NoDefaults
    </stream>

    That only sort of works. Sure, if I point my browser to http://127.0.0.1:8090/image.jpg I do so a still picture from the video, but the browser never stops loading !

    Indeed, if I run wget http://127.0.0.1:8090/image.jpg I see that the MIME type is good (image/jpeg), but there seems to be no end to the image.

    Am I missing something in my configuration that makes ffserver sending more than a single image ?

    I should add I’ve tried this setup on both 2.8.6 (Debian Jessie, package comes from jessie-backports) and 3.0 (Arch Linux), with the same result in both cases.