
Recherche avancée
Autres articles (111)
-
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 (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Initialisation de MediaSPIP (préconfiguration)
20 février 2010, parLors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)
Sur d’autres sites (5379)
-
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). -
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 ?


-
iOS 17’s Impact on Marketing : Navigating Privacy Changes
22 septembre 2023, par Erin — Analytics Tips, Marketing