Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (64)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (10347)

  • How to use rotate filter in FFmpeg ? [duplicate]

    14 décembre 2020, par shubham rawat

    I have to overlay text at each second of the video and the text should be tilt. I am able to overlay text but can't rotate the text. The command I am using to overlay is.

    


    ffmpeg -y -i gta5.mp4 -vf "[in]drawtext=text=\'"ALT"\': fontcolor=white: borderw=2: fontfile=Arial #Black:fontsize=w*0.04: x=(w-text_w)/1.5: y=120: enable=\'between(t,0,'+str(last_point)+')\',drawtext=text=\'"0"\': fontcolor=blue: borderw=2: fontfile=Arial #Black:fontsize=w*0.04: x=(w-text_w)/1.5: y=70: enable=\'between(t,0.00,10)\'[out]" -codec:a copy mos.mp4


    


    I want to use the rotate filter in this command or any filter which can tilt the text by some degrees.
I know how to rotate one text as it is already answered in Overlaying text on video with required angle using FFMPEG but I am having issues with multiple texts at different times.

    


  • Dumping Subtitles From AVPicture into ppm Format File

    23 janvier 2019, par Rishabh Garg

    In FFMPEG sofftware, AVPicture is used to store image data using data pointer and linesizes. It means all subtitles are stored in the form of picture inside ffmpeg . Now I want to dump subtitles from AVPicture in .ppm format file.

    I have written this code to Dump subtitles with the help of data in AVPicture. May be my red,green,blue pixel data may be wrong in the loop.

    w = ctx->sub->rects[0]->w;
    h = ctx->sub->rects[0]->h;
    line_size = ctx->sub->rects[0]->linesize[0];
    int m,n;
    FILE *fp = fopen("first.ppm", "wb");
    (void) fprintf(fp, "P3\n%d %d\n255\n", w, h);
    for (m = 0; m < h; ++m)
    {
       for (n = 0; n < line_size; ++n)
       {
               static int r,g,b,a,z;
               uint32_t *pallet = ctx->sub->rects[0]->data[1];
               z = ctx->sub->rects[0]->data[0][n];
               b = pallet[z]&0xFF;
               g = (pallet[z]>>8) & 0xFF;
               r = (pallet[z]>>16)& 0xFF;
               a = (pallet[z]>>24)& 0xFF;
               fprintf(fp,"%d %d %d %d",b,g,r,a);
       }
       fprintf(fp,"\n");
       fflush(fp);
    }
    (void) fclose(fp);

    The program is not dumping subtitles. Only 0 is coming in r,g,b,a by which subtitles are not dumping .

  • FFmpeg Drawbox Errors ?

    12 mars 2021, par Alex Gurr

    Using ffmpeg version 4.3.2.

    


    Command :

    


    ffmpeg -y

  -i /usr/src/app/backgrounds/pink-blue.jpg
  -i files/fuzzy-octopus-5/path/file.webm
  -i files/fuzzy-octopus-5/path/file.webm
  -i /usr/src/app/logo.png
  -filter_complex "
    [0]drawbox=x=-140:y=(((H-th)/2) - 205):w=840:h=490:color=white@0.2:t=fill,
       drawbox=x=770:y=(((H-th)/2) - 205):w=840:h=490:color=white@0.2:t=fill[bg]; 
    ...


    


    However I am getting the following errors ?

    


    Error while processing the decoded data for stream #3:0
Failed to inject frame into filter network: Invalid argument
Error reinitializing filters!
[Parsed_drawbox_0 @ 0x564a87058e80] Failed to configure input pad on Parsed_drawbox_0
[Parsed_drawbox_0 @ 0x564a87058e80] Error when evaluating the expression '(((H-th)/2) - 205)'.
Last message repeated 5 times
[Parsed_drawbox_0 @ 0x564a87058e80] [Eval @ 0x7ffcf25dc650] Undefined constant or missing '(' in 'H-th)/2)-205)'


    


    I have the right amount of brackets and this definitely works on my local machine (macOS). It's only throwing this error in our deployed AWS EC2 linux instance.

    


    Any ideas ? Thanks !

    


    Update : Tried replacing th with h but get the same error