Recherche avancée

Médias (91)

Autres articles (104)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

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

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (11917)

  • Revision 61512 : version

    22 mai 2012, par maieul@… — Log

    version

  • I can't access an mp3 file in python to get the length of [closed]

    11 janvier 2024, par Sameer

    I've tried using pydub, mutagen, and eyed3 to try and access the length of an mp3 file I created using pyttsx3. However, I repeatedly get similar issues with my machine telling me that it is unable to access the mp3, that the file cannot be found at the specified path I'm trying to access it at, despite me ahving confirmed it does exist by the time it gets to the problematic line of code. Here's me trying to use eyed3 :

    


        original_clip = VideoFileClip(original_video_path)
    voiceoverDirTitle = "VoiceoversTitle"
    filePath = f"{voiceoverDirTitle}/{id}.mp3"
    engine = pyttsx3.init()
    engine.save_to_file(title, filePath)
    engine.runAndWait() 

    script_dir = os.path.dirname(os.path.abspath(__file__))
    voiceoverDirTitle = "VoiceoversTitle"
    filePathAbsolute = os.path.join(script_dir, voiceoverDirTitle, f"{id}.mp3")
    print(filePathAbsolute)

    exists = os.path.isfile(filePathAbsolute)
    print(exists)
    audio = eyed3.load(filePathAbsolute)


    


    up until the very last line of code, everything looks promising, when it throws me this error message :

    


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


    


    This is me trying to use pydub :

    


        original_clip = VideoFileClip(original_video_path)
    voiceoverDirTitle = "VoiceoversTitle"
    filePath = f"{voiceoverDirTitle}/{id}.mp3"
    engine = pyttsx3.init()
    engine.save_to_file(title, filePath)
    engine.runAndWait() 

    script_dir = os.path.dirname(os.path.abspath(__file__))
    voiceoverDirTitle = "VoiceoversTitle"
    filePathAbsolute = os.path.join(script_dir, voiceoverDirTitle, f"{id}.mp3")
    print(filePathAbsolute)

    exists = os.path.isfile(filePathAbsolute)
    print(exists)
    audio = AudioSegment.from_mp3(filePathAbsolute)
    duration_seconds = len(audio) / 1000


    


    And the error it returns :

    


    FileNotFoundError: [WinError 2] The system cannot find the file specified


    


    I suspected at first it was an ffmpeg issue, but when i try "pip install ffmpeg", it says "requirement already satisfied", and besides, moviepy (the library I'm using) uses ffmpeg for its final encoding, and that part of my code seems to work fine. Any help would be greatly appreciated !!

    


  • ffplay : avoid direct access to lowres use av_codec_g/set_lowres()

    3 octobre 2013, par Michael Niedermayer
    ffplay : avoid direct access to lowres use av_codec_g/set_lowres()
    

    Reviewed-by : Marton Balint <cus@passwd.hu>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] ffplay.c