
Recherche avancée
Autres articles (53)
-
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 (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (8004)
-
FFMPEG spawn promise not resolving
24 décembre 2020, par fitzmodeI have a problem where running
ffmpeg
withspawn
using the event listener API forclose
orexit
events works fine but when I try to convertspawn
into aPromise
it does not resolve.

I'm


This works fine


const ls = spawn(ffmpeg_static.path,`-i movie.mov movie.mp4`.split(" ");

 //Listen for processing close
 ls.on("close", (code) => {
 console.log(`child process exited with code ${code}`);
 
 });




function pspawn(args) {
 
 // *** Return the promise
 return new Promise(function (resolve, reject) {
 
 const process = spawn(ffmpeg_static.path, args);
//Listen for close and resolve.
 process.on("close", function (code) {
 
 resolve("Complete");
 });
 process.on("error", function (err) {
 // *** Process creation failed
 reject(err);
 });
 });
}

... 

async function run () {
await pspawn(['-i', 'movie.mov','movie.mp4'])
}



I might be missing something simple but can't seem to figure out what it is.


-
Apache protected HLS stream, weird behaviour
13 août 2018, par GotschiI have 2 webcam streams published (restreamed from local LAN) via https and apache to the web.
in my vhost file I have following setting :
<filesmatch>
AuthName "Member Only"
AuthType Basic
AuthUserFile /var/www/.htpasswd
require valid-user
</filesmatch>When I start the stream via vlc it works fine, VLC and others (Browsers) request the user and password from the user and streaming starts. And it plays fine for infinite time !
vlc -I dummy http://192.168.178.21:8080/ vlc://quit --sout='#std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=/var/www/https/webcam/dach/stream1.m3u8,index-url='"stream1-########.ts"'},mux=ts{use-key-frames},dst=/var/www/https/webcam/dach/stream1-########.ts}'
When I start it with avconv/ffmpeg :
avconv -re -i http://192.168.178.21:8080 -c copy -flags -global_header -hls_time 10 -hls_list_size 6 -hls_wrap 10 -g 24 /var/www/https/webcam/dach/stream1.m3u8
VLC and Browsers request the Password and it plays for a few seconds.
but then after the first segments and the player requests the new .m3u8 it fails with401:Unauthorized
When i turn off authentication it works fine again with avconv, so I guess this has something to do with apache ?
Here’s the generated m3u8 by VLC :
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:NO
#EXT-X-MEDIA-SEQUENCE:5
#EXTINF:10.00,
stream1-00000005.ts
#EXTINF:10.00,
stream1-00000006.ts
#EXTINF:10.00,
stream1-00000007.ts
#EXTINF:10.00,
stream1-00000008.ts
#EXTINF:10.00,
stream1-00000009.tsand the one by avconv :
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:5
#EXTINF:10,
stream15.ts
#EXTINF:10,
stream16.ts
#EXTINF:10,
stream17.ts
#EXTINF:10,
stream18.ts
#EXTINF:10,
stream19.ts
#EXTINF:10,
stream10.tsCan somebody give me a hint ?
I need to use avconv since it allows me to map the video stream before the audio stream (video needs to be 0 and Webcam stream is often mixed up)thanks
-
Evolution #3091 (Nouveau) : Eviter le timout d’un article qui contient trop de ou
13 novembre 2013, par - EquipementBonjour,
Un rédacteur a mis plusieurs centaines de DANS LE TEXTE d’un article, ce qui s’est traduit par un timeout lors de l’affichage de l’article.
Si les documents ne sont pas dans le texte de l’article, cela ne pose pas de problème.Le rédacteur ne peut pas deviner que, lors du calcul de la page, SPIP va calculer autant de fois le squelette doc.html qu’il y a de dans le texte de l’article, ce qui augmente le temps de traitement.
Aussi, une idée consisterait à ce que SPIP informe le rédacteur, au moment de l’enregistrement de son article, si ce dernier dépasse la limite du nombre maximal de ou p>
if (defined(’_MAX_INCLURE_MODELES’) AND intval(_MAX_INCLURE_MODELES)>0) $texte = _request(’texte’) ; if (strpos($texte,"<") !==false) if (preg_match_all(’/<[a-z_-]3,\s*[0-9|]+/iS’, $texte, $matches, PREG_SET_ORDER)>intval(_MAX_INCLURE_MODELES)) $erreurs[’texte’] = _T(’info_trop_de_modeles’) ;
Comme cette fonction formulaires_editer_article_verifier_dist restera sans effet pour les articles déjà existants et que l’on ne modifie pas, il est intéressant d’intervenir également sur la fonction inclure_modele. Il s’agit de faire en sorte que la page s’affiche avec tout le texte de l’article, mais celui-ci contiendrait uniquement les _MAX_INCLURE_MODELES premiers documents (ou images ou ...).
Le début de la fonction de SPIP « inclure_modele » se verrait ainsi ajouter les 2 lignes ci-dessous qui portent sur $compteur_total (à noter que $compteur existe déjà actuellement pour les modèles inconnus, et est décrémenté plus loin dans la fonction si le modèle est connu) :
function inclure_modele($type, $id, $params, $lien, $connect=’’)
static $compteur ;
static $compteur_total ;
if (++$compteur>10) return ’’ ; # ne pas boucler indefiniment
if (defined(’_MAX_INCLURE_MODELES’) AND intval(_MAX_INCLURE_MODELES)>0 AND ++$compteur_total>intval(_MAX_INCLURE_MODELES)) return ’’ ;Cordialement
Equipement