Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (93)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

Sur d’autres sites (9068)

  • Change video resolution in loop

    24 juillet 2020, par WoJo

    I am trying to decrease the resolution of a video to under 500x500. I don't want to change it to exactly 500x500 because that would mess up video quality. So what I am trying to do is to decrease the resolution by 75% in a loop, and that loop would only stop when the video is under 500x500. In theory that would not be hard, but I can't seem to figure it out.

    


    var vidwidth = 501; //Create variable and put it to 501
var vidheight = 501; //so that it won't go through the If Statement
fs.copyFile(filepath2, './media/media.mp4', (err: any) => { //Copy given file to directory
    console.log('filepath2 was copied to media.mp4'); //Log confirmation (Not appearing for some reason, but file is copied)
})
while (true) {
    getDimensions('./media/media.mp4').then(function (dimensions: any) { //Get dimensions of copied video
        var vidwidth = parseInt(dimensions.width)   //Parse to Int
        var vidheight = parseInt(dimensions.height) //and put in variables
    })
    ffmpeg('./media/media.mp4')                 //Call ffmpeg function with copied video path
        .output('./media/media.mp4')            //Set output to the same file so we can loop it
        .size('75%')                            //Reduce resolution by 75%
        .on('end', function() {                 //Log confirmation on end
            console.log('Finished processing'); //(Not appearing)
        })                                      //
        .run();                                 //Run function
    if (vidwidth < 500 && vidheight < 500) {    //Check if both the width and height is under 500px
        break;                                  //If true, break the loop and continue
    }
}


    


    This is the current code I am using with comments. Basically what happens is it gets stuck in the while loop because the dimensions of the video won't change. Tested with console.log() line. I think that if I can fix the ffmpeg problem somehow it will all be fixed.
I'd appreciate any help :)

    


    PS : This is all made in typescript, then build into js using npx tsc

    


  • Android editing video files

    25 novembre 2013, par Kernald

    I'm working on an Android application in which the user should be able to edit a video (cut and reorder some parts of a video taken with the phone).

    I have no idea how to do this : the media package doesn't seems to contain anything related to this. The videoeditor package could probably help me, but it's not public in the SDK. ffmpeg could maybe be a solution, but I'd like to avoid using NDK if I can.

    Any directions on how to do it ?

  • Android libraries for ffmpeg + stagefright. languge c++

    31 juillet 2014, par Serhii Skytyba

    I’v making cross-platform program in c++. In my program for Android platform i need video decoding hw acceleration. I have found out, that i need to look in libstagefright.cpp. which contains ffmpeg library. There i have found next includes :

    #include <binder></binder>ProcessState.h>
    #include <media></media>stagefright/MetaData.h>
    #include <media></media>stagefright/MediaBufferGroup.h>
    #include <media></media>stagefright/MediaDebug.h>
    #include <media></media>stagefright/MediaDefs.h>
    #include <media></media>stagefright/OMXClient.h>
    #include <media></media>stagefright/OMXCodec.h>
    #include <utils></utils>List.h>

    Also, i found out that the source code of these headers is here : https://android.googlesource.com . But i can’t understand in which way to build them. So, my question is : Where can i get these libraries or how can get the source code, that i need to build ? Also, i look for advice which way i can better use Android video decoding hw acceleration + ffmpeg.