
Recherche avancée
Autres articles (58)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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
Sur d’autres sites (10545)
-
fate : Don’t use files from SRC_PATH in the actual tests
20 mai 2013, par Martin Storsjöfate : Don’t use files from SRC_PATH in the actual tests
If building out of tree, make sure the filter scripts are copied
into the build tree before running tests. This makes sure that
SRC_PATH doesn’t need to exist on the remote system (or doesn’t
need to exist at the same path).Signed-off-by : Martin Storsjö <martin@martin.st>
-
JavaFX : ffmpeg process finishes writing the file only after closing the program
16 juin 2024, par The EngineerMy JavaFX application uses ffmpeg to extract the first frame from a video file. The ffmpeg command is run in a separate thread, and the process ends with a wait. However, despite the fact that the image is saved to a temporary directory (temp/video_preview.jpg ), it becomes available only after the forced termination of the entire program, and not immediately after the completion of the ffmpeg process. I need the image to be available for display in ImageView immediately after the ffmpeg process is completed.

https://github.com/Memory420/GifConverter/tree/master

I expected the ffmpeg process to quickly create a picture and I would apply it where I need it.


@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);
 }
 }



-
Remove obsolete version.h inclusions
11 juin 2021, par Andreas RheinhardtRemove obsolete version.h inclusions
These have mostly been added because of FF_API_* ; yet when these were
removed, removing the header has been forgotten.Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
- [DH] libavcodec/blockdsp.c
- [DH] libavcodec/blockdsp.h
- [DH] libavcodec/codec_desc.c
- [DH] libavcodec/error_resilience.c
- [DH] libavcodec/mpegutils.h
- [DH] libavcodec/utils.c
- [DH] libavfilter/formats.h
- [DH] libavformat/hlsproto.c
- [DH] libavutil/aes.h
- [DH] libavutil/aes_ctr.h
- [DH] libavutil/buffer.h
- [DH] libavutil/crc.h
- [DH] libavutil/dict.h
- [DH] libavutil/hash.h
- [DH] libavutil/hmac.c
- [DH] libavutil/hmac.h
- [DH] libavutil/lls.c
- [DH] libavutil/lls.h
- [DH] libavutil/log.h
- [DH] libavutil/mathematics.c
- [DH] libavutil/md5.h
- [DH] libavutil/murmur3.h
- [DH] libavutil/opt.h
- [DH] libavutil/pixdesc.c
- [DH] libavutil/pixdesc.h
- [DH] libavutil/ripemd.h
- [DH] libavutil/sha.h
- [DH] libavutil/sha512.h
- [DH] libavutil/tree.h