Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (99)

  • 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 (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (11751)

  • yt_dlp gives a strange message : "Seek to desired resync point failed. Seeking to earliest point available instead." and "File ended prematurely"

    16 septembre 2023, par nikita goncharov

    I have a discord bot (discord.py) in python and it can play music. Lastly it had trouble in playing the music, giving some random warnings but it mostly worked. But now it gives me this message :

    


    [matroska,webm @ 000001570fe92d40] Seek to desired resync point failed. Seeking to earliest point available instead.


    


    [matroska,webm @ 000001570fe92d40] File ended prematurely


    


    and also this one

    


    Warning: program compiled against libxml 211 using older 209


    


    As I saw this is a very common warning but I still have no Idea how to fix it.

    


    I will leave the code of the bot down bellow :

    


    Ytdlp setup (I have renamed the librarie to be youtube_dl)

    


    youtube_dl.utils.bug_reports_message = lambda: ''


ytdl_format_options = {
    'format': 'bestaudio/best',
    'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',
    'restrictfilenames': True,
    'noplaylist': True,
    'nocheckcertificate': True,
    'ignoreerrors': False,
    'logtostderr': True,
    'quiet': True,
    'no_warnings': False,
    'default_search': 'auto',
    'source_address': '0.0.0.0',  # bind to ipv4 since ipv6 addresses cause issues sometimes
}

ffmpeg_options = {
    'options': '-vn',
}

ytdl = youtube_dl.YoutubeDL(ytdl_format_options)


class YTDLSource(discord.PCMVolumeTransformer):
    def __init__(self, source, *, data, volume=0.5):
        super().__init__(source, volume)

        self.data = data

        self.title = data.get('title')
        self.url = data.get('url')
        self.duration = data.get('duration')
        img = ""
        imgs = ['']
        for image in data.get("thumbnails"):
            img = image["url"]
            imgs.append(image["url"])
        self.image = img
        self.thumbnails = imgs


    


    The play command :

    


    # if message.author.voice_client is not None:
try:
    print(1)
    sessionChannel = message.author.voice.channel
except:
    embedAns = discord.Embed(color=discord.Color.from_rgb(255, 201, 115))
    # embedImg.set_image(url=player.image)
    # embedImg.type = "image"
    embedAns.add_field(name="Player", value=f'To play audio you must join a voice channel!',
                       inline=True)
    embedAns.add_field(name="", value=f'*{message.author.name}*', inline=False)
    # embedImg.image.width = "800"
    await message.channel.send(embed=embedAns)
try:
    print(2)
    await message.author.voice.channel.connect(reconnect=False)
    print(2)
except:
    pass
"""embedAns = discord.Embed(color=discord.Color.from_rgb(102, 196, 250))
# embedImg.set_image(url=player.image)
# embedImg.type = "image"
embedAns.add_field(name="Player", value=f'Succesfuly joined voice channel to play music in {sessionChannel}! Loading in youtube song... Please wait...', inline=True)
embedAns.add_field(name="", value=f'*{message.author.name}*', inline=False)
# embedImg.image.width = "800"
await message.channel.send(embed=embedAns)"""
try:
    print(3)
    load = await message.channel.send(
        f'Succesfuly joined voice channel to play music in {sessionChannel}')
    print(4)
    url = matched.group(1)
    player = await YTDLSource.from_url(url, loop=client.loop, stream=True)
    # Embed = await YTDLSource.from_url(url, loop=client.loop, stream=False)
    sessionChannel.guild.voice_client.play(player, after=lambda e: print(
        f'Player error: {e}') if e else None)
    await load.delete()
    sec = player.duration % 60
    temp = player.duration // 60
    min = temp % 60
    hour = temp // 60
    if hour == 0:
        timeStr = f"{min:02d}:{sec:02d}"
    else:
        timeStr = f"{hour}:{min:02d}:{sec:02d}"
    # await message.reply()
    embedImg = discord.Embed(color=discord.Color.from_rgb(102, 196, 250))
    # embedImg.set_image(url=player.image)
    # embedImg.type = "image"
    embedImg.set_thumbnail(url=player.image)
    embedImg.add_field(name="Player", value=f'Now playing: **{player.title}** \n `{timeStr}`',
                       inline=True)
    embedImg.add_field(name="", value=f'Requested by: {message.author.name}', inline=False)
    # embedImg.image.width = "800"
    await message.channel.send(embed=embedImg)
except Exception as ex:
    embedAns = discord.Embed(color=discord.Color.from_rgb(255, 119, 115))
    # embedImg.set_image(url=player.image)
    # embedImg.type = "image"
    # embedImg.set_thumbnail(url=player.image)
    embedAns.add_field(name="Player Error",
                       value=f'Couldent play audio on {sessionChannel} \n`{ex}`', inline=True)
    embedAns.add_field(name="", value=f'Requested by: {message.author.name}', inline=False)


    


  • avcodec/hap : add "compressor" option to Hap encoder to disable secondary compression

    8 novembre 2016, par Tom Butterworth
    avcodec/hap : add "compressor" option to Hap encoder to disable secondary compression
    

    The secondary compression in Hap is optional, this change exposes that option to
    the user as some use-cases favour higher bitrate files to reduce workload
    decoding.
    Adds "none" or "snappy" as options for "compressor". Selecting "none" disregards
    "chunks" option : chunking is only of benefit decompressing Snappy.

    Reviewed-by : Martin Vignali <martin.vignali@gmail.com>
    Signed-off-by : Tom Butterworth <bangnoise@gmail.com>

    • [DH] libavcodec/hap.h
    • [DH] libavcodec/hapenc.c
  • Error : "libavformat\avformat.h : No such file or directory"

    21 février 2023, par Abdo Daood

    I create a simple c++ file called test.cpp :

    &#xA;

    #include <iostream>&#xA;#include &#xA;using namespace std;&#xA;&#xA;int main() &#xA;{&#xA;    cout &lt;&lt; "Hello, World!";&#xA;    return 0;&#xA;}&#xA;</iostream>

    &#xA;

    and using g++ in terminal to compile test.cpp file with the command :

    &#xA;

    g&#x2B;&#x2B; test.cpp -o test&#xA;

    &#xA;

    I get this error :

    &#xA;

    test.cpp:2:10: fatal error: libavformat\avformat.h: No such file or directory&#xA;    2 | #include &#xA;      |          ^~~~~~~~~~~~~~~~~~~~~~~~&#xA;compilation terminated.&#xA;

    &#xA;

    Notes :&#xA;libavformat\avformat.h path is : /usr/include/x86_64-linux-gnu/libavformat/avformat.h

    &#xA;

    and using ffmpeg version is :

    &#xA;

    $ ffmpeg -version&#xA;&#xA;ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers&#xA;built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)&#xA;configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;libavutil      56. 70.100 / 56. 70.100&#xA;libavcodec     58.134.100 / 58.134.100&#xA;libavformat    58. 76.100 / 58. 76.100&#xA;libavdevice    58. 13.100 / 58. 13.100&#xA;libavfilter     7.110.100 /  7.110.100&#xA;libswscale      5.  9.100 /  5.  9.100&#xA;libswresample   3.  9.100 /  3.  9.100&#xA;libpostproc    55.  9.100 / 55.  9.100&#xA;

    &#xA;

    Using this command :

    &#xA;

    g&#x2B;&#x2B; `pkg-config --cflags libavformat` test.cpp  `pkg-config --libs libavformat` -o test&#xA;

    &#xA;