
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (32)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP 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 (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation" -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (5974)
-
How to remove noise added when converting pcma/aluw file I received in RTP to wav ?
12 janvier 2021, par ShluchThis is the sdp :


v=0
o=root 807151903 807151903 IN IP4 104.154.78.142
s=Asterisk PBX 11.18.0
c=IN IP4 104.154.78.142
t=0 0
m=audio 13822 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv



I'm taking all the payloads and combine them to one file using
rdp-parser
.

var b = p.parseRtpPacket(msg)
fs.appendFileSync("./b", b.payload)



I also tried other RTP parse libraries to be sure it's not the issue with the parser.


Then I'm running ffmpeg :


ffmpeg -f mulaw -ar 8000 -i b a.wav



Now I'm playing the file. I'm hearing my voice, and lot of noise in the background.
Why ? and how to fix it ?


-
discord.ext.commands.errors.CommandInvokeError : Command raised an exception : ClientException : ffmpeg was not found
22 juillet 2022, par MSTI made a music bot on Replit but, when running my code I get this error :
discord.ext.commands.errors.CommandInvokeError : Command raised an exception : ClientException : ffmpeg was not found.


Can someone help me fix this ?


main.py


import discord
from discord.ext import commands
import music

cogs = [music]

client = commands.Bot(command_prefix='!', intents = discord.Intents.all())

for i in range(len(cogs)):
 cogs[i].setup(client)


client.run("token")



music.py


import discord
from discord.ext import commands
import youtube_dl
import ffmpeg

class music(commands.Cog):
 def __init__(self,client):
 self.client = client

 @commands.command(name="join")
 async def join(self,ctx):
 if ctx.author.voice is None:
 await ctx.send("You are not in a Voice Channel!")
 voice_channel = ctx.author.voice.channel
 if ctx.voice_client is None:
 await voice_channel.connect()
 else:
 await ctx.voice_client.move_to(voice_channel)

 @commands.command(name="disconnect")
 async def disconnect(self,ctx):
 await ctx.voice_client.disconnect()

 @commands.command(name="play")
 async def play(self,ctx,url):
 ctx.voice_client.stop()
 FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
 YDL_OPTIONS = {'format':"bestaudio"}
 vc = ctx.voice_client

 with youtube_dl.YoutubeDL(YDL_OPTIONS) as ydl:
 info = ydl.extract_info(url, download=False)
 url2 = info['formats'][0]['url']
 source = await discord.FFmpegOpusAudio.from_probe(url2,**FFMPEG_OPTIONS)
 vc.play(source)


 @commands.command(name="pause")
 async def pause(self,ctx):
 await ctx.voice_client.pause()
 await ctx.send("Paused Playing Music!")

 @commands.command(name="resume")
 async def resume(self,ctx):
 await ctx.voice_client.resume()
 await ctx.send("Resumed Playing Music!")

def setup(client):
 client.add_cog(music(client))



So, The bot is able to join the Voice Channel but when I ask it to play a song, it gives this error :


[youtube] Pkh8UtuejGw: Downloading webpage
[youtube] Pkh8UtuejGw: Downloading player afeb58ff
Ignoring exception in command play:
Traceback (most recent call last):
 File "/home/runner/DiscordMusicBotTest/venv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
 ret = await coro(*args, **kwargs)
 File "/home/runner/DiscordMusicBotTest/music.py", line 34, in play
 source = await discord.FFmpegOpusAudio.from_probe(url2,**FFMPEG_OPTIONS)
 File "/home/runner/DiscordMusicBotTest/venv/lib/python3.8/site-packages/discord/player.py", line 387, in from_probe
 return cls(source, bitrate=bitrate, codec=codec, **kwargs)
 File "/home/runner/DiscordMusicBotTest/venv/lib/python3.8/site-packages/discord/player.py", line 324, in __init__
 super().__init__(source, executable=executable, args=args, **subprocess_kwargs)
 File "/home/runner/DiscordMusicBotTest/venv/lib/python3.8/site-packages/discord/player.py", line 138, in __init__
 self._process = self._spawn_process(args, **kwargs)
 File "/home/runner/DiscordMusicBotTest/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 above exception was the direct cause of the following exception:

Traceback (most recent call last):
 File "/home/runner/DiscordMusicBotTest/venv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
 await ctx.command.invoke(ctx)
 File "/home/runner/DiscordMusicBotTest/venv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
 await injected(*ctx.args, **ctx.kwargs)
 File "/home/runner/DiscordMusicBotTest/venv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
 raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientException: ffmpeg was not found.



-
How to route input audio to output device at realtime on Android/iOS
6 août 2020, par NimethI'm working on Karaoke project for both Android and iOS where user could record their performances (their video and vocal) and I use ffmpeg for mixing music with their recordings. Anyway, I wish I could route/pipe user vocal at realtime (capture thru device microphone) to output device (speaker) so user could hear their voice at realtime applied with some level of echo (to produce an effect as if we were in classic karaoke room). Over weeks I have been struggling with searching the ways to implement that based on ffmpeg, but no luck. Please kindly help.


Many thanks in advance.
Nimeth