
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 (82)
-
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 ) (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (8574)
-
Where to (long time) host Spring Boot Application with Data Base Backup and Linux Root Access [closed]
22 mai 2024, par Lord HelmchenI developed a small application for my father. It uses Spring Boot, MySQL and FFMPEG, which I currently installed on Linux.


I want to host it, deploy it automatically, have a back up and root access for FFMPEG installation.


It runs smoothly locally on Windows / Linux, now I want to host it somewhere.


What I would like to have :


- 

- Ease of deployment : I got experience in adminstration of linux root servers, but I look for something easy to integrate and maybe automatically deploy it from Github or Gitlab
- Backup : I want to backup the database ideally to another service provider in case something goes wrong.
- Linux : One Part of it, amongs others is to convert different audio formats using ffmpeg.
So, (I think) I need linux root access as well.
- Time Horzion : I would like to make sure it still runs in ten+ years, so it should be a reliable provider where I only update the application from time to time if needed.
- Money : As it is only for personal use at this moment, I don't want to invest a fortune.












What provider and deployment pipeline would you recommend to me ?


-
Spring content + MPD manifest and Dash.js player [closed]
31 octobre 2024, par IupaI'm total newbie to video content from web, however I was curious how those things work actually, and I found so far that for web pages there are already js libs which firstly customize the video html tag to support many features like resolution/subtitles/speed etc,secondly they work with specific manifest file as a src for video, it's *.mpd extension and xml format where is described how to play the chunks of video, now in order to generate such manifests I need another libs like ffmpeg that can generate not only manifests but the chunks as well in different resolutions and other tons of settings (kinda crazy ¯_(ツ)_/¯), anyway now I understood that in order to use spring content lib I need to generate all of those during the uploads of files, are there some tutorials/best practices for such ?


-
JAVA Spring : Grabbing Image from a multipartFile video via FFMPEG JavaCV
29 août 2023, par Thanh Hiếu NguyễnI'm trying to achieve Grabbing a frame from a MultipartFile or URL and here's my attempt.


URL :


InputStream inputStream = new java.net.URL(video.getUrl()).openStream();

FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(inputStream);
grabber.start();

int frameRate = (int) grabber.getFrameRate();
int targetFrameNumber = (int) (frameRate * timeLengthSeconds);

grabber.setFrameNumber(targetFrameNumber);
Frame frame = grabber.grab();

grabber.stop();

if (frame != null) {
 Java2DFrameConverter converter = new Java2DFrameConverter();
 BufferedImage bufferedImage = converter.getBufferedImage(frame);
 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
 ImageIO.write(bufferedImage, "jpeg", byteArrayOutputStream);
 byte[] bytes = byteArrayOutputStream.toByteArray();



MultipartFile :


byte[] videoBytes = video.getBytes();

FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(new ByteArrayInputStream(videoBytes));
int frameRate = (int) 30;
int targetFrameNumber = (int) (frameRate * timeLengthSeconds);

grabber.setFrameNumber(targetFrameNumber);
grabber.setVideoStream(10);
grabber.start();


Frame frame = grabber.grab();

grabber.stop();

if (frame != null) {
 Java2DFrameConverter converter = new Java2DFrameConverter();
 BufferedImage bufferedImage = converter.getBufferedImage(frame);
 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
 ImageIO.write(bufferedImage, "jpeg", byteArrayOutputStream);
 byte[] bytes = byteArrayOutputStream.toByteArray();



Both of them generates an AUDIO type of Frame, so later I can't buffer an image out of it, tried different videos, frameRate, frameNumber, same result.


UPDATE :

So I manage to get the frame with following code

byte[] videoBytes = video.getBytes();
FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(new ByteArrayInputStream(videoBytes));
grabber.setFormat("mp4");
int frameRate = (int) grabber.getFrameRate();
int targetFrameNumber = (int) (frameRate * timeLengthSeconds);

grabber.setFrameNumber(targetFrameNumber);
grabber.setVideoStream(0);
grabber.start();


Frame frame = grabber.grabImage();

grabber.stop();



But another problem occurred


A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000001dd6cac79d6, pid=20824, tid=21048 
 JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.12+8) (build 11.0.12+8-LTS-237)
 Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (11.0.12+8-LTS-237, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
 Problematic frame:
 J 657 c1 jdk.internal.misc.Unsafe.getByte(J)B java.base@11.0.12 (7 bytes) @ 0x000001dd6cac79d6 [0x000001dd6cac79a0+0x0000000000000036]



Any help is appreciated !