Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (27)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (7447)

  • avformat/flvenc : Avoid avio_write(pb, "", 0)

    19 mars 2024, par Andreas Rheinhardt
    avformat/flvenc : Avoid avio_write(pb, "", 0)
    

    When the compiler chooses to inline put_amf_string(pb, ""),
    the avio_write(pb, "", 0) can be avoided. Happens with
    Clang-17 with -O1 and higher and GCC 13 with -O2 and higher
    here.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/flvenc.c
  • 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 :

    &#xA;

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

    &#xA;

    [matroska,webm @ 000001570fe92d40] File ended prematurely&#xA;

    &#xA;

    and also this one

    &#xA;

    Warning: program compiled against libxml 211 using older 209&#xA;

    &#xA;

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

    &#xA;

    I will leave the code of the bot down bellow :

    &#xA;

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

    &#xA;

    youtube_dl.utils.bug_reports_message = lambda: &#x27;&#x27;&#xA;&#xA;&#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;: False,&#xA;    &#x27;logtostderr&#x27;: True,&#xA;    &#x27;quiet&#x27;: True,&#xA;    &#x27;no_warnings&#x27;: False,&#xA;    &#x27;default_search&#x27;: &#x27;auto&#x27;,&#xA;    &#x27;source_address&#x27;: &#x27;0.0.0.0&#x27;,  # bind to ipv4 since ipv6 addresses cause issues sometimes&#xA;}&#xA;&#xA;ffmpeg_options = {&#xA;    &#x27;options&#x27;: &#x27;-vn&#x27;,&#xA;}&#xA;&#xA;ytdl = youtube_dl.YoutubeDL(ytdl_format_options)&#xA;&#xA;&#xA;class YTDLSource(discord.PCMVolumeTransformer):&#xA;    def __init__(self, source, *, data, volume=0.5):&#xA;        super().__init__(source, volume)&#xA;&#xA;        self.data = data&#xA;&#xA;        self.title = data.get(&#x27;title&#x27;)&#xA;        self.url = data.get(&#x27;url&#x27;)&#xA;        self.duration = data.get(&#x27;duration&#x27;)&#xA;        img = ""&#xA;        imgs = [&#x27;&#x27;]&#xA;        for image in data.get("thumbnails"):&#xA;            img = image["url"]&#xA;            imgs.append(image["url"])&#xA;        self.image = img&#xA;        self.thumbnails = imgs&#xA;

    &#xA;

    The play command :

    &#xA;

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

    &#xA;

  • 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