
Recherche avancée
Autres articles (81)
-
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
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 (...)
Sur d’autres sites (11374)
-
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 !


-
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 ?


-
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 ?