
Recherche avancée
Autres articles (65)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (7767)
-
iOS 17’s Impact on Marketing : Navigating Privacy Changes
22 septembre 2023, par Erin — Analytics Tips, Marketing -
How to read raw audio data using FFmpeg ?
6 juin 2020, par Yousef AlaqraI'm trying to use this command to get the audio stream using UDP :



ffmpeg -i udp://192.168.1.1:6980 -acodec copy




I got an error when I execute it, which says :



[udp @ 00000157a76b9a40] bind failed: Error number -10048 occurred
udp://192.168.1.1:6980: I/O error




What's the meaning of this error ?



Update :



I was able to read raw audio data using FFmpeg and output into a wave file, using the following command :



ffmpeg -f u16be -ar 44100 -ac 2 -i 'udp://127.0.0.1:1223' output.wav




The problem now, Sine there is surrounding metadata in the network packets being received, it needs to be stripped out or it will result in noise.



In C# I used Skip() to trim the first 28 bytes of the received packet, how would I achieve this using FFmpeg ?



Update :



I was able to read the raw bytes from UDP packets using by executing child process in node js :



var http = require("http");
var port = 8888;
var host = "localhost";
var children = require("child_process");

http
 .createServer(function (req, res) {
 //ffmpeg -f s16le -ar 48000 -ac 2 -i 'udp://192.168.1.230:65535' -b:a 128k -f webm -
 var ffm = children.spawn(
 "ffmpeg",
 "-f s16le -ar 48000 -ac 2 -i udp://192.168.1.230:65535 -b:a 128k -f webm -".split(
 " "
 )
 );

 res.writeHead(200, { "Content-Type": "audio/webm" });
 ffm.stdout.on("data", (data) => {
 console.log(data);
 res.write(data);
 });
 })
 .listen(port, host);

console.log("Server running at http://" + host + ":" + port + "/");




As you can see in the code sample above, I'm trying to pipe the output of the child process into the response, so I would be able to hear the audio in the browser.



I'm receiving the data, after executing the child process, but the browser unable to play audio for some reason that I need to figure it out.



Do you have an idea of what am I missing ?


-
lavc : Use hardware config information in ff_get_format()
26 octobre 2017, par Mark Thompsonlavc : Use hardware config information in ff_get_format()
This removes the dependency that hardware pixel formats previously had on
AVHWAccel instances, meaning only those which actually do something need
exist after this patch.Also updates avcodec_default_get_format() to be able to choose hardware
formats if either a matching device has been supplied or no additional
external configuration is required, and avcodec_get_hw_frames_parameters()
to use the hardware config rather than searching the old hwaccel list.The FF_CODEC_CAP_HWACCEL_REQUIRE_CLASS mechanism is deleted because it
no longer does anything (the codec already contains the pointers to the
matching hwaccels).