
Recherche avancée
Médias (2)
-
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 (34)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (10636)
-
How to encode a HEVC video from YUV420 Mat data (from a hardware triggered camera) via FFmpeg in Python
4 juillet 2023, par QuantumRiverI am having problems encoding a HEVC video from a series of YUV420 Mat data via FFmpeg.


- 

- I am using python in Ubuntu-20.04 ;
- I am retrieving frame data from a hardware triggered camera (BASLER), using pypylon ;
- I want to write a video from that camera in HEVC codec, using my GPU-NVENC ;
- I guess I have to use FFmpeg to achieve these ;










What I have tried :


- 

- I find that FFmpeg supports encoding from a camera, but it seems to only support webcams, not the camera I use (hardware triggered BASLER cameras with pypylon APIs) ;
- I find that FFmpeg supports transfering a video from one codec to another, which is not my case ;
- I find that FFmpeg supports encoding a video from a series of jpeg images. But in my case, it will be inefficient if I first save each frame into a picture and then encode them into a video ;
- The frame data retrieved from camera can be converted to YUV420 (directly from pypylon), which is suitable for HEVC encoding ;
- I learnt that the basic unit in FFmpeg to encode a video is AVFrame. I guess I have to first turn my YUV420 data into AVFrame, then encode AVFrames into HEVC ;
- But I do not know how to achieve that in python.














My simplified and expected codes :


camera = pylon.InstantCamera(tlf.CreateFirstDevice())
converter = pylon.ImageFormatConverter()
converter.OutputPixelFormat = pylon.PixelType_YUV420
video_handle = xxxxxx # HEVC
while True:
 grabResult = camera.RetrieveResult(timeout, pylon.TimeoutHandling_ThrowException)
 image = converter.Convert(grabResult).GetArray()
 video_handle.write(frame) # encode into a hevc video via ffmpeg in NVENC



-
sorting numerically while creating video for ffmpeg [closed]
9 février 2024, par kstnI have a series of figures with name particles_[time].jpg such as


particles_0.03101765477.jpg
particles_3.1327831317.jpg
particles_6.2345486087.jpg
particles_9.3363140857.jpg



The time is increasing but it has real values. When I used ffmpeg to generate gif with


ffmpeg \
 -framerate 60 \
 -pattern_type glob \
 -i 'figures/particles_*.jpg' \
 -r 15 \
 -vf scale=512:-1 \
 out.gif \
;



, the files are not read in the correct sequential order. How can I fix that ?


-
Merging Many Webms With FFMPEG
10 août 2016, par cfogWe’ve been trying to merge multiple
webms
together so that they play in series in a newwebm
usingFFMPEG
. Thesewebms
are from multiple sources (webcams), so the resolution will vary.We’re using these options, it works perfectly for 3 files. But, we need to be able to do it for n number video files.
-filter_complex "[1:v]scale=640:-1[v1]; [0:v][0:a][v1][1:a][2:v]
[2:a]concat=n=3:v=1:a=1[v][a]" -map "[v]" -map "[a]"