Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (75)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7363)

  • AVSubtitleRect DVBSub format explanation

    6 mars 2020, par Captain Jack

    I am trying to convert the DVBSub data in AVSubtitle to RGB format but it doesn’t seem to be working. I am just getting random colours out.

    Here’s the code :

    /* rects comes from AVSubtitleRect type elsewhere*/

    int bw = rects[0].w;
    int bh = rects[0].h;
    uint32_t colour;
    uint32_t *bitmap;
    int r, g, b;

    /* Give it some memory */
    bitmap = malloc(bw * bh * sizeof(uint32_t));

    for (int y = 0; y < bh; y++)
      {
           for (int x = 0; x < bw; x++)
           {
               /* data[0] holds index data */
               const uint8_t index = rects[0]->data[0][y * bw + x];

               /* data[1] holds colours - get colour from index */
               colour = rects[0]->data[1][4 * index];

               r = (colour >> 16) & 0xFF;
               g = (colour >>  8) & 0xFF;
               b = (colour >>  0) & 0xFF;

               /* construct bitmap pixel by pixel (24 bit RGB) */
               bitmap[y * bw + x] = r << 16 | g << 8 | b;
           }
       }

    There is some information here Dump subtitle from AVSubtitle in the file but I am not sure I am understanding it correctly.

    I am sure that I am getting the data correct and text based subtitles look fine. Not quite sure what I am doing wrong here.

  • Merge individual frame to video file using Opencv and FFmpeg

    16 août 2022, par Rohit

    I am trying to stack a individual frame to a video file using Opencv. I want to combine two different code together to make the individual frame.
Following code help me extract the individual frame

    


    while True:
ret, frame=cap.read()
mask = object_detector.apply(frame)
_, mask  = cv2.threshold(mask,254,255,cv2.THRESH_BINARY)       
contours,_ = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
res = cv2.bitwise_and(frame,frame,mask=mask)
for cnt in contours:
    area = cv2.contourArea(cnt)
    if area>1000:   
        #print("Area of contour:", area)
        cv2.drawContours(frame, [cnt], -1, (0,255,0),2)
        cv2.imwrite("file%d.jpg"%count, frame)


    


    And I attach the frame together separately using following code using ffmpeg command

    


    ffmpeg -r 3 -i frame%03d.jpg -c:v libx264 -vf fps=25 -pix_fmt yuv420p video.mp4


    


    I tried storing the individual frame in array, but it didn't work. It doesn't show any error, but pc crash.

    


  • Merge commit ’a9a2f3613040c4f90bf15cbd76f8671252ecc043’

    12 juillet 2015, par Michael Niedermayer
    Merge commit ’a9a2f3613040c4f90bf15cbd76f8671252ecc043’
    

    * commit ’a9a2f3613040c4f90bf15cbd76f8671252ecc043’ :
    doc : add a section about building with libmfx

    Conflicts :
    doc/general.texi

    Merged-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] doc/general.texi