Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (22)

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

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (4823)

  • lavfi/mptestsrc : fix invalid access in case of negative linesize

    17 avril 2013, par Stefano Sabatini

    lavfi/mptestsrc : fix invalid access in case of negative linesize

  • smvjpegdec : use av_pix_fmt_desc_get() avoid direct table access

    22 mai 2013, par Michael Niedermayer
    smvjpegdec : use av_pix_fmt_desc_get() avoid direct table access
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/smvjpegdec.c
  • 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 :

    &#xA;

        original_clip = VideoFileClip(original_video_path)&#xA;    voiceoverDirTitle = "VoiceoversTitle"&#xA;    filePath = f"{voiceoverDirTitle}/{id}.mp3"&#xA;    engine = pyttsx3.init()&#xA;    engine.save_to_file(title, filePath)&#xA;    engine.runAndWait() &#xA;&#xA;    script_dir = os.path.dirname(os.path.abspath(__file__))&#xA;    voiceoverDirTitle = "VoiceoversTitle"&#xA;    filePathAbsolute = os.path.join(script_dir, voiceoverDirTitle, f"{id}.mp3")&#xA;    print(filePathAbsolute)&#xA;&#xA;    exists = os.path.isfile(filePathAbsolute)&#xA;    print(exists)&#xA;    audio = eyed3.load(filePathAbsolute)&#xA;

    &#xA;

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

    &#xA;

    AttributeError: &#x27;NoneType&#x27; object has no attribute &#x27;info&#x27;&#xA;

    &#xA;

    This is me trying to use pydub :

    &#xA;

        original_clip = VideoFileClip(original_video_path)&#xA;    voiceoverDirTitle = "VoiceoversTitle"&#xA;    filePath = f"{voiceoverDirTitle}/{id}.mp3"&#xA;    engine = pyttsx3.init()&#xA;    engine.save_to_file(title, filePath)&#xA;    engine.runAndWait() &#xA;&#xA;    script_dir = os.path.dirname(os.path.abspath(__file__))&#xA;    voiceoverDirTitle = "VoiceoversTitle"&#xA;    filePathAbsolute = os.path.join(script_dir, voiceoverDirTitle, f"{id}.mp3")&#xA;    print(filePathAbsolute)&#xA;&#xA;    exists = os.path.isfile(filePathAbsolute)&#xA;    print(exists)&#xA;    audio = AudioSegment.from_mp3(filePathAbsolute)&#xA;    duration_seconds = len(audio) / 1000&#xA;

    &#xA;

    And the error it returns :

    &#xA;

    FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;

    &#xA;

    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 !!

    &#xA;