
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (35)
-
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 -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
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 (...)
Sur d’autres sites (7373)
-
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 ?