
Recherche avancée
Autres articles (34)
-
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (6210)
-
How can I use a python script to bypass google recaptcha ?
5 janvier 2018, par demoskp90I am trying to create a bot that performs some actions on a website and I tried using rebreak captcha to achieve this but I am not sure how to do this.
I am getting the following error message when running the python script :
RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg,
but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg,
but may not work", RuntimeWarning)Does anyone know how to fix this ? The repository for this script is on GitHub on this link :
-
Adjust Opus Ogg page size using Go
15 mars 2024, par matthewUsing the code from Go's Pion WebRTC library play-from-disk example I'm able to create a WebRTC connection and send audio from a local Ogg file to peers.


The play-from-disk example README.md details how to first convert the page size of the Ogg file to
20,000
usingffmpeg
, like so :

ffmpeg -i $INPUT_FILE -c:a libopus -page_duration 20000 -vn output.ogg



I'd like to make this same adjustment to Ogg data natively in Go, without using
ffmpeg
. How can this be done ?

I've tried using Pion's oggreader and oggwriter, but using these requires deep Opus file format and RTP protocol knowledge that neither I nor ChatGPT seem to have.


For additional context, I'm using a Text-to-Speech (TTS) API to generate my Ogg data as follows :


req, err := http.NewRequest("POST", "https://api.openai.com/v1/audio/speech", bytes.NewBuffer([]byte(fmt.Sprintf(`{
 "model": "tts-1",
 "voice": "alloy",
 "input": %q,
 "response_format": "opus",
}`, text))))

req.Header.Add("Authorization", "Bearer "+token)
req.Header.Add("Content-Type", "application/json; charset=UTF-8")

client := &http.Client{}
resp, err := client.Do(req)




As I'm trying to create a real-time audio app, ideally, I'd like to pipe the response to WebRTC performing the conversion on chunks as these are received so that peers can start to listen to the audio before it has been fully received on the server.


-
fate/fits : Use transcode for transcode-like test
22 avril 2022, par Andreas Rheinhardtfate/fits : Use transcode for transcode-like test
Each of the intermediately generated lena-*.fits files is only used
for exactly one test ; so it could be deleted right after the test.
Switching to a transcode test (which is also more natural) achieves
this. It also adds checksums of the intermediate files to the ref-file.Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>