
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (48)
-
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 -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (7384)
-
Generating videos with cv2 not working on ubuntu server
1er mars 2023, par CosmoI'm trying to generate a video from a series of jpg on an aws ubuntu instance. The video generation goes fine but when I download the video and try to play it I get this error from windows :


We can't open output.mp4. This may be because the file type is unsupported, the file extension is incorrect or the file is
corrupt.
0xC00D36C4



When I run the code on my windows machine I don't get the error and the video plays fine (code below) :


import cv2
import os

path = 'out_frames/'
out_video_name = 'output.avi'

pre_imgs = os.listdir(path)
# print(pre_imgs)
img = []

for i in pre_imgs:
 i = path+i
 # print(i)
 img.append(i)


size = (1000,1000)
# print(size)

video = cv2.VideoWriter('output.mp4', cv2.VideoWriter_fourcc(*'mp4v'), 24, size) #output video name, fourcc, fps, size

for i in range(len(img)):
 video.write(cv2.imread(img[i]))
 print('frame ', i+1, ' of ', len(img))

video.release()
print('Video made! Return to previous page to download')




I've tried :


- 

- Using different encoders
- reinstalling opencv -
sudo pip install opencv-contrib-python
- reinstalling ffmpeg -
sudo apt-get install ffmpeg
- installing these libraries -
sudo apt-get install libx264-dev
sudo apt-get install libx265-dev libnuma-dev
- experimented outputting .avi's instead of .mp4's












Edit :
This doesn't solve my problem but may help understanding it. I tried converting the 'broken' mp4's to an avi using a website and windows is able to play this avi with 1 caveat being the video is choppy (almost like the frames are missorderd ?)
note - when I generate the video files using the code on windows there's no choppy effect.


I'm at a loss.
Thanks in advance :)


-
matplotlib animation ArtistAnimation failure due to ffmpeg unavailable
23 octobre 2017, par OhmI am trying to call matplotlib.animation.ArtistAnimation to make an animation from a series of png images, but I get an error that is connected to the ffmpeg. I have Anaconda installed on my Ubuntu 14.04. The error message that I get is :
UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/home/ohm/anaconda2/lib/python2.7/site-packages/matplotlib/animation.py:782: UserWarning: MovieWriter ffmpeg unavailable
warnings.warn("MovieWriter %s unavailable" % writer)
...
File "/home/ohm/anaconda2/lib/python2.7/site-packages/matplotlib/animation.py", line 810, in save
writer.grab_frame(**savefig_kwargs)
File "/home/ohm/anaconda2/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/home/ohm/anaconda2/lib/python2.7/site-packages/matplotlib/animation.py", line 196, in saving
self.finish()
File "/home/ohm/anaconda2/lib/python2.7/site-packages/matplotlib/animation.py", line 389, in finish
+ ' Try running with --verbose-debug')
RuntimeError: Error creating movie, return code: 1 Try running with --verbose-debugI’ve tried
sudo apt-get install ffmpeg
, but there is no such package. Someone knows what package I’m missing ? -
matplotlib animation ArtistAnimation failure due to ffmpeg unavailable
18 juin 2016, par OhmI am trying to call matplotlib.animation.ArtistAnimation to make an animation from a series of png images, but I get an error that is connected to the ffmpeg. I have Anaconda installed on my Ubuntu 14.04. The error message that I get is :
UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/home/ohm/anaconda2/lib/python2.7/site-packages/matplotlib/animation.py:782: UserWarning: MovieWriter ffmpeg unavailable
warnings.warn("MovieWriter %s unavailable" % writer)
...
File "/home/ohm/anaconda2/lib/python2.7/site-packages/matplotlib/animation.py", line 810, in save
writer.grab_frame(**savefig_kwargs)
File "/home/ohm/anaconda2/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/home/ohm/anaconda2/lib/python2.7/site-packages/matplotlib/animation.py", line 196, in saving
self.finish()
File "/home/ohm/anaconda2/lib/python2.7/site-packages/matplotlib/animation.py", line 389, in finish
+ ' Try running with --verbose-debug')
RuntimeError: Error creating movie, return code: 1 Try running with --verbose-debugI’ve tried
sudo apt-get install ffmpeg
, but there is no such package. Someone knows what package I’m missing ?