Recherche avancée

Médias (0)

Mot : - Tags -/api

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

Autres articles (87)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (6660)

  • Anomalie #2757 (Nouveau) : Incohérence affichage syndication possible ou pas ?

    15 juin 2012, par jluc -

    La configuration du contenu présente 2 boites relatives aux sites :

    la première au titre "Fichiers de syndication" indique d’emblée : "Votre site propose des fichiers de syndication (voir « Suivre la vie du site »)."

    la 2nde est située bien plus (loin, séparée par 2 boites de config concernant les (...)

  • Anomalie #2778 : En back office, l’URL indiquée sous le titre d’un article n’est pas la dernière c...

    2 juillet 2012, par nicolas -

    jluc - a écrit : je ne comprend pas "ça limite l’extensibilité" : envisagerais tu d’avoir plusieurs types d’url sur ton site ? Non, un seul à la fois, mais le type d’URL peut évoluer dans la vie d’un site. Le mien à plus de 10 ans, j’ai déjà changé plusieurs fois sans aucun soucis jusqu’à présent. Il (...)

  • MoviePy error : failed to read the first frame of video file ****. That might mean that the file is corrupted

    14 juillet 2022, par Udit Hari Vashisht

    I am trying to reverse a video using MoviePy. My code is as under : -

    


    from moviepy.editor import VideoFileClip
from moviepy.video.fx.all import time_mirror

clip = VideoFileClip("udit.mp4")

clip = clip.fx(time_mirror)

clip.write_videofile("reversed.mp4")


    


    But, when I run it I get the following error :-

    


    Traceback (most recent call last):&#xA;  File "/Users/uditvashisht/projects/experiments/script.py", line 6, in <module>&#xA;    clip = clip.fx(time_mirror)&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 212, in fx&#xA;    return func(self, *args, **kwargs)&#xA;  File "", line 2, in time_mirror&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 54, in requires_duration&#xA;    return f(clip, *a, **k)&#xA;  File "", line 2, in time_mirror&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 29, in apply_to_mask&#xA;    newclip = f(clip, *a, **k)&#xA;  File "", line 2, in time_mirror&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 41, in apply_to_audio&#xA;    newclip = f(clip, *a, **k)&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/video/fx/time_mirror.py", line 13, in time_mirror&#xA;    return self.fl_time(lambda t: self.duration - t, keep_duration=True)&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 187, in fl_time&#xA;    return self.fl(lambda gf, t: gf(t_func(t)), apply_to,&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 136, in fl&#xA;    newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))&#xA;  File "", line 2, in set_make_frame&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 14, in outplace&#xA;    f(newclip, *a, **k)&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/video/VideoClip.py", line 644, in set_make_frame&#xA;    self.size = self.get_frame(0).shape[:2][::-1]&#xA;  File "", line 2, in get_frame&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 89, in wrapper&#xA;    return f(*new_a, **new_kw)&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 93, in get_frame&#xA;    return self.make_frame(t)&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 136, in <lambda>&#xA;    newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 187, in <lambda>&#xA;    return self.fl(lambda gf, t: gf(t_func(t)), apply_to,&#xA;  File "", line 2, in get_frame&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 89, in wrapper&#xA;    return f(*new_a, **new_kw)&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 93, in get_frame&#xA;    return self.make_frame(t)&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/video/io/VideoFileClip.py", line 113, in <lambda>&#xA;    self.make_frame = lambda t: self.reader.get_frame(t)&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/video/io/ffmpeg_reader.py", line 184, in get_frame&#xA;    result = self.read_frame()&#xA;  File "/opt/homebrew/lib/python3.9/site-packages/moviepy/video/io/ffmpeg_reader.py", line 133, in read_frame&#xA;    raise IOError(("MoviePy error: failed to read the first frame of "&#xA;OSError: MoviePy error: failed to read the first frame of video file udit.mp4. That might mean that the file is corrupted. That may also mean that you are using a deprecated version of FFMPEG. On Ubuntu/Debian for instance the version in the repos is deprecated. Please update to a recent version from the website&#xA;</lambda></lambda></lambda></module>

    &#xA;

    I have tried the code on both Mac and Windows PC. The other functionality of MoviePy works fine, but I am not able to reverse the video. Both of my systems have ImageMagick and FFMPEG installed.

    &#xA;