Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (54)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

  • 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 ;

Sur d’autres sites (12571)

  • OpenCV reading from live camera creates a short video that moves quickly

    17 novembre 2022, par user19019404

    I am reading in a live vide stream from a CCTV camera. The camera is set to 5 fps, another is set to 25fps and another to 30fps. Irrespective of the FPS that the camera is set, I can record 5 minutes but end up with a 30 second recorded clip where everyone is running around the scene.

    


    My code is the 'typical' read in video and write video code that you would find online such as (code below simplified for readability) :

    


    import cv2

video = cv2.VideoCapture(live RTSP address of camera)

if (video.isOpened() == False):
    print("Error reading video file")
else:
    frame_width = video.get(cv2.CAP_PROP_FRAME_WIDTH)
    frame_height = video.get(cv2.CAP_PROP_FRAME_HEIGHT)
    frame_fps = video.get(cv2.CAP_PROP_FPS)
    size = (frame_width, frame_height)
    result = cv2.VideoWriter('filename.avi',cv2.VideoWriter_fourcc(*'MJPG'),frame_fps , size)

    while(True):
        ret, frame = video.read()
        if ret == True:
            result.write(frame)
            cv2.imshow('Frame', frame)
        if cv2.waitKey(1) & 0xFF == ord('s'):
            break
        else:
            break
    video.release()
    result.release()
    cv2.destroyAllWindows()
print("The video was successfully saved with new fps")


    


    I have tried playing with the FPS by reading in the FPS from the live camera and using the same FPS in the video write, but all that results is a video that is a fraction of the real time and with people zooming around the scene. So watching a 5 minute smooth video results in a 20 second recorded video with everyone zooming around.

    


    Is this something that I need to fix in the writing of the video or do I need a second pass with ffmpeg to readjust the video ?

    


    Much appreciated

    


    Update, corrected the code above and :
When printing the frames read and the frame written the numbers are the same, showing that each frame that is read is being written (so I am not losing frames along the way thereby writing half the amount of frames).

    


  • Revision 0e3f494b21 : mips msa vp8 block subtract optimization average improvement 2x-3x Change-Id :

    31 juillet 2015, par Parag Salasakar

    Changed Paths :
     Modify /vp8/common/mips/msa/vp8_macros_msa.h


     Modify /vp8/common/rtcd_defs.pl


     Add /vp8/encoder/mips/msa/encodeopt_msa.c


     Modify /vp8/vp8cx.mk



    mips msa vp8 block subtract optimization

    average improvement 2x-3x

    Change-Id : I30abf4c92cddcc9e87b7a40d4106076e1ec701c2

  • Revision 1543f2b60e : mips msa vp9 block error optimization average improvement 3x-4x Change-Id : If

    23 juin 2015, par Parag Salasakar

    Changed Paths :
     Modify /vp9/common/mips/msa/vp9_macros_msa.h


     Modify /vp9/common/vp9_rtcd_defs.pl


     Add /vp9/encoder/mips/msa/vp9_error_msa.c


     Modify /vp9/vp9cx.mk



    mips msa vp9 block error optimization

    average improvement 3x-4x

    Change-Id : If0fdcc34b17437a7e3e7fb4caaf1067bc175f291