Recherche avancée

Médias (1)

Mot : - Tags -/livre électronique

Autres articles (67)

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

  • How to execute fluent-ffmpeg commands from express router ?

    27 janvier 2021, par Chris

    so I'm trying to control and m3u8 playlist using data sent in thru an express route and keep getting the same error "Error : ffmpeg exited with code 1 : Conversion failed !" when attempting.

    


    My code looks like this

    


    ch1Router
    .route("/source")
    .post(jsonBodyParser, (req, res, next) => {
        //video url from request body
        const { url } = req.body;
        
        //test console log
        console.log(req.body);

        //ffmpeg commands
        ffmpeg(url)
            .output('videos/Ch1.m3u8')
            .on('error', (err) => {
                console.log("Something Happened:", err.message)
                res.send("Error changing input!")
            })
            .run()
            

        
        res.send("hi")
    })


    


    When I run this exact command in a separate file using Node, the command executes and I only need to refresh my browser to see the new video file. When trying to chain it to a post request containing the video URL I get the conversion error. Any help would be appreciated.

    


    **Updated my code to prevent the server from crashing and respond with an error message but still don't understand the conversion error.

    


  • avcodec/flashsv2enc : Fix use of uninitialized value

    27 janvier 2021, par Andreas Rheinhardt
    avcodec/flashsv2enc : Fix use of uninitialized value
    

    Before 257a83b969157eb76c18158a4e503e908d8b1125, certain buffers were
    zero-allocated in the init function and only reallocated lateron if they
    turned out to be too small ; now they are only allocated during init,
    leading to use-of-uninitialized values lateron. The same could happen
    before if the dimensions are big enough so that the buffers would be
    reallocated, as the new part of the reallocated buffer would not be
    zeroed (happened for 960x960). So always zero the buffers in the
    function designed to init them.

    Reviewed-by : Marton Balint <cus@passwd.hu>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/flashsv2enc.c
  • fluent-ffmpeg add multiple languages from method dynamically nodejs

    18 février 2021, par AmitKumar

    I am trying to add multiple languages and subtitles to a video dynamically. but I am not able to find any solution, I found many results for the command line.

    &#xA;

    I want to call this command script from my nodejs method

    &#xA;

    ffmpeg -i captain-marvel-trailer.mp4 -i tamil.mp3 -i telugu.mp3 -i hindi.mp3 -map 1 -map 2 -map 3 -metadata:s:a:0 language=eng -metadata:s:a:1 language=tam -metadata:s:a:2 language=tel -metadata:s:a:3 language=hin -codec copy multilanguage.mp4&#xA;

    &#xA;

    Here is my codes :

    &#xA;

    lodash.each(payloadData.languages,function(language){&#xA;    let start = 0;&#xA;    let max = payloadData.languages.length;&#xA;    while (start &lt; max) {&#xA;        // fname = `${path.resolve(`contents/hindi.mp3`)} -map 1 -metadata:s:a:0 language=hin -codec copy ${finalVideoPath}`&#xA;        // ffmpeg().input(fname)        &#xA;        start &#x2B;= 1;&#xA;    }&#xA;})&#xA;    &#xA;ffmpeg(&#x27;./sample.mov&#x27;)&#xA;    .withOutputFormat(&#x27;.mp4&#x27;)&#xA;    .size(&#x27;1920x1080&#x27;)&#xA;    .on("end", function (stdout, stderr) {  &#xA;&#xA;    })&#xA;}).on("error", function (err) {&#xA;    console.log("an error happened: " &#x2B; err.message);&#xA;}).save(finalVideoPath)&#xA;

    &#xA;