Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (52)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (8072)

  • Merge individual frame to video file using Opencv

    18 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,

    


    fourcc = cv2.VideoWriter_fourcc(*'mp4v')
out = cv2.VideoWriter('file_data.mp4',fourcc,20 (1920,1080),False)
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)
            out.write(frame)
    if cv2.waitKey(1) and 0xFF == ord('q'):
        break


    


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

    


    


    fps = 20,
,width = 1920
,height = 1080

    


    


  • avcodec/pcm-blurayenc : Don't presume every channel layout to be native

    18 septembre 2022, par Andreas Rheinhardt
    avcodec/pcm-blurayenc : Don't presume every channel layout to be native
    

    The pcm_bluray encoder has AVCodec.ch_layouts set, so that
    ff_encode_preinit() checks that the channel layout in use
    is equivalent to one of the layouts from AVCodec.ch_layouts.
    Yet equivalent is not the same as identical ; in particular,
    custom layouts equivalent to native layouts are possible
    (and necessary if one wants to use the name/opaque fields
    with an ordinary channel layout), so one must not simply
    use AVChannelLayout.u.mask. Use av_channel_layout_subset()
    instead.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/pcm-blurayenc.c
  • lavu/riscv : helper macro for VTYPE encoding

    5 octobre 2022, par Rémi Denis-Courmont
    lavu/riscv : helper macro for VTYPE encoding
    

    On most cases, the vector type (VTYPE) for the RISC-V Vector extension
    is supplied as an immediate value, with either of the VSETVLI or
    VSETIVLI instructions. There is however a third instruction VSETVL
    which takes the vector type from a general purpose register. That is so
    the type can be selected at run-time.

    This introduces a macro to load a (valid) vector type into a register.
    The syntax follows that of VSETVLI and VSETIVLI, with element size,
    group multiplier, then tail and mask policies.

    • [DH] libavutil/riscv/asm.S