Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (52)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (2960)

  • avformat/scd : add demuxer

    1er décembre 2021, par Zane van Iperen
    avformat/scd : add demuxer
    

    Adds demuxer for Square Enux SCD files.

    Based off [1] and personal investigation.

    This has only been tested against Drakengard 3 (PS3) *_SCD.XXX files
    (big-endian). As it is highly likely that FFXIV (PC) files are little-endian,
    this demuxer is marked as experimental until this can be confirmed.

    [1] : http://ffxivexplorer.fragmenterworks.com/research/scd%20files.txt

    Reviewed-by : Peter Ross <pross@xvid.org>
    Reviewed-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
    Signed-off-by : Zane van Iperen <zane@zanevaniperen.com>

    • [DH] libavformat/Makefile
    • [DH] libavformat/allformats.c
    • [DH] libavformat/scd.c
  • ytdl python "KeyError : formats"

    7 juillet 2022, par Mondumkreisung

    Im trying to make a discord music bot for personal use, since groovy and rythm got shut down.&#xA;It's working okay-ish I guess, but im having a problem with ytdl.&#xA;typing "-play" and an url is working just like intended, but i cant type "-play 'song name'".&#xA;Typing "-play example" gives me this :

    &#xA;

    [download] Downloading playlist: example&#xA;[youtube:search] query "example": Downloading page 1&#xA;[youtube:search] playlist example: Downloading 1 videos&#xA;[download] Downloading video 1 of 1&#xA;[youtube] CLXt3yh2g0s: Downloading webpage&#xA;Ignoring exception in command play:&#xA;[download] Finished downloading playlist: example&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped&#xA;    ret = await coro(*args, **kwargs)&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\voice.py", line 53, in play&#xA;    url2 = info[&#x27;formats&#x27;][0][&#x27;url&#x27;]&#xA;KeyError: &#x27;formats&#x27;&#xA;&#xA;The above exception was the direct cause of the following exception:&#xA;&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke&#xA;    await ctx.command.invoke(ctx)&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke&#xA;    await injected(*ctx.args, **ctx.kwargs)&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped&#xA;    raise CommandInvokeError(exc) from exc&#xA;discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: &#x27;formats&#x27;&#xA;

    &#xA;

    im fairly new to coding, so im sorry if somethings weird to understand.

    &#xA;

    okay, so : typing -play with an url works fine, but typing -play with the song name doesnt. its only searching for the first word, downloads the first searchresult and then "crashes".

    &#xA;

    so "-play Rick Astley - Never Gonna Give You Up" for example only searches for "Rick" and then it says something about KeyError : 'formats'&#xA;Here is my code :

    &#xA;

    @client.command()&#xA;async def play(ctx, url):&#xA;    channel = ctx.author.voice.channel&#xA;    voice = discord.utils.get(client.voice_clients, guild=ctx.guild)&#xA;    if voice and voice.is_connected():&#xA;        pass&#xA;    else:&#xA;        await channel.connect()&#xA;&#xA;    ffmpeg_opts = {&#x27;before_options&#x27;: &#x27;-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5&#x27;, &#x27;options&#x27;: &#x27;-vn&#x27;}&#xA;    ydl_opts = {&#x27;format&#x27;: "bestaudio/best", &#x27;default_search&#x27;: &#x27;auto&#x27;}&#xA;    vc = ctx.voice_client&#xA;&#xA;    with youtube_dl.YoutubeDL(ydl_opts) as ydl:&#xA;        info = ydl.extract_info(url, download=False)&#xA;        url2 = info[&#x27;formats&#x27;][0][&#x27;url&#x27;]&#xA;        source = await discord.FFmpegOpusAudio.from_probe(url2, **ffmpeg_opts)&#xA;        vc.play(source)&#xA;

    &#xA;

  • Why is my Youtube Video not downloading completely ? "Input buffer exhausted, packet corrupt"

    15 septembre 2021, par user16909319

    Introduction :

    &#xA;

    I'm working on a Discord Music Bot for personal use only. Basically, when I play a 2min song with the bot, it plays the song for 1min 30secs, then skips it and plays the next one in the queue. The error is shown below :

    &#xA;

    &#xA;

    Error in Pull Function
    &#xA;IO error : Error number -10054 occurred
    &#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0000018f86a6f4c0] Packet corrupt (stream = 0, dts = 11154432).
    &#xA;Input buffer exhausted before END element found
    &#xA;Invalid Data found when processing Input
    &#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0000018f86a6f4c0] stream 0, offset 0x3e805c : partial file

    &#xA;

    &#xA;

    The code block which I think is causing the problem :

    &#xA;

    Search song method

    &#xA;

        async def search_song(self, amount, song, get_url=False):&#xA;        info = await self.bot.loop.run_in_executor(None, lambda: youtube_dl.YoutubeDL(ytdl_format_options).extract_info(&#xA;            f"ytsearch{amount}:{song}", download=False, ie_key="YoutubeSearch"))&#xA;        if len(info["entries"]) == 0: return None&#xA;&#xA;        return [entry["webpage_url"] for entry in info["entries"]] if get_url else info&#xA;

    &#xA;

    Play_song method

    &#xA;

        async def play_song(self, ctx, song):&#xA;        url = pafy.new(song).getbestaudio().url&#xA;        ctx.voice_client.play(discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(url, executable="C:/ffmpeg/bin/ffmpeg.exe")),&#xA;                              after=lambda error: self.bot.loop.create_task(self.check_queue(ctx)))&#xA;        ctx.voice_client.source.volume = 0.5&#xA;

    &#xA;

    Formatting Options I provided :

    &#xA;

    ytdl_format_options = {&#xA;    &#x27;format&#x27;: &#x27;bestaudio/best&#x27;,&#xA;    &#x27;outtmpl&#x27;: &#x27;%(extractor)s-%(id)s-%(title)s.%(ext)s&#x27;,&#xA;    &#x27;restrictfilenames&#x27;: True,&#xA;    &#x27;noplaylist&#x27;: True,&#xA;    &#x27;nocheckcertificate&#x27;: True,&#xA;    &#x27;ignoreerrors&#x27;: True,&#xA;    &#x27;logtostderr&#x27;: False,&#xA;    &#x27;quiet&#x27;: True,&#xA;    &#x27;no_warnings&#x27;: True,&#xA;    &#x27;default_search&#x27;: &#x27;auto&#x27;,&#xA;    &#x27;source_address&#x27;: &#x27;0.0.0.0&#x27;&#xA;}&#xA;

    &#xA;

    Solutions that I've tried :

    &#xA;

      &#xA;
    • Running it on both Replit and locally.
    • &#xA;

    • Redownloading FFmpeg
    • &#xA;

    • Ensuring FFmpeg, pafy, and youtube_dl are all up to date.
    • &#xA;

    &#xA;

    Things to Note :

    &#xA;

      &#xA;
    • Playing a 2mins song, it stops after 1min 30 seconds and displays the error above. (75% of the song)
    • &#xA;

    • Playing a 1hr song, it still continues after 10 minutes.
    • &#xA;

    &#xA;

    I do not have much experience in this yet so I'm not entirely sure where in my code is actually causing this issue or other ways which I can use to test and fix the issue.

    &#xA;