
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (75)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (5807)
-
avformat/flvenc : Avoid avio_write(pb, "", 0)
19 mars 2024, par Andreas Rheinhardtavformat/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>
-
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 goncharovI 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 Butterworthavcodec/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>