
Recherche avancée
Médias (9)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (111)
-
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...) -
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...)
Sur d’autres sites (3199)
-
Babel Loader error when using ffmpeg.wasm in CRA react app
6 avril 2024, par Sooraj ChanduI am trying to implement a video editor using ffmpeg-wasm in CRA react app.


Package dependencies :


"@ffmpeg/ffmpeg": "^0.12.10",
"@ffmpeg/util": "^0.12.1",



Below is a sample class that I am trying to implement :


import React, {useRef, useState} from 'react';
import { FFmpeg } from "@ffmpeg/ffmpeg";
import { toBlobURL, fetchFile } from "@ffmpeg/util";

function Trimmer() {
 const [loaded, setLoaded] = useState(false);
 const ffmpegRef = useRef(new FFmpeg());
 const videoRef = useRef<htmlvideoelement null="null">(null)
 const messageRef = useRef<htmlparagraphelement null="null">(null)

 const load = async () => {
 const baseURL = "https://unpkg.com/@ffmpeg/core-mt@0.12.6/dist/esm";
 const ffmpeg = ffmpegRef.current;
 ffmpeg.on("log", ({ message }) => {
 if (messageRef.current) messageRef.current.innerHTML = message;
 });
 // toBlobURL is used to bypass CORS issue, urls with the same
 // domain can be used directly.
 await ffmpeg.load({
 coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, "text/javascript"),
 wasmURL: await toBlobURL(
 `${baseURL}/ffmpeg-core.wasm`,
 "application/wasm"
 ),
 workerURL: await toBlobURL(
 `${baseURL}/ffmpeg-core.worker.js`,
 "text/javascript"
 ),
 });
 setLoaded(true);
 };

 const transcode = async () => {
 const videoURL = "https://raw.githubusercontent.com/ffmpegwasm/testdata/master/video-15s.avi";
 const ffmpeg = ffmpegRef.current;
 await ffmpeg.writeFile("input.avi", await fetchFile(videoURL));
 await ffmpeg.exec(["-i", "input.avi", "output.mp4"]);
 const fileData = await ffmpeg.readFile('output.mp4');
 const data = new Uint8Array(fileData);
 if (videoRef.current) {
 videoRef.current.src = URL.createObjectURL(
 new Blob([data.buffer], { type: 'video/mp4' })
 )
 }
 };

 return loaded ? (
 <>
 <video ref="{videoRef}" controls="controls"></video>
 <br />
 <button>Transcode avi to mp4</button>
 <p ref="{messageRef}"></p>
 >
 ) : (
 <button>Load ffmpeg-core</button>
 );
}

export default Trimmer;
</htmlparagraphelement></htmlvideoelement>


I have installed the dependencies and when trying to start the application, it throws an error given below :


index.js:1 ./node_modules/@ffmpeg/ffmpeg/dist/umd/ffmpeg.js 55:4
Module parse failed: Unexpected character '#' (55:4)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| new Error("failed to import ffmpeg-core.js");
| class i {
> #e = null;
| #t = {};
| #s = {};



- 

- React - 16.14.0
- NPM - 6.14.5
- Babel Loader - 8.1.0








-
Dynamic way to add length to an html5 video
6 septembre 2013, par Eric PaulsenI'm looking for a way to update the video length on an HTML5 video in the client side using Javascript.
Example : I have a video clip loaded on the page that is 30 seconds long and I want to update it on the fly to be 45 seconds long.
I had a look at the duration property of the HTMLMediaElement, but quickly discovered that the property was read only (source : https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement). I also stumbled upon this blog post, but my ideal solution would be to have one continuous clip. I could accomplish this on the server side using a tool like FFMPEG, but I'd rather not add an increase in load time for our users.
Any suggestions ?
-
Cannot get ffmpeg to work after installing from homebrew
14 avril 2024, par phizzyI installed ffmpeg through homebrew but when I try to run it, even just typing in
ffmpeg
I get the following error message :


dyld: Library not loaded: /usr/local/lib/liblzma.5.dylib
 Referenced from: /usr/local/bin/ffmpeg
 Reason: Incompatible library version: ffmpeg requires version 8.0.0 or later, but liblzma.5.dylib provides version 6.0.0
Trace/BPT trap: 5




I've tried running
brew update
andbrew upgrade
but that didn't change anything. Runningbrew doctor
the only error I get is :


Warning: You have a curlrc file
If you have trouble downloading packages with Homebrew, then maybe this
is the problem? If the following command doesn't work, then try removing
your curlrc:
 curl http://github.com




New at doing things in the terminal, what to do next ?