
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 (70)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (7216)
-
merge multiple audio with delay in ffmpeg [duplicate]
4 août 2019, par Mohammadreza JanipourThis question already has an answer here :
I want to use FFMPEG to merege multiple audios in this ffmpeg command :
-i audio1.mp3 -i audio2.mp3 -i audio3.mp3 -filter_complex amix=inputs=3:duration=first output_audio.mp3
But i want audio1.mp3 play at start time and audio2.mp3 start after 2 seconds and audio3.mp3 start after 5 seconds.
What should I do ? Please help me. Thanks
-
How to use Python (For example, ffmpeg or moviePy) to split large video to display on multiple screen [on hold]
27 juillet 2019, par Chen ClarenceI am trying to find resources to split a very long (1080*15360) video into 8 1080p videos of the same time length. Is there anything that could achieve this, or even better allows control over each pixel(use a function to cover part of my video with a black circle). Right now I have to brute force it, such as the following, but I’m sure there are much more efficient methods. Thanks in advance !
cap=cv2.VideoCapture('sample.avi')
#inputs & check for error
numberOfScreens=8
screenArrangement=(1,8)
if (numberOfScreens!=(screenArrangement[0]*screenArrangement[1])):
raise ValueError('The screen arrangement does not match the number of scrrens')
exit(0)
currentFrame=0
originalFrames=[]
while(True):
#reading frames
ret,frame=cap.read()
if not ret:
break
height, width, layers = frame.shape
unitHeight=(int)(height/screenArrangement[0]) #reduce this to outside loop
unitWidth=(int)(width/screenArrangement[1])
#cutting frames into desired size
for i in range(screenArrangement[0]):
for j in range(screenArrangement[1]):
try:
if not os.path.exists('Screen'+str(i*screenArrangement[0]+j+1)):
os.makedirs('Screen'+str(i*screenArrangement[0]+j+1))
print('creating directory '+'Screen'+str(i*screenArrangement[0]+j+1))
except OSError:
print ("Error Creating Directory")
name='./Screen'+str(i*screenArrangement[0]+j+1)+'/frame'+str(currentFrame)+'.png'
cropImg = frame[(i*unitHeight):((i+1)*unitHeight), (j*unitWidth):((j+1)*unitWidth)]
print('creating'+name)
#saving cropeed frames
cv2.imwrite(name, cropImg,[cv2.IMWRITE_PNG_COMPRESSION, 0])
currentFrame+=1
Frames=currentFrame
#setting up the writer object
fourcc = cv2.VideoWriter_fourcc(*'XVID')
writer=cv2.VideoWriter('Screen1.avi', fourcc, 30, (unitWidth, unitHeight), True)
#write the video
for i in range(Frames):
img=cv2.imread('./Screen1/frame'+str(i)+'.png')
writer.write(img)
writer.release()
cap.release()
cv2.destroyAllWindows() -
ffmpeg : record/capture stream and do scene detection at the same time
2 août 2022, par AnodeCathodeIs it possible to both capture (record) an RTSP stream and capture scene change events using a single ffmpeg command ? I can almost do what I want with :



ffmpeg -i 'rtsp://mystream' \
-map 0:v -map 0:a -c:v copy -c:a copy -f segment \
-segment_time 300 -segment_format matroska -strftime 1 "%Y%m%d%H%M%S_video.mkv" \
-map 0:v -an -filter:v "select='gt(scene,0.1)'" -frames:v 1 "%Y%m%d%H%M%S_scenechange.png"




This gives me nice 300s stream segments saved to disk, and a scene.png when a scene change is detected. However, scene.png only appears when I terminate the process, and when I do, I only get the last scene event. Ideally I'd like to get a new PNG (or even better, a short video clip) anytime a scene change is detected, without interrupting the recording of video.mkv. I'm sure it can be done with pipes and multiple ffmpeg commands, but for simplicity's sake (and mostly my own curiosity at this point), I'd like to see what can be done with just a single process.