
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (61)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, 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 (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (10158)
-
Révision 24584 : Fix de l’utilisation d’une table meta différente pour un plugin donné.
29 mai 2020, par eric@smellup.netOn fait aussi évoluer la feature en permettant de mettre plusieurs plugins dans une même table autre que spip_meta.
-
Building a livestream page where the user will input an rtsp streaming source through an ip address
7 décembre 2020, par Antax MdI am building a livestream page where the streaming source is streamed through rtsp. Currently, I am using ffmpeg to convert the incoming rtsp stream to a .m3u8 file and it is played back on the webpage through HLS.


The problem i am trying to solve now, is loading an rtsp stream based on the user's input. How do i go about solving this ? It is a requirement to able to view the stream on iOS and android.
The ffmpeg command :


ffmpeg -i "rtsp://10.193.79.185:5554" -hls_time 3 -hls_wrap 10 "C:\wamp64\www\hls\output.m3u8"



Code of what I have at the moment that loads a hard coded rtsp stream




 
 <code class="echappe-js"><script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>


 RTSP Stream

 
 


 


 


<script>&#xA; if(Hls.isSupported()) &#xA; {&#xA; var video = document.getElementById(&#x27;video&#x27;);&#xA; var mystring = "http://192.168.43.79/hls/output.m3u8";&#xA; var hls = new Hls({&#xA; debug: true&#xA; });&#xA; hls.loadSource(mystring);&#xA; hls.attachMedia(video);&#xA; hls.on(Hls.Events.MEDIA_ATTACHED, function() {&#xA; video.muted = true;&#xA; video.play();&#xA; });&#xA; }&#xA; // hls.js is not supported on platforms that do not have Media Source Extensions (MSE) enabled.&#xA; // When the browser has built-in HLS support (check using `canPlayType`), we can provide an HLS manifest (i.e. .m3u8 URL) directly to the video element throught the `src` property.&#xA; // This is using the built-in support of the plain video element, without using hls.js.&#xA; else if (video.canPlayType(&#x27;application/vnd.apple.mpegurl&#x27;)) {&#xA; video.src = &#x27;http://192.168.43.79/hls/output.m3u8&#x27;;&#xA; video.addEventListener(&#x27;canplay&#x27;,function() {&#xA; video.play();&#xA; });&#xA; }&#xA; </script>

 



-
Unable to find/write moov atom in the mp4 recorded stream
11 juillet 2014, par AnilJI have written the following code to write the webcam feed into a file (.mp4) on disk. The program is successful, but when I try to play the file using player, it says "moov atom not found" and player is not showing anything. The file however is a valid mp4 file according to ffmpeg command.
This is my main thread where I encode a picture every 30ms.
public void run() {
// Set the thread rolling.
mRunning = true;
while (mRunning) {
// and display it on the Java Swing window
Record();
}
// clean up resources
cleanup();
}
private void Record() {
IVideoPicture picture = null;
BufferedImage image = null;
picture = GetNextPicture();
image = Utils.videoPictureToImage(picture);
if (picture != null) {
// If recording is enabled, record the webcam stream.
if (mRecordStream) {
// convert to the right image type
BufferedImage bgrScreen = ConvertToType(image, BufferedImage.TYPE_3BYTE_BGR);
// encode the image to stream #0
mWriter.encodeVideo(0, bgrScreen, System.nanoTime() - mStartTime, TimeUnit.NANOSECONDS);
}
try {
Thread.sleep(30);
} catch (InterruptedException e) {
return;
}
}
}From the main thread, I do this when I want to stop the recording and close this recording thread. The cleanup() method is eventually called by the main thread to close the writer. The comment does says about writing the trailer (I guess moov atom), but it does not do it. Can someone please help me find where the problem is ?
public void stopRecording() {
// Stop the thread loop.
mRunning = false;
}
private void cleanup() {
// tell the writer to close and write the trailer if needed
if (mWriter != null) {
mWriter.close();
mWriter = null;
}
if (mVideoCoder != null) {
mVideoCoder.close();
mVideoCoder = null;
}
if (mContainer != null) {
mContainer.close();
mContainer = null;
}
}