
Recherche avancée
Médias (91)
-
DJ Z-trip - Victory Lap : The Obama Mix Pt. 2
15 septembre 2011
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (49)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
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 (5096)
-
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.


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


-
Having issues finding the options to lower Quality with Animation Codec
1er octobre 2018, par Necessary NullI’m trying to find if its possible to specify quality when converting to animation codec.
I’ve used this bit of code and don’t see anything about quality.
ffmpeg -h encoder=qtrle
I know this is my generic command to get to animation codec
ffmpeg -i input.mp4 -codec copy -c:v qtrle output.mov
Any advice ?