
Recherche avancée
Autres articles (102)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (9896)
-
Invalid data error during ffmpeg .m4a conversion
4 janvier 2023, par Kazi bácsiI wanted to edit my .m4a voice recording from Samsung Voice Recorder using ffmpeg 2.2.2, however, I got the error Invalid data found when processing input. I tried to open it through Audacity, but it returned an error claiming that the ffmpeg library is missing, which is definitely not the case. Eventually I tried to use online .m4a to .mp3 converters, but they all returned error, so I assume there may be an issue with the encoding of the original file and ffmpeg should be configured accordingly. What settings shall I use ? (The original file can be played on the phone without any problem.)


ffmpeg -ss 00:00:19 -i "C:\Your\Folder\original.m4a" edited.m4a



-
Prevent "guessing mono" when using FFMPEG ?
25 juillet 2020, par DaemitrousThis extention works perfectly fine, I'm just concerned about the message it prints everytime it's called.


The Message when the script is called:


Guessed Channel Layout for Input Stream #0.0 : mono



This is an extention to the discord bot I'm working on using
discord.py
.

Script


from discord.ext import commands
from pyttsx3 import init # TTS Audio converter

import discord


ffmpeg_path = r"C:\Users\evand\Documents\Misc\ffmpeg\bin\ffmpeg.exe"

audio_path = r"C:\Users\evand\Documents\Misc\Discord\suhj_bot\Test_mp3\AudioFileForDiscord.mp3"


engine = init() # Initializes speach TTS engine with "sapi5" configuration


def TTS_save(text, audio=engine): # converts and saves the user's text into a TTS audio file ".mp3"

 audio.save_to_file(text, audio_path)

 audio.runAndWait()


class Voice(commands.Cog):

 def __init__(self, bot):

 self.bot = bot

 @commands.command(

 name="v",
 description="The voice command:\n\ng.v <content>"

 )

 async def voice_command(self, ctx, *, args):

 VoiceClient = ctx.voice_client


 if VoiceClient is None:

 VoiceClient = await ctx.author.voice.channel.connect() # bot joins voice-channel of user


 TTS_save(args) # creates TTS audio file

 VoiceClient.play(discord.FFmpegOpusAudio(audio_path, executable=ffmpeg_path)) # plays audio file through discord bot (.mp3, ffmpeg.exe)

 return


def setup(bot):

 bot.add_cog(Voice(bot))
</content>


Is there any way to prevent the program from guessing mono ? I like to keep my code clean and close to errorness.


-
My Bot is not playing the audio file what can i do ?
10 mai 2021, par Lord42my Discord.py-Bot has a small rickroll function in it and since i replaced the old long file with a short one the bot wont give me any sounds. What can i do ?


import discord
from discord.ext import commands
import time
import asyncio
class add(commands.Cog):
 def __init__(self, client):
 self.client = client
 @commands.command()
 async def help(self, ctx):
 if not ctx.message.author.voice:
 # Exiting if the user is not in a voice channel
 return await ctx.send('Blablabla *~webcam <ne stadt="stadt">* und *~add und mehr *~r <msg>* und noch wat')
 channel = ctx.author.voice.channel
 vc = await channel.connect()
 vc.play(discord.FFmpegPCMAudio("Rick-Astely-Never-Gonna-Give-You-Up.mp3"))
 await asyncio.sleep(19)
 await ctx.send("Blablabla *~webcam <ne stadt="stadt">* und *~add und mehr *~r <msg>* und noch wat")
 await ctx.voice_client.disconnect()
def setup(dc):
 dc.add_cog(add(dc))
</msg></ne></msg></ne>


I dont get any errors or something, i just dont get the sounds. I checked volume stuff and more. I even updated my whole pi and nothing changed