Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (46)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (9498)

  • Seeking to nearest keyframe in libav/ffmpeg

    4 mars 2020, par MTRNS

    How would one seek to the nearest keyframe in a .mp4 file with libavcodec in C ? I want to seek to the nearest keyframe and then read a frame’s data with av_read_frame(fmt_ctx, &pkt, but I am unsure of whether to use av_seek_frame() or avformat_seek_file.

    EDIT : I should add my current implementation :

    int flag = AVSEEK_FLAG_ANY;
    while (av_read_frame(fmt_ctx, &pkt) >= 0) {
       if (pkt.stream_index == video_stream_idx)
           ret = decode_packet(&pkt);
       int64_t bytepos = pkt.pts;
       av_packet_unref(&pkt);
       if (ret < 0)
           break;
       avformat_seek_file(fmt_ctx, video_stream_idx, bytepos, bytepos, bytepos, flag);
    }

    Without calling avformat_seek_file(), it reads each frame perfectly. However adding the function call makes it loop forever with empty packet data. I suspect it’s returning to the beginning of the video stream each time.

    EDIT2 : I’ve changed to the following :

    int flags = AVSEEK_FLAG_BACKWARD;
    while (av_read_frame(fmt_ctx, &pkt) >= 0) {
           if (pkt.stream_index == video_stream_idx)
               ret = decode_packet(&pkt);
           int64_t bytepos = pkt.dts + 1001*30; // increase by 30 frames
           av_packet_unref(&pkt);
           if (ret < 0)
               break;
           av_seek_frame(fmt_ctx, video_stream_idx, bytepos, flag);
       }

    but I’m still reading meaningless data in my decoded packets.

  • avfilter/scale_cuda : add nearest neighbour algorithm

    3 novembre 2020, par Timo Rothenpieler
    avfilter/scale_cuda : add nearest neighbour algorithm
    
    • [DH] libavfilter/vf_scale_cuda.c
    • [DH] libavfilter/vf_scale_cuda.cu
  • ffmpeg drawtext surrounded by rounded rectangle

    7 juillet 2021, par andykais

    I want to use ffmpeg to recreate the text bubbles that appear in apps like tiktok. I created this example using imagemagick to illustrate what I mean :

    


    example speech bubble with rounded corners

    


    So far with ffmpeg, all I am able to create is text backgrounds with sharp corners :

    


    enter image description here

    


    This was done with the following command :

    


    ffmpeg -i 'live-wallpaper.mp4' -vf "drawtext=text='Hello World':x=(w-text_w)/2:y=(h-text_h)/2:fontsize=100:fontcolor=black:box=1:boxcolor=white: boxborderw=8:fontfile='fonts/proximanova-semibold.otf'" output.mp4


    


    How can I get the output of ffmpeg to look more similar to the first image ? The text isn't always going to be "Hello World" either, so I need a solution that works for text that is shorter, longer, wraps, etc.