
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
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 (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)
Sur d’autres sites (9342)
-
FFMPEG GIF without loop, without transparency
4 janvier 2019, par WallieI use the following bash file in Terminal to transcode video files to high quality gifs.
#!/bin/sh
palette="/tmp/palette.png"
filters="fps=25,scale=576:-1.78:flags=lanczos"
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v]
paletteuse" -y $2Right now a 6 second video ends up as a 10 second gif. Which is a bit odd since the framerate matches. I guess it’s due to looping.
Is it possible to add a simple filter that prevents looping.
And also a filter that prevents transparency ?
Source is a prores422 file.
-
Ffmpeg error : Rotate thumbnail image of video
9 septembre 2016, par user3418135Iam using ffmpeg to generate thumbnail image from a video .mov (uploaded from iPhone)
This is PHP code on live server to generate :
public static function generateThumbnail($inputUrl, $outputUrl) {
$cmd = "ffmpeg -i ".$inputUrl." -ss 00:00:01 -vframes 1 -s 200x200 ".$outputUrl;
exec($cmd);
}On live server (CentOS 6.5) : If I run this cmd in terminal, it working. But if I run by calling above function php then thumbnail image will be rotated -90 degrees.
If i run two cases on localhost (LinuxMint 17.2) then all ok.
Thanks all.
-
Running matplotlib animation on Mac using Spyder : says to install ffmpeg
28 avril 2017, par AddemI installed Anaconda on a new Mac, made a simple animation with matplotlib like
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import animation
fig = plt.figure()
ax = plt.axes(xlim=(0, 2), ylim=(-2, 2))
line, = ax.plot([], [], lw=2)
def init():
line.set_data([], [])
return line,
def animate(i):
x = np.linspace(0, 2, 1000)
y = np.sin(2 * np.pi * (x - 0.01 * i))
line.set_data(x, y)
return line,
anim = animation.FuncAnimation(fig, animate, init_func=init,
frames=200, interval=20, blit=True)
anim.save('basic_animation.mp4', fps=30, extra_args=['-vcodec', 'libx264'])
plt.show()When I run it, it tells me to install ffmpeg. I tried using these instructions : http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html But the instructions were unclear about what I was supposed to download, especially when it got to the part about a "patch". This also just feels insanely complicated for something that seems like it should be much simpler. I also tried following some instructions for installing ffmpeg using Homebrew but the instructions were again poorly written so that some of the buttons it said should be there weren’t. I tried to figure it out by guessing what I should do, and it seemed to work but with a lot of warning messages. By the end of the process, when I type into a terminal
which ffmpeg
it returns
/usr/local/bin/ffmpeg
. However, even after restarting Spyder and re-running the code, it still tells me to install ffmpeg. I also navigated to/usr/local/bin
and it doesn’t have a folderffmpeg
. So my guess is that ffmpeg didn’t install.I read in the matplotlib documentation that Anaconda doesn’t give a build for Python that is appropriate, something about a "framework" build (http://matplotlib.org/faq/osx_framework.html). But it says that in Anaconda you can install it easily by running
conda install python.app
which I did and it worked. It then says to usepythonw
rather thanpython
. I’m not really sure what this means, because in Spyder I don’t run scripts from the terminal. I tried navigating to the file anyway and running it withpythonw anim.py
and it mysteriously gave me an I/O error.
Do I really need to install ffmpeg or is there some simpler fix ?
If I do need to install ffmpeg, where get I get up-to-date instructions that make the process clear ?