
Recherche avancée
Médias (2)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (98)
-
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 ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (16727)
-
Cannot Play RTSP Streams From the Internet
17 avril 2023, par jnnksI am trying to receive an rtsp :// stream from the internet. There are many example streams running, but I cannot receive any of them.
ffplay and VLC both fail to receive data. I tried both UDP and TCP with various urls with no success.
Streaming from a local rtsp server with aler9/rtsp-simple-server Docker container works fine.


This is the command I use to watch the stream :


ffplay rtsp://rtsp.stream/pattern



VLC fails with :


[00007f58640015f0] satip stream error: Failed to connect to RTSP server rtsp.stream:554
[00007f58640015f0] access_realrtsp stream error: cannot connect to rtsp.stream:554



What else can I try ?


-
How to read stream data as chunk ?
5 juillet 2022, par imagesckI try to lean, how to read chunk of stream data. It almost works, it likes i misunderstanding implement allocate buffer size in pause event of stdout. the video that i use is https://www.youtube.com/watch?v=oiNkumxPVzU. 480p. ffmpeg freeze to encode at 03:53, no error, just freeze likes missing require bytes. the video length exactly is 03:55.


const { spawn } = require('child_process');
const path = require('path');

const decArgs = [
 '-i', path.join(__dirname + '/public/future.mkv'),
 '-an',
 '-pix_fmt', 'rgb32',
 '-f', 'rawvideo',
 '-'
];

const decode = spawn('ffmpeg', decArgs, {
 stdio: [
 'ignore',
 'pipe',
 'ignore'
 ] 
});

// Encode section
const width = 854;
const height = 480;
const channels = 4;
const fps = 29.97002997002997.toString();
const colorsLength = width*height*channels;


const encArgs = [
 '-pix_fmt', 'rgb32',
 '-f', 'rawvideo',
 '-s', `${width}x${height}`,
 '-r', fps,
 '-i', '-',
 '-c:v', 'libx264',
 '-preset', 'ultrafast',
 '-crf', '30',
 '-pix_fmt', 'yuv420p',
 '-r', fps,
 '-y',
 path.join(__dirname + '/public/output.mp4')
];

const encode = spawn('ffmpeg', encArgs, {
 stdio: [
 'pipe',
 'ignore',
 'pipe'
 ]
});

// colors RGBA
let buffer = Buffer.alloc(0);
decode.stdout.on('data', data => {
 const allocSize = buffer.length + data.length;
 buffer = Buffer.concat([buffer, data], allocSize);
 
 if (buffer.length > colorsLength) decode.stdout.pause();
});

decode.stdout.on('pause', () => {
 // Create new buffer with size of colors length
 const bufferData = Buffer.alloc(colorsLength);
 buffer.copy(bufferData, 0, 0, colorsLength);
 // after manipulate the buffer send it to encode
 encode.stdin.write(bufferData);
 
 // Create new buffer to take out left buffer. cause stream length cant be predict.
 const leftBuffer = Buffer.alloc(buffer.length - bufferData.length);
 buffer.copy(leftBuffer, 0, buffer.length - bufferData.length, buffer.length);
 buffer = leftBuffer;

 decode.stdout.resume()
});

decode.stdout.on('end', () => {
 if (buffer.length) encode.stdin.write(buffer);
})

encode.stderr.on('data', data => {
 console.log(data.toString())
})



-
Spring Boot serving an m3u8 playlist
13 octobre 2023, par Ph33lyI'm trying to serve an m3u8 playlist through Spring Boot. I have a running ffmpeg process that is transcoding a multicast in real-time and sending the files to /src/resources/public/output.m3u8. I see the playlist updating and the new .ts files being generated correctly however when trying to watch the stream in a video player, it only plays a certain amount of video. Is there a way to properly serve up a running playlist in Java instead of serving it statically ?



EDIT : When starting a basic http server with python
python3 -m http.server
, I'm able to view the stream perfectly fine. Is there a Spring Boot way to accomplish the same task ?