
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (112)
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin 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 (...)
Sur d’autres sites (9863)
-
ffmpeg on replit (discord audio player)
11 mai 2022, par mohammad5615im trying to make discord audio file player on Replit but i cant install ffmpeg


my bot source


import discord
import discord.ext
from time import sleep
import os
import ffmpeg
import replit
#from keep_alive import keep_alive


client = discord.Client()


@client.event
async def on_ready():
 channel = client.get_channel(714375630233403442)
 voice = await channel.connect()

 
 voice.play(discord.FFmpegPCMAudio('song.mp3'))
 print('Done')

#keep_alive()

client.run(os.getenv('TOKEN'))


input('Press Enter to Exit (5):')
input('Press Enter to Exit (4):')
input('Press Enter to Exit (3):')
input('Press Enter to Exit (2):')
input('Press Enter to Exit (1):')





i run this cod on replit and i get this error


Ignoring exception in on_ready
Traceback (most recent call last):
 File "/home/runner/Discord-Bot-2/venv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
 await coro(*args, **kwargs)
 File "main.py", line 19, in on_ready
 voice.play(discord.FFmpegPCMAudio('song.mp3'))
 File "/home/runner/Discord-Bot-2/venv/lib/python3.8/site-packages/discord/player.py", line 225, in __init__
 super().__init__(source, executable=executable, args=args, **subprocess_kwargs)
 File "/home/runner/Discord-Bot-2/venv/lib/python3.8/site-packages/discord/player.py", line 138, in __init__
 self._process = self._spawn_process(args, **kwargs)
 File "/home/runner/Discord-Bot-2/venv/lib/python3.8/site-packages/discord/player.py", line 147, in _spawn_process
 raise ClientException(executable + ' was not found.') from None
discord.errors.ClientException: ffmpeg was not found.



The error cod image (cant find ffmpeg)


-
Can pyAudioAnalysis be used on a live http audio stream ?
30 mars 2022, par TompoI am trying to use pyAudioAnalysis to analyse an audio stream in real-time from a HTTP stream. My goal is to use the Zero Crossing Rate (ZCR) and other methods in this library to identify events in the stream.


pyAudioAnalysis only supports input from a file but converting a http stream to a .wav will create a large overhead and temporary file management I would like to avoid.


My method is as follows :


Using ffmpeg I was able to get the raw audio bytes into a subprocess pipe.


try:
 song = subprocess.Popen(["ffmpeg", "-i", "https://media-url/example", "-acodec", "pcm_s16le", "-ac", "1", "-f", "wav", "pipe:1"],
 stdout=subprocess.PIPE)



I then buffered this data using pyAudio with the hope of being able to use the bytes in pyAudioAnalysis


CHUNK = 65536

p = pyaudio.PyAudio()

stream = p.open(format=pyaudio.paInt16,
 channels=1,
 rate=44100,
 output=True)

data = song.stdout.read(CHUNK)

while len(data) > 0:
 stream.write(data)
 data = song.stdout.read(CHUNK)



However, inputting this data output into AudioBasicIO.read_audio_generic() produces an empty numpy array.


Is there a valid solution to this problem without temporary file creation ?


-
C# - Discord.Net - Trying to read audio from soundcloud and transmit it to discord
28 mars 2022, par Bruno BragaI am currently working on a discord bot that is able to play a song using soundcloud.
Unfortunately, I can't seem to figure out how to get it to read from the url and stream it !
The bot it made in C#, and uses Discord.net library and ffmpeg for the audio.
Would love to hear some suggestions !


These are the three functions involved :


[Command("teste", RunMode = RunMode.Async)]
public async Task Play(IVoiceChannel channel = null)
{
 var audioClient = await JoinChannel(channel);
 var url = "https://soundcloud.com/campatechlive/campatech-live-feat- 
 matheus-moussa-arabian-system-vol-2-psy-trance-150-original-mix";

 var ffmpeg = new Ffmpeg(audioClient);
 await ffmpeg.SendAsync(url);
}

public async Task SendAsync(string path)
{
 using (var ffmpeg = CreateStream(path))
 using (var output = ffmpeg.StandardOutput.BaseStream)
 using (var discord = _client.CreatePCMStream(AudioApplication.Mixed))
 {
 try { await output.CopyToAsync(discord); }
 finally { await discord.FlushAsync(); }
 }
}

private Process? CreateStream(string path)
{
 return Process.Start(new ProcessStartInfo
 {
 FileName = "ffmpeg",
 Arguments = $"-hide_banner -loglevel panic -i \"{path}\" -ac 2 -f 
 s16le -ar 48000 pipe:1",
 UseShellExecute = false,
 RedirectStandardOutput = true,
 });
}



I'm guessing it's something on the ffmpeg arguments, but can't kind of figure out what.


I've tried a bunch of different arguments on ffmpeg, but none of them worked.
Anyone can lend me a hand ?