Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (50)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (6206)

  • problem with changing the frames in an video with opencv

    5 septembre 2023, par Avizipi

    I have a code that runs in the last few months without any problem. The code shows an image from a video with extra data from the relevant db. using the keyboard you can jump around some frames and get better insights. However, in the last week changing the frame of the video stopped working.

    


    I built a small script that show the problem.

    


    import cv2

vid_cap_reader_path = "vid_230830_122746_C.avi"
cap_rgb = cv2.VideoCapture(vid_cap_reader_path)

k = 0
while 1:
    if k == ord("q"):
        break
    if k == ord("b"):
        before = cap_rgb.get(cv2.CAP_PROP_POS_FRAMES)
        cap_rgb.set(cv2.CAP_PROP_POS_FRAMES, before + 30.0)
        after = cap_rgb.get(cv2.CAP_PROP_POS_FRAMES)
        print(f"before = {before} after = {after}")
    ret, img = cap_rgb.read()
    if ret:
        cv2.imshow("bla", img)
        k = cv2.waitKey(0)
    else:
        break


    


    This is what is printed to the terminal :

    


    [mpeg4 @ 0x1d87400] warning: first frame is no keyframe
before = 36.0 after = 0.0
before = 67.0 after = 0.0
[mpeg4 @ 0x1d87400] warning: first frame is no keyframe
before = 40.0 after = 0.0
[mpeg4 @ 0x1d87400] warning: first frame is no keyframe


    


    The video itself doesn't "jump" for the next frame as expected and also most of the properties that opencv have return 0. I tested also CAP_PROP_FRAME_COUNT, and CAP_PROP_POS_MSEC without any lack, although the msec flag did give non-zero results which make no sense.

    


    It is also important to mention that I am building this application in a docker file and I am not using a specific version for my requirements. The tests here are with opencv-python==4.7.0.68. Also, the videos are working fine while playing them on VLC.

    


    I was looking around the net for a similar problem from the recent time and didn't find much except this github issue that may be similar. I started to downgrade opencv one by one without any luck.

    


    Maybe someone here can help with this issue, or give me a lead to doing something different.

    


  • Revision a721e5cb0f : Merge "Build / make problem" into experimental

    5 novembre 2012, par Yaowu Xu

    Merge "Build / make problem" into experimental

  • avcodec/nvenc : add rate control option

    25 mai 2016, par Andrey Turkin
    avcodec/nvenc : add rate control option
    

    Signed-off-by : Timo Rothenpieler <timo@rothenpieler.org>

    • [DH] libavcodec/nvenc.c
    • [DH] libavcodec/nvenc.h
    • [DH] libavcodec/nvenc_h264.c
    • [DH] libavcodec/nvenc_hevc.c