Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (96)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

Sur d’autres sites (8015)

  • Can't save a file in moviepy python

    23 juillet 2023, par user9102437

    I have seen a few questions about this here, but none of them solved the issue for me, so maybe my case is different in some way.

    


    I am trying to achieve a simple result : read a file and write it. Here is the code :

    


    import os
os.environ['FFMPEG_BINARY'] = '/usr/bin/ffmpeg'

from moviepy.editor import VideoFileClip
name = 'test.mp4'

clip = VideoFileClip('./vids/'+name)

clip.write_videofile('./vids/'+name, codec='libx264', fps=30)


    


    This code comes up with an error :

    


    ---> 88     '-r', '%.02f' % fps,
     89     '-an', '-i', '-'
     90 ]
     91 if audiofile is not None:
     92     cmd.extend([
     93         '-i', audiofile,
     94         '-acodec', 'copy'
     95     ])

TypeError: must be real number, not NoneType


    


    You may notice that I have set the environment variable for ffmpeg (I have also changed that in configure_defaults.py). This is because it was suggested in other questions. Also based on them I have run the following commands before running the code :

    


    sudo apt -y update
sudo apt -y install ffmpeg
pip install decorator
pip install moviepy --upgrade
pip install ffmpeg --upgrade


    


    I am using a Debian GNU/Linux 10 (buster) machine, and the versions of moviepy and ffmpeg are 1.0.3 and 4.1.10-0+deb10u1 respectively.

    


    Nothing seems to be helping to solve this. What am I missing here ?

    


  • Can't figure out how to get ffmpeg to save to an odd file extension

    30 septembre 2015, par dinki

    I’m working on a network encoder for SageTV. I get request from the SageTV with certain filenames. I’m trying to capture video from my capture card and write out to a file called

    ’D :\Media\tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-
    0.mpgbuf’

    Here’s the command I’m using :

    C :\Users\User>C :/Users/User/Desktop/ffmpeg-20150928-git-235381e-win64-static/bin/ffmpeg.exe
    -f dshow -crossbar_video_input_pin_number 2 -i video="ATI AVStream Analog Capture"
    D :\Media\tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-0.mpgbuf

    When I run that command, I get this error :

    [NULL @ 00000000087f9160] Unable to find a suitable output format for 'D:\Media\
    tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-0.mpgbuf'
    D:\Media\tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-0.mpgbuf: Invalid
    argument

    But if I change .mpgbuf to .mpg it works fine . I am forced to use that filename though. Is there an easy way to do this ?

  • How to save frames to the video using their timestamps (variable frame rate, vfr, PyAV)

    9 juillet 2019, par Vladyslav Moisieienkov

    Shorty, I would like to write frames to the video according to their timestamps. FFmpeg example could be found here - How do I render a video from a list of time-stamped images ? , and I need something like that in Python. Probably PyAV library should be used as it provides bindings for FFmpeg. Maybe, it also possible by using OpenCV.