
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (70)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (11184)
-
FFmpeg process finishes writing the file only after closing the program
20 juin 2024, par The EngineerMy JavaFX application uses FFmpeg to extract the first frame from a video file in a separate thread and the process ends with a wait. The image is saved to a temporary directory (temp/video_preview.jpg) but becomes available only after the forced termination of the entire program. I need the image for display in ImageView immediately after the FFmpeg process is completed.


@FXML
private void onDragOver(DragEvent event) {
 if (event.getDragboard().hasFiles()) {
 event.acceptTransferModes(TransferMode.ANY);
 }
}

@FXML
private void onDragDropped(DragEvent event) {
 Dragboard db = event.getDragboard();
 boolean success = false;
 if (db.hasFiles()) {
 List<file> files = db.getFiles();
 File videoFile = files.get(0);
 Image image = extractFirstFrameFromVideo(videoFile.getAbsolutePath());
 mainImage.setImage(image);
 success = true;
 }
 event.setDropCompleted(success);
 event.consume();
}
</file>


private Image extractFirstFrameFromVideo(String pathToVideo) {
 try {
 ProcessBuilder processBuilder = new ProcessBuilder(
 ffmpegPath,
 "-y",
 "-ss", "00:00:00",
 "-i", pathToVideo,
 "-frames:v", "1",
 outputFilePath // "temp/video_preview.jpg"
 );

 Process process = processBuilder.start();

 int exitCode = process.exitValue();
 if (exitCode != 0) {
 throw new IOException("ffmpeg process exited with error code: " + exitCode);
 }

 return new Image(new File(outputFilePath).toURI().toString());

 } catch (IOException e) {
 throw new RuntimeException(e);
 }
}



-
Cannot stop and (re-play) a rtsp stream with FFMediaElement
5 mars 2024, par CactusJackI have a problem using stop and play on a rtsp stream using the FFMediaElement.


I am initializing an instance of the MediaElement once by doing
m_MediaPlayer = new MediaPlayer();

This instance should live the whole application lifetime.

After this, I open the rtsp stream :
await m_MediaPlayer.Open(new Uri(rtspAdress));

The media opens, and when I dom_MediaPlayer.Play();
the stream is displayed in the MediaElement.

Now I want to stop the stream with
m_MediaPlayer.Stop();
and play it again. After calling play again, the stream is not diplayed anymore. The log says :

Direct Command 'Close' accepted. Perparing execution.
OnStreamReadInterrupt was requested an immediate read exit.
EVENT START : BufferingEnded
EVENT DONE : BufferingEnded
V BLK : 14.388 | CLK : 14.417 | DFT : 29 | IX : 4 | RNG : 48.897% | PQ : 0.0k | TQ : 0.0k
Direct Command 'Close' entered
MediaState changed : + Close
Media closed.
OnStreamReadInterrupt was requested an immediate read exit.
EVENT START : MediaStateChanged
EVENT START : MediaClosed
EVENT DONE : MediaStateChanged
Direct Command 'Close' completed. Result : True
EVENT DONE : MediaClosed
Dispose Entered. Waiting for Command Manager processor to stop.
Dispose is waiting for pending direct commands.
Dispose is closing media.
EVENT START : MediaClosed
Media closed.
EVENT DONE : MediaClosed
Dispose completed.


So why is Stop disposing the media ?
When I create a new player before re-playing and open the stream again, it works. But this takes a moment, so I just wat to stop and start again. Is that possible ?


-
BlueImp Fileupload - do action after single file upload when uploading multiple files ?
11 juillet 2014, par Mr PabloIs there anyway to get the event after a single file has finished uploading, when adding multiple files to the uploader ?
I want to do some processing (converting video files with FFMPEG) after each file is uploaded.
Currently, when uploading multiple files, with my conversion script fired in the "done" event, only one file is being converted, despite the script being fired in a $.each() loop.
I can’t seem to find the event for finding out when a single file has finished uploading, in the documentation.