Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (65)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (10285)

  • Mimic Audacity amplification with Pydub

    16 août 2022, par Unisionzz

    For my music library I have used Audacity for recent years to amplify the music to similar levels of loudness ; technically speaking this is not completely true, but for me it is sufficient. However, as it is tedious to do this all by hand, I decided to write a Python code to automate this process for me. The code after the imported package(s) and defined functions will run in a loop in which the filename changes depending on which song is processed.

    


    The difficult part is that I have not yet been able to find a consistent way to amplify different songs so that when the output files are put through Audacity, it will not want to change the amplitude by more than 0.1 dB(FS).

    


    Below are two attempts which seem to have come closest to the desirable output ; other methods that I have tried were either less succesfull or resulted in clipping.

    


    The first attempt finds the maximum dBFS of the song and then applies a gain in order for the maximum dBFS to equal 0 (I have also tried this method with sound.dBFS and sound.apply_gain, but results seem more mixed than the attempt below) :

    


    from pydub import AudioSegment

def change_amplitude(sound, target_dBFS):
    change_in_dBFS = target_dBFS - sound.max_dBFS
    return sound.apply_gain_stereo(change_in_dBFS)

# Audio is gathered from a hard coded path
s = AudioSegment.from_file(Dir+filename+".mp3", "mp3")
amp_s = change_amplitude(s, 0)
amp_s.export(Dir+filename+".mp3", format = "mp3")


    


    The second attempt finds the amplitude and the maximum allowable amplitude (before clipping), recalculates both to dB and then adds the dB_diff to the sound :

    


    import numpy as np
from pydub import AudioSegment

s = AudioSegment.from_file(Dir+filename+".mp3", "mp3")

# Get dB amplitude of song and maximum allowable value
dB_sound = 20*np.log10(s.max)
dB_max = 20*np.log10(s.max_possible_amplitude)
dB_diff = dB_max - dB_sound

amp_sound = s + dB_diff


    


    Summarizing, I would like to import a music file, amplify it similar to Audacity amplification and then export the file again.

    


  • Recommendation : Video format process NodeJS

    13 août 2022, par Austin Howard

    I am looking for the best recommendation for formatting videos ona nodejs server. In all my research i keep getting pointed back to ffmpeg but it doesnt look very friendly to a Nodejs app, i've seen fluent-ffmpeg and node-ffmpeg and a couple others, but at this point they are a couple years old, and if im going to use a node package id like for them to be udpated a bit more. Do you guys have any recommendations for current software that will be decent for converting and compressing videos for upload ? I have a use case where i sometimes have 2-3gb files that i want to get down to somewhere around 500-1gb in size. As well as generating thumbnails from that video, or if you guys have good documentation to point me to that would allow me to use the ffmpeg executable alone i can make that work too.

    


  • fftools/ffmpeg : deprecate specifying a sync stream with -map

    3 août 2022, par Anton Khirnov
    fftools/ffmpeg : deprecate specifying a sync stream with -map
    

    It has not had any effect whatsoever for over 10 years.

    • [DH] doc/ffmpeg.texi
    • [DH] fftools/ffmpeg.h
    • [DH] fftools/ffmpeg_opt.c