Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11876)

  • OSError : MoviePy error : failed to read the first frame of video file

    1er août 2023, par Steve

    I am trying to extract and save a frame from an .mp4 using moviepy like so (simplified) :

    


    from moviepy.editor import *
clip = VideoFileClip('conditiontest1.mpg')
clip.save_frame('frame1.png', 20)


    


    When I run this I get :

    


    


    Traceback (most recent call last) :
    
File"C :\Users\boss\Documents\DVDFab\Video Enhancer AI\join.py", line 23, > in 
clip = VideoFileClip(d + f + '.mp4')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
File "C :\Python311\Lib\site-packages\moviepy\video\io\VideoFileClip.py", > line 88, in init_
self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
File "C :\Python311\Lib\site-packages\moviepy\video\io\ffmpeg_reader.py", > line 73, in init_
self.lastread = self.read_frame()
^^^^^^^^^^^^^^^^^
    
File "C :\Python311\Lib\site-packages\moviepy\video\io\ffmpeg_reader.py", > line 133, in read_frame
raise IOError(("MoviePy error : failed to read the first frame of "
OSError : MoviePy error : failed to read the first frame of video file > conditiontest1.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.

    


    


    Quite a few people have reported this error. The file is not corrupted, at least it plays fine in VLC. I have the latest FFMPEG. I have tried the other recommended fix, i.e. giving the full path. No help.

    


    One interesting thing is that this only seems to happen to me when I'm processing clips I've produced with moviepy, as in :

    


    from moviepy.editor import *
clip = VideoFileClip('conditiontest.mpg4')
clip1 = clip.subclip(10,60)
clip1.write_videofile('conditiontest1.mpg4',codec='libx264')


    


    That runs fine. Anyone have ideas how I can fix this ?

    


  • cvCreateFileCapture always returns "NULL"

    4 août 2012, par user1553247

    I am making an iphone-app with Xcode 4.3.3 and OpenCV 2.4

    I used that "cvCreateFileCapture("simtom.mp4")" to get frame from '.mp4' file but unfortunately, cvCreateFileCapture() always returns "NULL".

    What is the problem ?

    Here is my source code.

    CvCapture *m_pMusicVideo;    

    m_pMusicVideo = cvCreateFileCapture("simtom.mp4");
  • Converting .264 files (no ffmpeg)

    20 janvier 2018, par srob

    So I bought one of those cheapo CCTV cameras and the files are dumped as .264 which is fine on my laptop as I can use VLC to play them.

    I’d like to be able to watch on my iPhone and the VLC app doesn’t let you play them.

    So I have motion triggered clips uploaded to my server for safe storage and I’d like to write an HTML interface so I can view them in a browser after logging in.

    I code in PHP and from my research I need to convert the file into a playable format such as mp4.

    I can’t install ffmpeg on my crappy cPanel server so was wondering if anyone knows any other ways or an API I can push the file to for conversion.

    TIA !