
Recherche avancée
Autres articles (47)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (4139)
-
create a movie in python [closed]
23 mai 2017, par masoudI have some files with names (’Den_car_resample’ +’_ sdf_ ’+ str(n)+’.dat’) where n changes from 0 to 25. I wrote a code to read these files and plots the results.
now I want to create a movie from these plots. at the end of the program, I used the avconv command to do that.
but, unfortunately my code creates a movie but it is empty.
I don’t know the reason exactly but I think, first, I have to define a frame to each plot and then create a movie.
can anyone please tell me how can I define a frame and also the add bit_rate of the movie.import sys
import subprocess
import sdf
import numpy as np
import matplotlib.pyplot as plt
import time
import matplotlib.animation as Animation
from matplotlib.font_manager import FontProperties
fp = FontProperties('Symbola')
##################### information from EPOCH input.deck
nx,ny= 1200, 1600
xmin=-100e-6
xmax = 110e-6
ymin = -200e-6
ymax = 200e-6
X =np.linspace(xmin,xmax,nx)
Y =np.linspace(ymin,ymax,ny)
#################
for n in range(0,25):
nstr = str(n)
######################..... reading Density of carbon
filename ="Den_car_resample" +'_sdf_'+ str(n)+'.dat'
with open(filename, 'rb') as f:
data = np.fromfile(f, dtype='float64', count=nx*ny)
Den_car = np.reshape(data, [ny, nx], order='F')
Den_car= np.log10(Den_car)
###################### Display Carbon density
fig = plt.imshow(Den_car, extent=[X.min()*1e6, X.max()*1e6, Y.min()*1e6,Y.max()*1e6], vmin=24, vmax=29, cmap='brg', aspect='auto')
plt.suptitle('Den_car')
plt.title('sdf '+ str(n)+'; Time= '+str(n*50)+'ps',color='green', fontsize=15)
plt.xlabel('x($\mu$m)')
plt.ylabel('y($\mu$m)')
plt.text(-80,-40,'Den_Carbon',color='red', fontsize=15)
plt.colorbar()
plt.savefig( 'fig%06d.png' % n, bbox_inches='tight')
plt.pause(.1)
plt.clf()
plt.close()
###################### Create movie
subprocess.call("avconv -framerate 1 -i fig%06d.png -c:v libx264 -profile:v high -crf 20".split())
sys.exit() -
create a movie in python [on hold]
22 mai 2017, par masoudI have some files with names (’Den_car_resample’ +’sdf’+ str(n)+’.dat’) where n changes from 0 to 25. I wrote a code to read these files and plots the results.
now I want to create a movie from these plots. at the end of the program, I used the avconv command to do that.
but, unfortunately my code creates a movie but it is empty.
I don’t know the reason exactly but I think, first, I have to define a frame to each plot and then create a movie.
can anyone please tell me how can I define a frame and also the add bit_rate of the movie.import sys
import subprocess
import sdf
import numpy as np
import matplotlib.pyplot as plt
import time
import matplotlib.animation as Animation
from matplotlib.font_manager import FontProperties
fp = FontProperties('Symbola')
##################### information from EPOCH input.deck
nx,ny= 1200, 1600
xmin=-100e-6
xmax = 110e-6
ymin = -200e-6
ymax = 200e-6
X =np.linspace(xmin,xmax,nx)
Y =np.linspace(ymin,ymax,ny)
#################
for n in range(0,25):
nstr = str(n)
######################..... reading Density of carbon
filename ="Den_car_resample" +'_sdf_'+ str(n)+'.dat'
with open(filename, 'rb') as f:
data = np.fromfile(f, dtype='float64', count=nx*ny)
Den_car = np.reshape(data, [ny, nx], order='F')
Den_car= np.log10(Den_car)
###################### Display Carbon density
fig = plt.imshow(Den_car, extent=[X.min()*1e6, X.max()*1e6, Y.min()*1e6,Y.max()*1e6], vmin=24, vmax=29, cmap='brg', aspect='auto')
plt.suptitle('Den_car')
plt.title('sdf '+ str(n)+'; Time= '+str(n*50)+'ps',color='green', fontsize=15)
plt.xlabel('x($\mu$m)')
plt.ylabel('y($\mu$m)')
plt.text(-80,-40,'Den_Carbon',color='red', fontsize=15)
plt.colorbar()
plt.savefig( 'fig%06d.png' % n, bbox_inches='tight')
plt.pause(.1)
plt.clf()
plt.close()
###################### Create movie
subprocess.call("avconv -framerate 1 -i fig%06d.png -c:v libx264 -profile:v high -crf 20".split())
sys.exit() -
ffmpeg & watermark issue on convert movie
27 mars 2017, par Sebastian Schweinsteafter update of WinFF i get error :
"C:\Program Files (x86)\WinFF\ffmpeg.exe" -t 0:00:25 -y -i "c:\Videos\temp\input.mpg" -f mp4 -r 14 -vcodec libx264 -coder 1 -flags +loop+cgop -cmp +chroma -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -me_method hex -subq 7 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 0 -qmax 69 -qdiff 4 -bf 3 -refs 3 -direct-pred 1 -trellis 1 -wpredp 2 -vf scale=240:180 -aspect 4:3 -maxrate 800k -bufsize 80k -b:v 400k -ar 44100 -b:a 80k -ac 2 -b 650k -vf "movie="c:\Videos\watermarklogo.png" [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" "c:\Videos\new\output.mpg"
error :
Filtergraph ’scale=240:180’ was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.vf/-af/-filter and -filter_complex cannot be used together for the same stream.
i downt know how to fix