
Recherche avancée
Autres articles (83)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (14556)
-
Revision fdf3bfa71f : decode_to_md5.c : Silence warning with cast. More size_t/unsigned int disagreeme
19 février 2014, par Tom FineganChanged Paths :
Modify /examples/decode_to_md5.c
decode_to_md5.c : Silence warning with cast.More size_t/unsigned int disagreement.
Change-Id : I2be01ee680f852f168f6fcac554a534ca3c83e5d
-
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


-
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.