Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (60)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (4729)

  • please help me to solve this error :- AttributeError : 'NoneType' object has no attribute 'write_audiofile'

    4 juin 2021, par amit
    import moviepy.editor
# Replace the parameter with the location of the video


video = moviepy.editor.VideoFileClip("/home/amit/video2.mp4")
audio = video.audio


# Replace the parameter with the location along with filename
audio.write_audiofile("/home/amit/output.mp3")


    


    this is the code and getting this error :-

    


    AttributeError: 'NoneType' object has no attribute 'write_audiofile'


    


  • How to solve this error : AttributeError : 'NoneType' object has no attribute 'write_audiofile'

    5 juin 2021, par amit
    import moviepy.editor
# Replace the parameter with the location of the video


video = moviepy.editor.VideoFileClip("/home/amit/video2.mp4")
audio = video.audio


# Replace the parameter with the location along with filename
audio.write_audiofile("/home/amit/output.mp3")


    


    This is the code and getting this error :

    


    AttributeError: 'NoneType' object has no attribute 'write_audiofile'


    


  • AudiSegment.from_wav error : OSError : [Errno 2] No such file or directory

    19 mars 2019, par Coder123

    Does anyone know why I am receive a no file or directory error when i execute the code below ? I am using Python 2, FYI. Seems like an easy fix, but I can’t seem to identify it.

    Here is my code that i am using.

    import ffprobe
    import ffmpeg
    import pydub
    from pydub import AudioSegment


    AudioSegment.from_wav("/home/e136320/sample.wav").export("/output/file.mp3", format="mp3")

    Here is the error message when code is executed :

    OSErrorTraceback (most recent call last)
    in <module>()
         2 #sound.export("/home/e136320/sample.mp3", format="mp3")
         3
    ----> 4 AudioSegment.from_wav("/home/e136320/sample.wav").export("/output/file.mp3", format="mp3")

    /home/e136320/.local/lib/python2.7/site-packages/pydub/audio_segment.pyc in from_wav(cls, file, parameters)
       726     @classmethod
       727     def from_wav(cls, file, parameters=None):
    --> 728         return cls.from_file(file, 'wav', parameters=parameters)
       729
       730     @classmethod

    /home/e136320/.local/lib/python2.7/site-packages/pydub/audio_segment.pyc in from_file(cls, file, format, codec, parameters, **kwargs)
       663             stdin_data = file.read()
       664
    --> 665         info = mediainfo_json(orig_file)
       666         if info:
       667             audio_streams = [x for x in info['streams']

    /home/e136320/.local/lib/python2.7/site-packages/pydub/utils.pyc in mediainfo_json(filepath)
       261
       262     command = [prober, '-of', 'json'] + command_args
    --> 263     res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
       264     output, stderr = res.communicate(input=stdin_data)
       265     output = output.decode("utf-8", 'ignore')

    /opt/cloudera/parcels/Anaconda/lib/python2.7/subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
       388                                 p2cread, p2cwrite,
       389                                 c2pread, c2pwrite,
    --> 390                                 errread, errwrite)
       391         except Exception:
       392             # Preserve original exception in case os.close raises.

    /opt/cloudera/parcels/Anaconda/lib/python2.7/subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)
      1023                         raise
      1024                 child_exception = pickle.loads(data)
    -> 1025                 raise child_exception
      1026
      1027

    OSError: [Errno 2] No such file or directory
    </module>