
Recherche avancée
Autres articles (62)
-
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 (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (10399)
-
Fixed premature return in remote function which prevented ajax call from being made in case an input was entered too quickly. Ensures remote validation always validates the newest value.
14 octobre 2012, par Pierre-Antoine Passetm jquery.validate.js Fixed premature return in remote function which prevented ajax call from being made in case an input was entered too quickly. Ensures remote validation always validates the newest value.
-
Thinking on how to quickly implement Microsoft Smooth Streaming (MSS) in Nginx
17 juillet 2017, par Andrey RikunovThe idea is to use standard Nginx config only, rewriting segment requests to byte range requests. But not sure idea is good and valid.
UPDATE : Found FFMPEG’s ismindex tool - it pre-splits files for serving as static files by a web server without any extra server support.
UPDATE 2 : Found even more perfect tools than ismindex :
- https://github.com/sannies/mp4parser-smooth-streaming
- https://github.com/sannies/mp4parser
- https://github.com/castlabs/dashencrypt
They in couple solve my task. Many thanks to Sannies.
-
discord.py ffmpeg song plays too quickly at the beginning
30 mai 2023, par C-GianI built a discord bot using discord.py and ffmpeg, it works but the song in the first 0-5 seconds plays too fast, I think it's buffering so I tried to use asyncio.sleep but didn't work, suggestions to solve the problem ?


play func :


with youtube_dl.YoutubeDL(self.opts) as ydl:
 await asyncio.sleep(0.1)
 ydl.cache.remove()
 await asyncio.sleep(0.1)
 info = ydl.extract_info(url, download=False)
 raw_url_song = info['formats'][0]['url']
 await self.real_play(ctx, raw_url_song)



real_play func :


source = await discord.FFmpegOpusAudio.from_probe(processed_url_song, **self.FFMPEG_OPTIONS)
await asyncio.sleep(0.5)
self.vc.play(source, after=lambda e: asyncio.run_coroutine_threadsafe(self.real_play(ctx, processed_url_song), self.client.loop))



these are the options :


self.FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
self.OPTIONS = {'format': 'bestaudio'}
self.opts = {'extract_flat': True, 'skip_download': True}



the functions are separate because I do something else (such as playlists), I have reported only the essential code to understand the problem, and the cache remove is essential to reduce the occurence of HTTP 404 forbidden error, btw also without cache remove the problem persists