
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (80)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 ;
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (12470)
-
Is it possible to save an audio stream with pure JavaScript in the browser ?
8 juin 2016, par KonstantinI would like to make a webpage where visitors can save audio streams by clicking on links (not live streams, but links from a radio archive which uses streams), I want to do this without a server backend with pure JavaScript in the browser.
I read somewhere about the JavaScript port of FFMpeg, which can encode and save video / audio in the browser utilizing so called blobs. However download library is huge, as far as I remember 17 MB. In fact I would need only stream copying the audio streams, not a real encoding process.
I usually use similar commands to save a programme :ffmpeg -i http://stream.example.com/stream_20160518_0630.mp3 -c copy -t 3600 programme.mp3
I wonder, is it possible to compile a subset of FFMpeg into JavaScript which provides only the really needed stream copying ?
-
Revision 47a2154c0e : Move remaining per-frame data into partition 0 This commit moves a bit of data
17 octobre 2012, par John KoleszarChanged Paths : Modify /vp8/decoder/decodemv.c Modify /vp8/encoder/bitstream.c Modify /vp8/encoder/encodemv.c Move remaining per-frame data into partition 0 This commit moves a bit of data that ended up packed with the modes/mv/residual partition during the change to interleaved encoding into (...)
-
save matplotlib animation error
27 juillet 2017, par MattI created a program (see below) that takes position, force, and time from a pandas dataframe. The goal is to plot position vs force and animate it based on the time data associated with it.
The animation is working well so far but I cannot save the animation, either as a gif or mp4. I have read countless solutions online for this sort of problem but none seem to work.
I am using OS X El Capitan version 10.11.6 and python3.6. I used
brew install ffmpeg
andbrew install mencoder
. For both I get the errorFile "animation.py", line 73, in <module>
ani.save('test.mp4', writer=writer)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/animation.py", line 1009, in save
for a in all_anim]):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/animation.py", line 1009, in <listcomp>
for a in all_anim]):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/animation.py", line 1482, in new_saved_frame_seq
return itertools.islice(self.new_frame_seq(), self.save_count)
ValueError: Stop argument for islice() must be None or an integer: 0 <= x <= sys.maxsize.
</listcomp></module>I used
pip
to install the rest of my packages so maybe that is the root of the problem ?import matplotlib.pyplot as plt
import matplotlib.animation as animation
import pandas
import sys
TABLE = pandas.read_csv("Data.csv")
fig = plt.figure()
ax1 = fig.add_subplot(1,1,1)
xs=[]
ys=[]
def animate(interval):
time = interval
#convert to TIME series to int for handling purposes
TABLE.TIME = TABLE.TIME.astype(int)
if time in TABLE.TIME.unique():
POSIT_series = TABLE[TABLE.TIME == time].POSIT
POSIT_list = POSIT_series.tolist()
x = POSIT_list[0]
FORCE_series = TABLE[TABLE.TIME == time].FORCE
FORCE_list = FORCE_series.tolist()
y = FORCE_list[0]
xs.append(x)
ys.append(y)
ax1.clear()
ax1.plot(xs,ys)
elif time > TABLE.TIME.max():
sys.exit("Animation Done")
return
FRAMES= TABLE.TIME.astype(int).max()
plt.rcParams['animation.ffmpeg_path']='/usr/local/bin/ffmpeg'
writer = animation.FFMpegWriter()
ani = animation.FuncAnimation(fig, animate, interval=1, frames=FRAMES, repeat=False)
plt.show()
#same error for writer = 'mencoder' and writer ='ffpmeg
ani.save('test.mp4', writer=writer)