Recherche avancée

Médias (1)

Mot : - Tags -/ipad

Autres articles (102)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 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, par

    Certains 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, par

    This 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ácsi

    I 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 Daemitrous

    This 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&#xA;from pyttsx3 import init  # TTS Audio converter&#xA;&#xA;import discord&#xA;&#xA;&#xA;ffmpeg_path = r"C:\Users\evand\Documents\Misc\ffmpeg\bin\ffmpeg.exe"&#xA;&#xA;audio_path = r"C:\Users\evand\Documents\Misc\Discord\suhj_bot\Test_mp3\AudioFileForDiscord.mp3"&#xA;&#xA;&#xA;engine = init() # Initializes speach TTS engine with "sapi5" configuration&#xA;&#xA;&#xA;def TTS_save(text, audio=engine): # converts and saves the user&#x27;s text into a TTS audio file ".mp3"&#xA;&#xA;    audio.save_to_file(text, audio_path)&#xA;&#xA;    audio.runAndWait()&#xA;&#xA;&#xA;class Voice(commands.Cog):&#xA;&#xA;    def __init__(self, bot):&#xA;&#xA;        self.bot = bot&#xA;&#xA;    @commands.command(&#xA;&#xA;        name="v",&#xA;        description="The voice command:\n\ng.v <content>"&#xA;&#xA;    )&#xA;&#xA;    async def voice_command(self, ctx, *, args):&#xA;&#xA;        VoiceClient = ctx.voice_client&#xA;&#xA;&#xA;        if VoiceClient is None:&#xA;&#xA;            VoiceClient = await ctx.author.voice.channel.connect() # bot joins voice-channel of user&#xA;&#xA;&#xA;        TTS_save(args) # creates TTS audio file&#xA;&#xA;        VoiceClient.play(discord.FFmpegOpusAudio(audio_path, executable=ffmpeg_path)) # plays audio file through discord bot (.mp3, ffmpeg.exe)&#xA;&#xA;        return&#xA;&#xA;&#xA;def setup(bot):&#xA;&#xA;    bot.add_cog(Voice(bot))&#xA;</content>

    &#xA;

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

    &#xA;

  • My Bot is not playing the audio file what can i do ?

    10 mai 2021, par Lord42

    my 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 ?

    &#xA;

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

    &#xA;

    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

    &#xA;