Recherche avancée

Médias (3)

Mot : - Tags -/plugin

Autres articles (38)

  • 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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

  • How to convert mp3 data to wav data ?

    12 mai 2023, par Yali

    I have a wav audio file and i extracted data from that wav using python pydub module and i got this data

    


    [-139 18 -215 34 -196 6 -295 -31 -301 -35 -211 13 -93 47
-60 39 -58 7 -17 2]

    


    (this is first 10 data i got more than 1 million data)

    


    from pydub import AudioSegment
import numpy as np

song = AudioSegment.from_file("test.wav")
extract_data = np.array(song.get_array_of_samples())
print(extract_data[:10])


    


    then i converted wav to mp3 using that module and again extracted data from mp3 file and i got this data

    


    [-108 7 -193 24 -223 11 -239 -31 -248 -43 -203 -10 -101 23
-14 24 10 15 24 16]

    


    (this is first 10 data i got more than 1 million data)

    


    song = AudioSegment.from_file("test.wav")
song.export("test.mp3")
mp3_song = AudioSegment.from_file("test.mp3")
extract_data = np.array(mp3_song.get_array_of_samples())
print(extract_data[:10])


    


    and again i converted mp3 to wav now i got mp3 data instead of wav data.

    


    mp3_song = AudioSegment.from_file("test.mp3")
mp3_song.export("test1.wav", format="wav")

song = AudioSegment.from_file("test1.wav")
extract_data = np.array(song.get_array_of_samples())
print(extract_data[:10])


    


    My point is how to convert mp3 data to original wav data ?

    


    please help me,

    


    Thanks.

    


  • How to save synthesized audio during streaming distribution

    7 avril 2022, par its-ogawa

    I would like to stream a composite of microphone audio and digital sound sources by ffmpeg and save the delivery to an m3u8 file.

    


    Below are the commands I have actually tried.

    


    ffmpeg -rtbufsize 100M -f dshow -i video=<my webcam="webcam">:audio=<my microphone="microphone"> -re -stream_loop -1 -i <my sound="sound" source="source"> -filter_complex "[0]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,adelay=2100|2100,volume@voice=volume=10dB[voice],[1]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,azmq,volume@bgm=volume=0.2[bgm],[voice][bgm]amerge=inputs=2[out]" -map 0:v -map [out]:a -f mpegts -flush_packets 0 udp://XXX.XXX.XXX.XXX:XXX?pkt_size=1316 -f hls -hls_time 5 hls.m3u8&#xA;</my></my></my>

    &#xA;

    I have played an m3u8 created this way, but I cannot hear the digital sound source that I am supposed to have synthesized.&#xA;Even though the synthesized audio was audible when streamed.

    &#xA;

    Perhaps you need to set up something like -map 0:v -map [out]:a when saving to the m3u8 file, in which case the Output with label &#x27;out&#x27; does not exist in any defined filter graph, or was already used elsewhere. message appears and does not work.

    &#xA;

  • avformat/jvdec : Make sizeof(JVFrame) smaller to save memory

    23 septembre 2021, par Andreas Rheinhardt
    avformat/jvdec : Make sizeof(JVFrame) smaller to save memory
    

    Reviewed-by : Peter Ross <pross@xvid.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/jvdec.c