
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (87)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (11492)
-
Video Manipulation with ffmpeg : Troubleshooting Conversion Issues
26 janvier 2024, par BarnoI want to manipulate my video using ffmpeg. I retrieve the stream from S3 with the following function :


async function getImageBufferFromS3(imageUrl) {
 const { bucketName, objectKey } = extractS3InfoFromUrl(imageUrl);
 const s3Client = configureS3Client();

 const getObjectCommand = new GetObjectCommand({
 Bucket: bucketName,
 Key: objectKey
 });

 const data = await s3Client.send(getObjectCommand);
 const imageBuffer = await streamToBuffer(data.Body);
 return imageBuffer;
}

async function streamToBuffer(stream) {
 return new Promise((resolve, reject) => {
 const chunks = [];
 stream.on('data', (chunk) => chunks.push(chunk));
 stream.on('error', reject);
 stream.on('end', () => resolve(Buffer.concat(chunks)));
 });
}



Now, I want to use ffmpeg to add text to it. First, I'd like to obtain the "clean" video :


module.exports.createVideoWithTextAndBackground = async (videoBuffer, customText = null) => {
 try {
 if (!customText) {
 return videoBuffer;
 }
 
 const fontPath = __dirname + '/../public/fonts/Satoshi-Medium.ttf';

 try {
 return await new Promise((resolve, reject) => {
 const input = new stream.PassThrough();
 input.end(videoBuffer);

 const output = new stream.Writable();
 const chunks = [];

 output._write = (chunk, encoding, next) => {
 chunks.push(chunk);
 next();
 };

 output.on('finish', () => {
 const resultBuffer = Buffer.concat(chunks);
 resolve(resultBuffer);
 });

 output.on('error', (err) => {
 reject(err);
 });

 ffmpeg()
 .input(input)
 .inputFormat('mp4')
 .toFormat('mp4')
 .pipe(output);
 });
 } catch (error) {
 console.error(error);
 throw error;
 }

 } catch (error) {
 console.error(error);
 throw error;
 }
};



However, I encountered the following error :


Error: ffmpeg exited with code 183: frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=N/A bitrate=N/A speed=N/A



Conversion failed !


I don't face any issues when I don't use ffmpeg. I even tried ffmpeg -i to create a video with text using my console, confirming that ffmpeg works on my computer.


-
Issues with MediaSourceExtension
4 janvier 2023, par engine32I want to livestream audio only using MSE. I would like to send data/files via websockets, therefore no HLS nor DASH.


But until I implement websockets, I thought to give it a try by statically loading the song in an array.


Here is my code so far :


<audio controls="controls"></audio>
..
<code class="echappe-js"><script>&#xA; const ms = new MediaSource();&#xA; var ae = document.getElementById("ap");&#xA; ae.src = URL.createObjectURL(ms);&#xA; ms.addEventListener(&#x27;sourceopen&#x27;, msOpen);&#xA; &#xA;function msOpen(e) {&#xA; URL.revokeObjectURL(ae.src);&#xA; var mse = e.target;&#xA; const sourceBuffer = mse.addSourceBuffer(&#x27;audio/mp4&#x27;);&#xA; var u8A0 = new Uint8Array([0x00, 0x00, 0x00, 0x1C, 0x66, ...]);&#xA; sourceBuffer.appendBuffer(u8A0.buffer);&#xA; &#xA; sourceBuffer.addEventListener(&#x27;updateend&#x27;, function() {&#xA; if (!sourceBuffer.updating &amp;&amp; mse.readyState === &#x27;open&#x27;) {&#xA; mse.endOfStream();&#xA; console.log(&#x27;Audio is ready to play!&#x27;);&#xA; }&#xA; });&#xA;} &#xA;</script>




The result is that there are no errors in the debug window and the audio element correctly shows the duration of the song, about two min and half. However, once I click Play, the duration shows 0 (zero) and the song is not played. If I try to pause and play again, the debug window says :


*"Uncaught (in promise) DOMException : The fetching process for the media resource was aborted by the user agent at the user's request".
*
This is the ffmpeg command I used to prepare the file :


ffmpeg -i m.wav -c:a aac -b:a 32k -f mp4 output.mp4


Any help would be well appreciated.
Thank you.


-
Révision 93293 : Fix https://core.spip.net/issues/3425 :
29 novembre 2015, par cedric@yterium.com- ajouter compresseur_embarquer_images_css a $GLOBALS[’spip_matrice’] pour permettre au compresseur de trouver le filtre
- utiliser chercher_filtre dans le processing de la css pour trouver les filtres ajoutes
- ajouter un argument $source_file a compresseur_embarquer_images_css pour lui permettre de trouver les images
- ajout d’une constante _CSS_EMBARQUE_FICHIER_MAX_SIZE par defaut a 16ko pour limiter la taille des images embarquees dans les CSS