Recherche avancée

Médias (0)

Mot : - Tags -/serveur

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

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

  • MPEG DASH (MPD) to MP4 in Node.js ?

    28 janvier 2024, par Hello World

    I am trying to convert streams to .mp4 files. I have successfully converted an HLS to MP4 using fluent-ffmpeg package on version 2.1.2. I did so with with the following code :

    


    var ffmpegCommand = ffmpeg();
            ffmpegCommand
            .input(HLS FILE HERE)
            .inputOptions('-protocol_whitelist file,http,https,tcp,tls,crypto,data')
            .on("error", (err, stdout, stderr) => {
                console.log(err)
                let error = new Error(err.message)
                error.code = err.code || 'FILE_CONVERSION_M3U8_TO_MP3/UNKNOWN_ERROR';
                error.status = err.status || 500;

                console.log('An error occurred: ' + err.message, err, stderr);
                reject(error)
            })
            .on("end", () => {
                console.log(temporaryFilePath2)
                resolve(temporaryFilePath2);
            })
            .on('progress', function(progress) {
                console.log('progress: ' + (progress.percent || 0).toFixed(2) + '%。');
                progressGathering.push((progress.percent || 0).toFixed(2))

                if(progressGathering.length == 10 && progressGathering[9] == 0.00){
                    let error = new Error("File is a live stream.")
                    error.code = 'FILE_CONVERSION_M3U8_TO_MP3/LIVESTREAM_SUPPORT'
                    error.status = 501

                    ffmpegCommand.kill()
                    reject(error)
                }
            })
            .inputOptions('-allowed_extensions ALL')
            .outputOptions("-c copy")
            .output(temporaryFilePath2)
            .run();

            setTimeout(() => {
                ffmpegCommand.kill();
                let error = new Error("The file selected was too large or the network was hanging. Conversion timeout.")
                error.code = 'FILE_CONVERSION_M3U8_TO_MP3/TIMEOUT'
                error.status = 599;
                reject(error)
            }, 300000) // 5 minutes


    


    However, when I attempt something similar with a mpd file url in the input, I get several errors that are all the same :

    


    ffmpeg exited with code 1: https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd: Invalid data found when processing input

    


    Is this something fluent-ffmpeg can't handle ? If so, I would like to know another package that can accomplish this.

    


  • avformat/Makefile : Remove false dependency of WebM DASH manifest muxer

    7 avril 2020, par Andreas Rheinhardt
    avformat/Makefile : Remove false dependency of WebM DASH manifest muxer
    

    It does not use anything from libavformat/matroska.c.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/Makefile
  • FFmpeg dnn_processing with tensorflow backend : difficulties applying a filter on an image

    9 avril 2023, par ArnoBen

    I am trying to perform a video segmentation for background blurring similar to Google Meet or Zoom using FFmpeg, and I'm not very familiar with it.

    &#xA;

    Google's MediaPipe model is available as a tensorflow .pb file here (using download_hhxwww.sh).

    &#xA;

    I can load it in python and it works as expected, though I do need to format the input frames : scaling to the model input dimension, adding a batch dimension, dividing the pixel values by 255 to have a range 0-1.

    &#xA;

    FFmpeg has a filter that can use tensorflow models thanks to dnn_processing, but I'm wondering about these preprocessing steps. I tried to read the dnn_backend_tf.c file in ffmpeg's github repo, but C is not my forte. I'm guessing it adds a batch dimension somewhere otherwise the model wouldn't run, but I'm not sure about the rest.

    &#xA;

    Here is my current command :

    &#xA;

    ffmpeg \&#xA;    -i $FILE -filter_complex \&#xA;    "[0:v]scale=160:96,format=rgb24,dnn_processing=dnn_backend=tensorflow:model=$MODEL:input=input_1:output=segment[masks];[masks]extractplanes=2[mask]" \&#xA;    -map "[mask]" output.png&#xA;

    &#xA;

      &#xA;
    • I'm already applying a scaling to match the input dimension.
    • &#xA;

    • I wrote this [masks]extractplanes=2[mask] because the model outputs a HxWx2 tensor (background mask and foreground mask) and I want to keep the foreground mask.
    • &#xA;

    &#xA;

    The result I get with this command is the following (input-output) :

    &#xA;

    Output example

    &#xA;

    I'm not sure how to interpret the problems in this output. In python I can easily get a nice grayscale output :

    &#xA;

    enter image description here

    &#xA;

    I'm trying to obtain something similar with FFmpeg.

    &#xA;

    Any suggestion or insights to obtain a correct output with FFmpeg would be greatly appreciated.

    &#xA;

    PS : If I try to apply this on a video file, it hits a Segmentation Fault somewhere before getting any output so I stick with testing on an image for now.

    &#xA;