
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (55)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (7227)
-
How can I start ffmpeg while playing a full screen game ?
11 janvier 2021, par Muhamed Shair benshairThis is a class of the ffmpeg :


using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Threading.Tasks; 
using System.IO; 
using System.Diagnostics; 
 
namespace Ffmpeg_App 
{ 
 class Ffmpeg 
 { 
 Process process; 
 
 public void Start(string FileName, int Framerate) 
 { 
 process = new System.Diagnostics.Process(); 
 process.StartInfo.FileName = @"D:\ffmpegx86\ffmpeg.exe"; // Change the directory where ffmpeg.exe is. 
 process.EnableRaisingEvents = false; 
 process.StartInfo.WorkingDirectory = @"D:\ffmpegx86"; // The output directory 
 process.StartInfo.Arguments = @"-f gdigrab -framerate " + Framerate + " -i desktop -preset ultrafast - pix_fmt yuv420p " + FileName; 
 process.Start(); 
 process.StartInfo.UseShellExecute = false; 
 process.StartInfo.CreateNoWindow = false; 
 Close(); 
 } 
 
 public void Close() 
 { 
 process.Close(); 
 } 
 } 
} 



And in form1 :


At the top :


Ffmpeg fmpeg = new Ffmpeg();



In a button click event :
To start :


private void Start_Click(object sender, EventArgs e) 
 { 
 fmpeg.Start("test.mp4", 24); 
 }



and to stop :


private void Stop_Click(object sender, EventArgs e) 
 { 
 fmpeg.Close(); 
 }



The problem is when I'm in full screen game I don't have access to the form and the buttons they are hidden in the background.


I need to make some global keys hook maybe ?


-
Matplotlib use Ffmpeg to save plot to be mp4 not include full step
21 décembre 2020, par 昌翰余I use ffmpeg to store the dynamic graph drawn on matplotlib, but the output file is only 2 seconds
but It should have been 30 seconds.
I set a graph to run three curves, a total of 30 seconds of data,
the graph that ran on the py file is normal,
but the output is only the first two seconds of the output.
May I ask if I missed something


Below is my code


import matplotlib.pyplot as plt
from matplotlib import animation
from numpy import random 
import pandas as pd
from matplotlib.animation import FFMpegWriter

FFwriter=animation.FFMpegWriter(fps=30, extra_args=['-vcodec', 'libx264'])
data = pd.read_csv('apple1.csv', delimiter = ',', dtype = None)
data = data.values
AccX1=[]
AccY1=[]
AccZ1=[]
AccX2=[]
AccY2=[]
AccZ2=[]

time = []

for i in range(600):
 AccX1.append(data[i][8])
 AccY1.append(data[i][9])
 AccZ1.append(data[i][10])
 AccX2.append(data[i][24])
 AccY2.append(data[i][25])
 AccZ2.append(data[i][26])
 
 time.append(data[i][0])
 
fig = plt.figure()
ax1 = plt.axes(xlim=(0,3000), ylim=(6,-6))
line, = ax1.plot([], [], lw=2)
plt.xlabel('ACC')
plt.ylabel('Time')

plotlays, plotcols = [3], ["r","g","b"]
lines = []
for index in range(3):
 lobj = ax1.plot([],[],lw=2,color=plotcols[index])[0]
 lines.append(lobj)


def init():
 for line in lines:
 line.set_data([],[])
 return lines

x1,y1 = [],[]
x2,y2 = [],[]
x3,y3 = [],[]



i=0

def animate(frame):
 global i
 
 i+=1
 x = i
 y = AccX1[i]

 x1.append(x)
 y1.append(y)

 x = i
 y = AccY1[i]
 x2.append(x)
 y2.append(y)

 x = i
 y = AccZ1[i]
 x3.append(x)
 y3.append(y)
 

 xlist = [x1, x2,x3]
 ylist = [y1, y2,y3]


 for lnum,line in enumerate(lines):
 line.set_data(xlist[lnum], ylist[lnum]) 


 return lines


anim = animation.FuncAnimation(fig, animate,
 init_func=init, blit=True,interval=10)
anim.save('test.mp4',writer=FFwriter)
plt.show()



The dynamic picture ran out using plt.show is correct.
And I don't think I have set the length of storage. Did I add something ?


-
swscale/utils : override forced-zero formats back to full range
10 octobre 2020, par Jan Ekströmswscale/utils : override forced-zero formats back to full range
Fixes vf_scale outputting RGB AVFrames with limited range flagged
in case either input or output specifically sets the range.This is the reverse of the logic utilized for RGB and PAL8 content
in sws_setColorspaceDetails.