Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (51)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (8418)

  • How to get the duration or total number of frame in ffmpeg filter ?

    1er juillet 2020, par Reasno

    I'm writing a filter in ffmpeg in which I have to get the duration of the video. The filter_frame function looks like followings :

    


    static int filter_frame(AVFilterLink* link, AVFrame* in) {
    AVFilterContext* avctx = link->dst;
    ExtractContext* privCtx = (ExtractContext*)avctx->priv;
    AVFilterLink* outlink = avctx->outputs[0];
    //here I want to get the duration or total number of frames:
}


    


    I have to get the duration or total number of frames in this function, but the only parameters of the function is AVFilterLink and AVFrame in which I cant find relative fields, so I dont know how to do.
Can you help me ? Thanks for your reply !

    


  • How do i overlay frame number on video in python

    11 mai 2022, par Anuj Saxena

    How do i watermarking a video with the current frame number ?
My command is
[ ffmpeg -i input -vf "drawtext=fontfile=Arial.ttf : text='%frame_num' : start_number=1 : x=(w-tw)/2 : y=h-(2*lh) : fontcolor=black : fontsize=20 : box=1 : boxcolor=white : boxborderw=5" -c:a copy output.mp4 ]

    


    when I run this command in the terminal I executed my task successfully. but when I used this command in IDE (pycharm) it treated text='%frame_num as a variable IDE throws an error and when i replace frame_num with 1 or 0 or any number then IDE executed my code and make a video but this video has no watermark of the current frame number.

    


    what should I do ??

    


    import os

cmd =f'''ffmpeg -i input.mp4 -vf "drawtext=fontfile=Arial.ttf: text='%{frame_num}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=black: fontsize=20: box=1: boxcolor=white: boxborderw=5" -c:a copy output.mp4'''

print(cmd)

os.system(cmd)


    


  • Additional : Add Brazillian PIS/NIS number validation method (#2204)

    21 août 2018, par cleitonmendonca
    Additional : Add Brazillian PIS/NIS number validation method (#2204)