Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (81)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7813)

  • The System Audio not included when recording screen using tab capture api

    21 septembre 2024, par alpecca

    I am working on a chrome extension that let user record their current tab video + the current system audio for example playing a music on the tab. I read the docs on the web about preserve audio on tab capture api and the audio constraint to set to be true

    


    chrome.tabCapture.capture({
        video: true,
        audio: true,


    


    const stream = await new Promise<mediastream null="null">((resolve, reject) => {&#xA;    chrome.tabCapture.capture({&#xA;        video: true,&#xA;        audio: true,&#xA;        videoConstraints: {&#xA;            &#xA;            mandatory: {&#xA;                minFrameRate: 60,&#xA;                maxFrameRate: 60,&#xA;                minWidth: 1920, &#xA;                minHeight: 1080, &#xA;                maxWidth: 1920,&#xA;                maxHeight: 1080,&#xA;            }&#xA;        }&#xA;    }, (stream: MediaStream | null) => {&#xA;        if (chrome.runtime.lastError) {&#xA;            return reject(new Error(chrome.runtime.lastError.message));&#xA;        }&#xA;        resolve(stream);&#xA;    });&#xA;});&#xA;</mediastream>

    &#xA;

    In the above code, when I set the audio to be true and try to record the screen, the final output doesn't contain any audio.

    &#xA;

    Here is the Media Recorder values :-

    &#xA;

    const recorder = new MediaRecorder(stream, {&#xA;            mimeType: &#x27;video/webm;codecs=H264&#x27;,&#xA;            videoBitsPerSecond: 8000000&#xA;        });&#xA;&#xA;        recorder.ondataavailable = (e: BlobEvent) => {&#xA;            socketRef.send(e.data)&#xA;           &#xA;        }&#xA;  &#xA;        recorder.start(2000);&#xA;

    &#xA;

    And also my ffmpeg in the backend to handle the incoming stream :-

    &#xA;

    command = [&#xA;        &#x27;ffmpeg&#x27;, &#xA;        &#x27;-y&#x27;,&#xA;        &#x27;-i&#x27;, &#xA;        &#x27;-&#x27;, &#xA;        &#x27;-codec:v&#x27;, &#xA;        &#x27;copy&#x27;, &#xA;        &#x27;-codec:a&#x27;, &#xA;        &#x27;copy&#x27;, &#xA;        &#x27;-y&#x27;,&#xA;        &#x27;-f&#x27;, &#x27;mp4&#x27;,&#xA;        recordingFile,&#xA;        # "-"&#xA;        # f&#x27;output{queueNumber}.mp4&#x27;,&#xA;    ]&#xA;

    &#xA;

    Any help would be greatly appreciated :)

    &#xA;

  • System.IO.IOException : Pipe is broken error with FFMpegCore library

    14 octobre 2024, par secretply

    I am looking to retrieve the loudnorm data in JSON format from FFmpeg (using FFMpegCore 5.1.0). This is the code I currently have :

    &#xA;

    await FFMpegArguments&#xA;    .FromPipeInput(new StreamPipeSource(fileStream.OpenReadStream()))&#xA;    .OutputToPipe(new StreamPipeSink(outputStream), options => options.WithCustomArgument("-af loudnorm=print_format=json"))&#xA;    .ProcessAsynchronously();&#xA;

    &#xA;

    This is the exception I get, which is similar to this old GitHub issue.

    &#xA;

    System.IO.IOException: &#x27;Pipe is broken.&#x27;&#xA;&#xA;This exception was originally thrown at this call stack:&#xA;    System.IO.Pipes.PipeStream.PipeValueTaskSource.GetResult(short)&#xA;    System.IO.Pipes.PipeStream.PipeValueTaskSource.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(short)&#xA;    System.IO.Stream.CopyToAsync.__Core|27_0(System.IO.Stream, System.IO.Stream, int, System.Threading.CancellationToken) in Stream.cs&#xA;    FFMpegCore.Arguments.InputPipeArgument.ProcessDataAsync(System.Threading.CancellationToken)&#xA;    FFMpegCore.Arguments.PipeArgument.During(System.Threading.CancellationToken)&#xA;    FFMpegCore.FFMpegArguments.During(System.Threading.CancellationToken)&#xA;    FFMpegCore.FFMpegArgumentProcessor.Process(Instances.ProcessArguments, System.Threading.CancellationTokenSource)&#xA;    FFMpegCore.FFMpegArgumentProcessor.ProcessAsynchronously(bool, FFMpegCore.FFOptions)&#xA;

    &#xA;

    I am trying to replicate the following FFmpeg command and JSON output :

    &#xA;

    ffmpeg -i "file.flac" -af loudnorm=print_format=json -f null -&#xA;

    &#xA;

    {&#xA;        "input_i" : "-21.87",&#xA;        "input_tp" : "-7.13",&#xA;        "input_lra" : "5.00",&#xA;        "input_thresh" : "-32.04",&#xA;        "output_i" : "-24.76",&#xA;        "output_tp" : "-10.36",&#xA;        "output_lra" : "4.10",&#xA;        "output_thresh" : "-34.84",&#xA;        "normalization_type" : "dynamic",&#xA;        "target_offset" : "0.76"&#xA;}&#xA;

    &#xA;

    If I add .ForceFormat("null") to the OutputToPipe options, I do not get the exception but when I read the output stream, it returns an empty string. In the issue mentioned, I know they mentioned a way to get the FFMpegErrorOutput property but I do not know how that can be done. I could not find an example of outputting a stream as JSON. If anyone can point me in the right direction or can provide an alternative solution, I would greatly appreciate it.

    &#xA;

  • Python ffmpeg : [WinError 2] The system cannot find the file specified [duplicate]

    21 novembre 2024, par PeppersONLY
    #what i did to install&#xA;&#xA;pip install ffmpeg-python&#xA;

    &#xA;

    #code&#xA;&#xA;import ffmpeg&#xA;&#xA;crop_dimensions = "640:480:0:0"&#xA;&#xA;input_file = "input.mp4"&#xA;output_file = "output.mp4"&#xA;&#xA;(&#xA;    ffmpeg&#xA;    .input(input_file)&#xA;    .filter("crop", *crop_dimensions.split(":"))&#xA;    .output(output_file, vcodec="libx264", crf=22)&#xA;    .overwrite_output()&#xA;    .run()&#xA;)&#xA;

    &#xA;

    Whenever I run this code, I get this error :

    &#xA;

        hp, ht, pid, tid = _winapi.CreateProcess(executable, args,&#xA;                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;

    &#xA;

    I tried reinstalling the library but that didn't seem to work.

    &#xA;