
Recherche avancée
Autres articles (64)
-
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 (...) -
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 (...)
Sur d’autres sites (5528)
-
how to push a video list to rtmp server and keep connect
15 janvier 2016, par EphzentCurrent methods
ffmpeg -re -i 1.mp4 -f flv "rtmp://example.com/live"
ffmpeg -re -i 2.mp4 -f flv "rtmp://example.com/live"
ffmpeg -re -i 3.mp4 -f flv "rtmp://example.com/live"
...but 1.mp4 push done later , client and server will be disconnected.
i hope keep connect. -
Saving mp3 chunks as a file server-side
2 août 2022, par Ioannis L.I've been working lately on a project which takes a webm file and converts it to mp3 server side. So far I was getting the file, convert it in my server and then send a link to the user from which they could download the file. The user had to wait until the conversion was done.


Recently I came with the idea of streaming the file to the client-side and save it at the same time.


What I want to achieve is this : Stream the file to the client-side (chunk by chunk) and once the file stream has finished which means the conversion on the server has finished as well I can save the file.


I've tried this :


const { PassThrough } = require("stream");
const ffmpeg = require("fluent-ffmpeg");
const { writeFile } = require("fs");

let buffers = [];
const passThrough = new PassThrough();
res.setHeader("Content-Type", "`audio/mpeg");

ffmpeg(stream)
 .noVideo()
 .format("mp3")
 .audioBitrate(256)
 .on("error", (error) => console.log(error))
 .on("end", () => {
 res.end();
 buffers = buffers.join("");
 writeFile(`./files/test.mp3`, buffers, (err) => {
 if (err) console.log(err);
 });
 })
 .writeToStream(passThrough);

 passThrough.on("data", (chunk) => {
 buffers.push(chunk);
 res.write(chunk);
 });



What the issue is ? Let's say I convert a 2.50min webm video.


The file is streamed to the client side successfully and it is being saved as it should. It is also playable and the size of the file is around 5MB.


The file saved on the server though is around 9MB, it is saved as an mp3 file but when I try to listen to it, it gives me this error :


Audacity : "Audacity did not recognize the type of the file. Try installing FFmpeg."


Browser : "No video with supported format and MIME type found."


Windows Media Player : "We cannot open test.mp3. This may be because the file type is unsupported, the file extension is incorrect or the file is corrupt."


-
ffmpeg - Record Server Desktop Without Connection
21 janvier, par chrispI set up an application which uses ffmpeg to record a desktop on an Amazon AWS EC2 instance having Windows Server 2012 R2 installed. It records the desktop and puts the result into a file.



This works as long as a Remote Desktop or TeamViewer connection is active for that particular Amazon AWS EC2 instance. As soon as I close the Remote Desktop and TeamViewer connection the recording stops and continues as soon as I reconnect.



I assume that it's because the GPU doesn't deliver frames without a display in use.



How can I make sure that frames are constantly being rendered so that I can record them ?