Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (112)

  • 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" ;

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (7155)

  • 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;

  • 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

    &#xA;

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

    &#xA;

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

    &#xA;

    from pydub import AudioSegment&#xA;import numpy as np&#xA;&#xA;song = AudioSegment.from_file("test.wav")&#xA;extract_data = np.array(song.get_array_of_samples())&#xA;print(extract_data[:10])&#xA;

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

    mp3_song = AudioSegment.from_file("test.mp3")&#xA;mp3_song.export("test1.wav", format="wav")&#xA;&#xA;song = AudioSegment.from_file("test1.wav")&#xA;extract_data = np.array(song.get_array_of_samples())&#xA;print(extract_data[:10])&#xA;

    &#xA;

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

    &#xA;

    please help me,

    &#xA;

    Thanks.

    &#xA;

  • CMD Batch Variable Won't Save FFprobe Output

    15 juillet 2017, par Matt McManis

    I have an CMD Batch Script that will convert a folder of mp4 videos to webm.

    You will need :

    • FFmpeg/FFprobe installed and set in Environment Variables to run from CMD.
    • A folder with an mp4 for FFprobe to parse.

    To make it easy, this is only the first part of the script, showing the Video Bitrate variable.

    Here is a full script, just replace the paths.
    https://pastebin.com/raw/3ng77Exz

    How the Script works :

    • Loops through all videos in folder
    • Has FFprobe parse the Video’s Bitrate and save it to %V and
      %vBitrate%.
    • Has FFmpeg use %V. Such as -b:v %V will become the parsed value
      -b:v 9401k.
    • Converts each video from mp4 to webm using the parsed Bitrate

    Problem

    I can’t get FFprobe’s Output to save to the variable. I’ve come up with a workaround, having it first save the bitrate value to a temp file, then import that to the %vBitrate% variable.

    Example : (%V > tmp_vBitrate) &amp; SET /p vBitrate= &lt; tmp_vBitrate.


    Works

    Temp File Variable

    cd "C:\Users\Matt\Videos\" &amp;&amp; for %f in (*.mp4) do ffprobe -i "C:\Users\Matt\Desktop\Test\%~f" -select_streams v:0 -show_entries stream=bit_rate -v quiet -of csv="p=0" &amp; for /f "tokens=*" %V in ("ffprobe -i "%~f" -select_streams v:0 -show_entries stream=bit_rate -v quiet -of csv=p=0") do (echo ) &amp; (%V > tmp_vBitrate) &amp; SET /p vBitrate= &lt; tmp_vBitrate &amp; del tmp_vBitrate &amp; for /F %V in ('echo %vBitrate%') do (echo %V)

    Does Not Work

    Memory Variable

    cd "C:\Users\Matt\Videos\" &amp;&amp; for %f in (*.mp4) do ffprobe -i "C:\Users\Matt\Desktop\Test\%~f" -select_streams v:0 -show_entries stream=bit_rate -v quiet -of csv="p=0" &amp; for /f "tokens=*" %V in ("ffprobe -i "%~f" -select_streams v:0 -show_entries stream=bit_rate -v quiet -of csv=p=0") do (echo ) &amp; SET vBitrate=%V &amp; for /F %V in ('echo %vBitrate%') do (echo %V)

    Testing It

    Run the first command. When it is finished, type echo %vBitrate% in CMD and press Enter. You’ll see the bitrate of the last mp4 file parsed.

    Do the same for the second command and you’ll see it doesn’t work.


    Solution

    I would like to get rid of the Temp File Variable and get the second command to work.

    (%V > tmp_vBitrate) &amp; SET /p vBitrate= &lt; tmp_vBitrate to just SET vBitrate=%V.

    Maybe this whole thing can be simplified ? Am I using the variables wrong ?