Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (91)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

  • nodejs ffmpeg works in local but not in production

    24 octobre 2019, par HUNG
    var proc =
    ffmpeg()
    .input('./public/img/capture/photoframe.png')
    .input( scenePath + '%04d.png')
    .inputFPS(15)
    .input( msgPath + '%04d.png')
    .inputFPS(15)
    .input( path + data + '.' + ext )
    .complexFilter([
       "[3:v]scale=668:-1[scaledUGC]",
       "[0]overlay=66:155[output0]",
       "[output0][scaledUGC]overlay=66:155[output1]",
       "[output1][1]overlay=66:155[output2]",
       "[output2][2]overlay=66:155[output3]",
       "[output3][0]overlay=0:0[output4]"  
    ], 'output4')
    .outputFPS(15)
    .on('start', function(command) {
       if (env === 'development') {
           console.log(new Date());
           console.log('Start with command:'+command);
       }
    })
    // .on('progress', function(progress) {
    //     if (env === 'development') {
    //         console.log(progress.percent + "% done");
    //     }
    // })
    .on('end', function() {
       if (env === 'development') {
           console.log(new Date());
           console.log('file has been converted succesfully');
       }

       var gifMaker =
       ffmpeg()
       .input('./public/_ugc/' + data + '.mp4')
       .save('./public/_ugc/' + data + '.gif');

       res.send({
           status: "success",
           uid: data
       });

    })
    .on('error', function(err) {
       console.log('an error happened: ' + err.message);

       res.send({
           status: "err",
           uid: "err_video"
       });
    })
    .save('./public/_ugc/' + data + '.mp4');

    I have the above code that can successfully generate a 5s video in my local Mac.

    However, when I push the code to the production Ubuntu, it can only generate a 1s video only.

    There is no error in the Ubuntu side. I wonder if I missed anything.

    I also wonder should I preload the source images first ?

    node v12.13.0

    ffmpeg version 2.8.15-0

    ubuntu0.16.04.1

  • Command works on terminal but not with Kotlin

    9 novembre 2019, par Antony

    I’m trying to use an FFMPEG command for concatenating different videos. The command is

    ffmpeg -i video.mp4 -i video-2.mp4 -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" output.mp4

    This command works good when I run on Windows PowerShell. But when I try to run with Kotlin code it doesn’t work.

    val firstVideo = "D:\\Videos\\ffmpeg\\video.mp4"
    val secondVideo = "D:\\Videos\\ffmpeg\\video-2.mp4"
    val resultPath = "D:\\Videos\\ffmpeg\\result-2.mp4"

    val cmd = "ffmpeg -i $firstVideo -i $secondVideo -filter_complex \"[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]\" -map \"[v]\" -map \"[a]\" $resultPath"
    .split(" ").toTypedArray()

    Runtime.getRuntime().exec(cmd)

    I’m not taking any error messages since I’m using FFMPEG cli.

    Also, this piece of Kotlin works perfect when I’m trying to run other FFMPEG operations.

  • FFMPEG command works on terminal but not with Java/Kotlin

    11 septembre 2019, par Antony

    I’m trying to use an FFMPEG command for concatenating different videos. The command is

    ffmpeg -i video.mp4 -i video-2.mp4 -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" output.mp4

    This command works good when I run on Windows PowerShell. But when I try to run with Kotlin code it doesn’t work.

    val firstVideo = "D:\\Videos\\ffmpeg\\video.mp4"
    val secondVideo = "D:\\Videos\\ffmpeg\\video-2.mp4"
    val resultPath = "D:\\Videos\\ffmpeg\\result-2.mp4"

    val cmd = "ffmpeg -i $firstVideo -i $secondVideo -filter_complex \"[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]\" -map \"[v]\" -map \"[a]\" $resultPath"
    .split(" ").toTypedArray()

    Runtime.getRuntime().exec(cmd)

    I’m not taking any error messages since I’m using FFMPEG cli.

    Also, this piece of Kotlin works perfect when I’m trying to run other FFMPEG operations.