Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (110)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • 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

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

  • Extracting video frame image with libavformat and libswscale gives flipped image

    21 novembre 2015, par ivan.ukr

    I am using following code to extract image frames outputted by avcodec_decode_video2() into BMP file :

    // Convert the image from its native format to RGB
    int height = sws_scale(state.sws_ctx,
                (uint8_t const * const *)state.frame->data,
                state.frame->linesize,
                0,
                state.video_codec_ctx->height,
                state.picture.data,
                state.picture.linesize);

    // ..... here BMP header initialization goes ...

    // Extract pixels
    {
       int y = 0;
       size_t frame_line_size = state.picture.linesize[0];
       uint8_t* bmp_data = &bmp->data[0];
       uint8_t* picture_data = state.picture.data[0];
       while(y < height)
       {
           memcpy(bmp_data, picture_data, image_line_size);
           bmp_data += image_line_size_with_padding;
           picture_data += frame_line_size;
           ++y;
       }
    }

    But it results flipped image :

    Resulting BMP image

    Can anyone please help me to understand, what I am doing wrong here ?

    Video stream information :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'testdata/video3.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01 00:00:00
       title           : video3.mp4
       encoder         : Lavf52.78.3
     Duration: 00:00:07.93, start: 0.000000, bitrate: 1467 kb/s
       Stream #0.0(und): Video: h264 (High), yuv420p, 640x320 [PAR 1:1 DAR 2:1], 1331 kb/s, 29.73 fps, 29.73 tbr, 29734 tbn, 59.47 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
       Stream #0.1(und): Audio: aac, 48000 Hz, stereo, fltp, 127 kb/s
       Metadata:
         creation_time   : 1970-01-01 00:00:00
    Video file 'testdata/video3.mp4' has 236 frames.

    I have alternate code that uses libopencv, and it gives correct image from the same video file, but I need to reach the correct effect using directly ffmpeg libs.

    Correct image established from the same video file via libopencv

  • How can I extract a good quality JPEG image from an H264 video file with ffmpeg ?

    28 juillet 2020, par Daniel Gartmann

    Currently I am using this command to extract the images :

    



    


    ffmpeg.exe -i 10fps.h264 -r 10 -f image2 10fps.h264_%03d.jpeg

    


    



    But how can I improve the JPEG image quality ?

    


  • saveVideo only printing out the first image in a video

    21 octobre 2017, par Dom Burns

    I’m trying to make a video of plots that are output from a loop using saveVideo. However, at the moment the output video only gives the first image for the number of times that the loop runs (40 seconds in my example code). Probably something really obvious, but does anyone know how to fix this ?
    Example code :

    create_photos <- function(){
     for (i in 1:40){
       plot(c(0, 1), c(0, 1), ann = F, bty = 'n', type = 'n', xaxt = 'n', yaxt = 'n')
       text(x = 0.5, y = 0.5, paste(i))
     }
    }
    saveVideo(create_photos(), video.name = 'animation.mp4')