Recherche avancée

Médias (1)

Mot : - Tags -/stallman

Autres articles (74)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (11000)

  • Getting an error from pyffmpeg when running as a submodule

    3 décembre 2023, par Devin Gardner

    I'm working on building an API using pyffmpeg and pytube to download YouTube videos and convert them to .wav files, synced up with some LED animations. I'm importing pyffmpeg in a submodule, which is then imported by yet another submodule. I'm getting the following error when I run the script (both from my entire package, and in the Python shell directly, and on two different devices with two different OSes) :

    


    This is the error I get from the shell on my MacBook :

    


    Traceback (most recent call last):&#xA;  File "<stdin>", line 1, in <module>&#xA;  File "/path/to/venv/lib/python3.11/site-packages/pyffmpeg/__init__.py", line 163, in convert&#xA;    raise Exception(self.error)&#xA;Exception&#xA;</module></stdin>

    &#xA;

    And this is the error I get on my Raspberry Pi when I run the full program :

    &#xA;

      File "/path/to/venv/lib/python3.11/site-packages/pyffmpeg/__init__.py", line 154, in convert&#xA;    if &#x27;Output #0&#x27; not in stderr:&#xA;                          ^^^^^^&#xA;UnboundLocalError: cannot access local variable &#x27;stderr&#x27; where it is not associated with a value&#xA;

    &#xA;

    I've tracked down the relevant code in the __init__.py file of pyffmpeg, but I'm not sure how to fix the problem.

    &#xA;

            if &#x27;Output #0&#x27; not in stderr:&#xA;            lines = stderr.splitlines()&#xA;            if len(lines) > 0:&#xA;                self.error = lines[-1]&#xA;            else:&#xA;                self.error = ""&#xA;&#xA;            if self.enable_log:&#xA;                self.logger.error(self.error)&#xA;            raise Exception(self.error)&#xA;        else:&#xA;            self.error = &#x27;&#x27;&#xA;            if self.enable_log:&#xA;                self.logger.info(&#x27;Conversion Done&#x27;)&#xA;        return out&#xA;

    &#xA;

    Anyone have any ideas ?

    &#xA;

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

    &#xA;

    I built a small script that show the problem.

    &#xA;

    import cv2&#xA;&#xA;vid_cap_reader_path = "vid_230830_122746_C.avi"&#xA;cap_rgb = cv2.VideoCapture(vid_cap_reader_path)&#xA;&#xA;k = 0&#xA;while 1:&#xA;    if k == ord("q"):&#xA;        break&#xA;    if k == ord("b"):&#xA;        before = cap_rgb.get(cv2.CAP_PROP_POS_FRAMES)&#xA;        cap_rgb.set(cv2.CAP_PROP_POS_FRAMES, before &#x2B; 30.0)&#xA;        after = cap_rgb.get(cv2.CAP_PROP_POS_FRAMES)&#xA;        print(f"before = {before} after = {after}")&#xA;    ret, img = cap_rgb.read()&#xA;    if ret:&#xA;        cv2.imshow("bla", img)&#xA;        k = cv2.waitKey(0)&#xA;    else:&#xA;        break&#xA;

    &#xA;

    This is what is printed to the terminal :

    &#xA;

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

    &#xA;

    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.

    &#xA;

    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.

    &#xA;

    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.

    &#xA;

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

    &#xA;

  • fftools/ffmpeg : move sending filtergraph commands to a separate function

    16 juillet 2023, par Anton Khirnov
    fftools/ffmpeg : move sending filtergraph commands to a separate function
    

    Stop accessing filtergraph internals from keyboard reading code.

    • [DH] fftools/ffmpeg.c
    • [DH] fftools/ffmpeg.h
    • [DH] fftools/ffmpeg_filter.c