
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (112)
-
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 ;
-
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (7149)
-
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.


-
A.R Drone 2.0 Video Streaming Latency
22 mars 2020, par DannyI am working on video streaming with the AR Drone 2.0 using different codes I have found on the internet.
I’ve attemptedffplay tcp://192.168.1.1:5555
to video stream from the AR Drone 2.0 ; however, the delay is way too high.My second attempt was with the following :
var arDrone = require('ar-drone');
var http = require('http');
console.log('Connecting png stream ...');
var pngStream = arDrone.createClient().getPngStream();
var lastPng;
pngStream
.on('error', console.log)
.on('data', function(pngBuffer) {
lastPng = pngBuffer;
});
var server = http.createServer(function(req, res) {
if (!lastPng) {
res.writeHead(503);
res.end('Did not receive any png data yet.');
return;
}
res.writeHead(200, {'Content-Type': 'image/png'});
res.end(lastPng);
});
server.listen(8080, function() {
console.log('Serving latest png on port 8080 ...');
});This only streamed images. I had to refresh browser every second.
My third option was using this option :
var arDrone=require('ar-drone')
var client= arDrone.createclient();
require('ar-drone-png-stream')(client,{port:8000})It streamed a lot of images in a short amount of time. The delay is still significant and I’m looking for a video.
Are there other approaches that will significantly lower the delay of the video stream ?
-
Unable to create a PPAPI (Pepper) video plugin -NaCl module failed - how to resolve ?
27 novembre 2013, par ElHaixGoogle's Say Goodbye to Our Old Friend NPAPI blog post indicates that NPAPI plugin support will cease by the end of 2014 (in favor of PPAPI).
We have considered the option of using the ffmpeg libraries to create our own video plugin to simply decode RTSP encoded H.264 video streams on the client - important because we need as near real-time video display (avoiding transcoding latency). Using the ffmpeg libraries, there is still a 3-5 second delay in decoding the stream, not as fast as running MPlayer with the
-benchmark
option.In trying Google's PNaCl recommendation, we just got the LOADING status and the following error :
NativeClient : NaCl module load failed : PnaclCoordinator : Compile
process could not be created : ServiceRuntime : failed to startAre there any other alternatives or suggestions to getting this working ?