
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (36)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (8963)
-
how use pipe instead of save method in fluent-ffmpeg ?
27 juin 2019, par Mohsen RahnamaeiI gonna use fluent ffmpeg to write something on video
I use this codvar proc = ffmpeg(req.filePath). videoFilters(
{
filter: 'drawtext',
options: {
text: 'VERY LONG TEXT VERY VERY VERY VERY LOL!!!',
fontsize: 36,
fontcolor: 'white',
x: '(main_w/2-text_w/2)',
y: '(text_h/2)+15',
shadowcolor: 'black',
shadowx: 2,
shadowy: 2
}}
)
// use the 'flashvideo' preset (located in /lib/presets/flashvideo.js)
.on('end', function() {
console.log('file has been converted succesfully');
})
.on('error', function(err) {
console.log('an error happened: ' + err.message);
}).save('/home/gheidar/Desktop/ffmpeg_test/rt.ts');and everything is correct
but I want to export this output to stream for the response of the request
means that I want to usepipe()
instead ofsave
methodsomething like this :
var proc = ffmpeg(req.filePath). videoFilters(
{
filter: 'drawtext',
options: {
text: 'VERY LONG TEXT VERY VERY VERY VERY LOL!!!',
fontsize: 36,
fontcolor: 'white',
x: '(main_w/2-text_w/2)',
y: '(text_h/2)+15',
shadowcolor: 'black',
shadowx: 2,
shadowy: 2
}}
)
// use the 'flashvideo' preset (located in /lib/presets/flashvideo.js)
.on('end', function() {
console.log('file has been converted succesfully');
})
.on('error', function(err) {
console.log('an error happened: ' + err.message);
}).pipe(res)its just change in the last line
and I get this error :an error happened: ffmpeg exited with code 1: pipe:1: Invalid argument
how can export this ffmpeg command to stream response ????
-
How to save a vedostream on an event using ffmpeg
26 janvier 2015, par LudoI want to record short video sequences of an online stream (IP CCTV or Internet) on a defined event.
For example : I want to have two minutes before and one minute after an event occures stored in a output file.
Is it possible to do this using ffmpeg (avconv) and what are the parameters to use.
Thanks for your help !
-
I keep having the message "MovieWriter ffmpeg unavailable ; using Pillow instead." I want to save as MP4 an animation
6 décembre 2023, par EnrraI am doing an animation :


animation = FuncAnimation(fig, update, frames=len(time_values), interval=250, repeat=False)

with a simple frame update function, I want it save it as a MP4 format :

animation.save(f'{save_path}/heat_map.mp4', writer='ffmpeg', fps=10)


I get the error message "MovieWriter ffmpeg unavailable ; using Pillow instead."


I tried to do the following :


plt.rcParams['animation.ffmpeg_path'] ='C:\\ProgramData\\Anaconda3\\LIB\\site-packages\\ffmpeg'
FFwriter = animation.FFMpegWriter()
animation.save(f'{save_path}/heat_map.mp4', writer = FFwriter, fps=10)



This gets me an error message :


Traceback (most recent call last):
 File "Graph_V1-8.py", line 406, in <module>
 FFwriter = animation.FFMpegWriter()
AttributeError: 'FuncAnimation' object has no attribute 'FFMpegWriter'
</module>


and I also tried to do the following :

animation.save(f'{save_path}/heat_map.mp4', writer='ffmpeg', fps=10, codec='libx264')


which also get me the error :
"MovieWriter ffmpeg unavailable ; using Pillow instead."


When I write :


pip install ffmpeg
Requirement already satisfied: ffmpeg in c:\programdata\anaconda3\lib\site-packages (1.4)



Thank you in advance for your help