
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (8)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)
Sur d’autres sites (2861)
-
Pass options containing spaces to ffmpeg using fluent-ffmpeg
10 janvier 2019, par dansumptionI am writing a Node script which copies and re-tags some of my MP4 files using
fluent-ffmpeg
It doesn’t work with any metadata that contains spaces. The code that does the copying/tagging looks something like this :
const ffmpeg = require('fluent-ffmpeg');
const inputFilename = 'path/to/original.m4a';
const outputFilename = 'path/to/new.m4a';
const options = [
'-metadata', 'artist=Someone',
'-metadata', 'album=Some title',
// ...etc
];
ffmpeg(inputFilename)
.outputOptions(options)
.saveToFile(outputFilename);This results in an error :
events.js:183
throw er; // Unhandled 'error' event
An error occurred: ffmpeg exited with code 1: title: Invalid argumentI have tried putting
Some title
in single quotes, double quotes and no quotes. I have tried escaping the spaces in it. I have tried passing the options array as single options rather than tuples, for example :'-metadata album="Some title"'
- but whatever I try, it still throws an error when there are spaces.(It may be relevant to note that this is on Windows)
Can anyone suggest a way of getting it to work ?
-
outOfMemoryError from javacv
14 février 2018, par Maharjun MWe are using
javacv
library for creating thumbnails out of videos. We are able to create thumbnails. But when we upload more videos(20 to 30 of 10MB to 40MB)
the application is throwing outOfMemoryError.We are using
1.3.1
version ofjavacv
.
Here is thepom.xml
file.<dependency>
<groupid>org.bytedeco</groupid>
<artifactid>javacv</artifactid>
<version>1.3.1</version>
</dependency>Here is the code
public BufferedImage generateThumbnail(File outputVideoFile) throws IOException {
BufferedImage bufferedImage = null;
try {
FFmpegFrameGrabber frameGrabber = new FFmpegFrameGrabber(outputVideoFile);
frameGrabber.start();
Frame grabKeyFrame = frameGrabber.grabKeyFrame();
Java2DFrameConverter java2DFrameConverter = new Java2DFrameConverter();
bufferedImage = java2DFrameConverter.convert(grabKeyFrame);
frameGrabber.stop();
} catch (Exception e) {
throw new RuntimeException(e);
}
return bufferedImage;
}Here is the error
java.lang.OutOfMemoryError: Physical memory usage is too high: physicalBytes = 3G > maxPhysicalBytes = 3G
org.bytedeco.javacpp.Pointer.deallocator(Pointer.java:562)
org.bytedeco.javacpp.Pointer.init(Pointer.java:121)
org.bytedeco.javacpp.avcodec$AVPacket.allocate(Native Method)
org.bytedeco.javacpp.avcodec$AVPacket.<init>(avcodec.java:1696)
org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:471)
org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:462)
org.bahmni.module.bahmnimsf.extension.PatientDocumentThumbnailGenerator.generateThumbnail(PatientDocumentThumbnailGenerator.java:40)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961)
</init>I tried to upgrade the version to
1.4
though it’s not working.
Somebody told me to useSystem.gc()
that also not working.Can someone suggest the solution ? thanks in advance.
-
ffmpeg fluent live streaming to youtube not working
18 octobre 2020, par RickyI am learning how to using ffmpeg fluent and I am having trouble getting it to stream live to Youtube



here is the command I have tried :



let streamYT = (YTrtmpKey) => {
 var proc3 = new ffmpeg({ source: inputURL, timeout: 0 })
 .addOption('-vcodec', 'libx264')
 .addOption('-acodec', 'aac')
 .addOption('-crf', 26)
 .addOption('-aspect', '640:360')
 .withSize('640x360')
 .on('start', function(commandLine) {
 console.log('Query : ' + commandLine);
 })
 .on('error', function(err) {
 console.log('Error: ' + err.message);
 })
 .output('rtmp://a.rtmp.youtube.com/live2/' + YTrtmpKey, function(stdout, stderr) {
 console.log('Convert complete' +stdout);
 });
 }




this doesn't throw any errors but also doesn't do anything