Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (99)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (12957)

  • Merge commit '34c113335b53d83ed343de49741f0823aa1f8cc6'

    17 janvier 2018, par Mark Thompson
    Merge commit '34c113335b53d83ed343de49741f0823aa1f8cc6'
    

    * commit '34c113335b53d83ed343de49741f0823aa1f8cc6' :
    Add support for H.264 and HEVC hardware encoding for AMD GPUs based on AMF SDK

    Most of this was already present from 9ea6607d294526688ab1b1342cb36ee159683e88,
    this just applies some minor fixups and adds the general documentation.

    Merged-by : Mark Thompson <sw@jkqxz.net>

    • [DH] doc/general.texi
    • [DH] libavcodec/amfenc.c
    • [DH] libavcodec/amfenc_h264.c
    • [DH] libavcodec/amfenc_hevc.c
  • avcodec/vc1_block : Fix mqaunt check for negative values

    28 juin 2018, par Michael Niedermayer
    avcodec/vc1_block : Fix mqaunt check for negative values
    

    Fixes : out of array access
    Fixes : ffmpeg_bof_4.avi
    Fixes : ffmpeg_bof_5.avi
    Fixes : ffmpeg_bof_6.avi

    Found-by : Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart
    Reviewed-by : Jerome Borsboom <jerome.borsboom@carpalis.nl>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/vc1_block.c
  • Pydub FFMPEG issue [closed]

    14 janvier, par Nikolai van den Hoven

    I am attempting to use FFMPEG with Pydub to create a program that chops .mp3 files into different words, each contained in their own .mp3 file, but when I run the script I am getting the following error :

    &#xA;

    PS C:\Users\nik> &amp; C:/Users/nik/AppData/Local/Microsoft/WindowsApps/python3.12.exe "d:/Python/Word Splitter.py"&#xA;C:\Users\nik\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work&#xA;  warn("Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)&#xA;

    &#xA;

    This is the code I am using.

    &#xA;

    import os&#xA;from pydub import AudioSegment&#xA;from pydub.silence import split_on_silence&#xA;import speech_recognition as sr&#xA;AudioSegment.ffmpeg = r"D:\Python\ffmpeg\bin\ffmpeg.exe"&#xA;def mp3_to_words(mp3_file, output_folder):&#xA;    # Ensure output folder exists&#xA;    os.makedirs(output_folder, exist_ok=True)&#xA;&#xA;    # Load MP3 file&#xA;    print("Loading audio file...")&#xA;    audio = AudioSegment.from_mp3(mp3_file)&#xA;&#xA;    # Split audio into chunks using silence detection&#xA;    print("Splitting audio into chunks...")&#xA;    chunks = split_on_silence(&#xA;        audio,&#xA;        min_silence_len=200,  # Minimum silence duration in ms to consider as a split point&#xA;        silence_thresh=audio.dBFS - 14,  # Silence threshold relative to average loudness&#xA;        keep_silence=100  # Retain some silence in chunks&#xA;    )&#xA;&#xA;    recognizer = sr.Recognizer()&#xA;&#xA;    for i, chunk in enumerate(chunks):&#xA;        print(f"Processing chunk {i &#x2B; 1}/{len(chunks)}...")&#xA;&#xA;        # Save the chunk temporarily&#xA;        temp_file = os.path.join(output_folder, f"chunk_{i}.wav")&#xA;        chunk.export(temp_file, format="wav")&#xA;&#xA;        # Recognize words in the chunk&#xA;        with sr.AudioFile(temp_file) as source:&#xA;            audio_data = recognizer.record(source)&#xA;            try:&#xA;                text = recognizer.recognize_google(audio_data)&#xA;                words = text.split()&#xA;&#xA;                # Export each word as its own MP3&#xA;                word_start = 0&#xA;                for j, word in enumerate(words):&#xA;                    word_duration = len(chunk) // len(words)  # Approximate duration per word&#xA;                    word_audio = chunk[word_start:word_start &#x2B; word_duration]&#xA;                    word_file = os.path.join(output_folder, f"word_{i}_{j}.mp3")&#xA;                    word_audio.export(word_file, format="mp3")&#xA;                    word_start &#x2B;= word_duration&#xA;&#xA;            except sr.UnknownValueError:&#xA;                print(f"Could not understand chunk {i &#x2B; 1}.")&#xA;            except sr.RequestError as e:&#xA;                print(f"Could not request results; {e}")&#xA;&#xA;        # Clean up temporary file&#xA;        os.remove(temp_file)&#xA;&#xA;    print(f"Processed {len(chunks)} chunks. Word MP3s saved in {output_folder}.")&#xA;&#xA;if __name__ == "__main__":&#xA;    input_file = input("Enter the path to the MP3 file: ").strip()&#xA;    output_dir = input("Enter the output folder path: ").strip()&#xA;&#xA;    mp3_to_words(input_file, output_dir)&#xA;

    &#xA;

    I have added the Base FFMPEG folder and the bin folder within it to Windows PATH&#xA;My PATH variable on Windows 11,&#xA;But it does not show up in the variable when I typed PATH into cmd

    &#xA;