
Recherche avancée
Médias (1)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (62)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (7348)
-
Play a video with ffmpeg and SDL2 on a Raspberry Pi 5
18 février 2024, par aforinoI want to create a python script that decodes a h264 1080p video and outputs it via SDL2 on a Raspberry Pi 5. The Raspberry Pi 5 is able to play a h264 1080p video without problem using VLC. Total CPU load with VLC is about 10%. However decoding with ffmpeg and outputting via SDL2 uses around 70% CPU load. Since I want to be able to switch seamlessly between two output videos I will need to decode two videos at the same time. Therefore 70% CPU load for one transcoded 1080p video is not acceptable. How can I make the code more efficient and why is VLC so much more efficient ?


This is my current python script :


import numpy as np
import ffmpeg # ffmpeg-python
import sdl2.ext

in_file = ffmpeg.input('bbb1080_x264.mp4', re=None)

width = 1920
height = 1080

process1 = (
 in_file
 .output('pipe:', format='rawvideo', pix_fmt='bgra')
 .run_async(pipe_stdout=True)
)

sdl2.ext.init()
window = sdl2.ext.Window("Hello World!", size=(width, height))
window.show()
windowsurface = sdl2.SDL_GetWindowSurface(window.window)
windowArray = sdl2.ext.pixels3d(windowsurface.contents)

sdl2.ext.mouse.hide_cursor()

while True:
 in_bytes = process1.stdout.read(width * height * 4)

 if not in_bytes:
 break

 in_frame = (
 np
 .frombuffer(in_bytes, np.uint8)
 .reshape([height, width, 4])
 .transpose(1, 0, 2)
 )

 for event in sdl2.ext.get_events():
 if event.type == sdl2.SDL_QUIT:
 exit()

 windowArray[:] = in_frame
 window.refresh()

process1.wait()



Also it is interesting to note that when I start VLC on a Raspberry Pi 5 this is the output on the terminal


[00007fff78c1a550] avcodec decoder error: cannot start codec (h264_v4l2m2m)
Fontconfig warning: ignoring UTF-8: not a valid region tag
[00007fff68002d70] gles2 generic error: parent window not available
[00007fff68002d70] xcb generic error: window not available
[00007fff680013f0] mmal_xsplitter vout display: Try drm
[00007fff68002d70] drm_vout generic: <<< OpenDrmVout: Fmt=I420
[00007fff68002d70] drm_vout generic error: Failed to get xlease`



It indicates that VLC is not using the h264_v4l2m2m hardware acceleration.


-
Roadmap #3940 : Renvoyer sur spip_loader et non spip.net lorsqu’une nouvelle version est disponible
22 mai 2017, par Franck DHello :-)
Juste pour dire qu’il faudrait quand même comme une condition pour que le renvoi se fasse sur spip_loader, C’est que spip_loader lui même soit à jour !
Car spip_loader ne met à jour que spip, et non spip ET spip_loader... -
Anomalie #3072 : Suivre la configuration du reducteur
8 août 2014, par cedric -je crois que c’est même un peu plus vicieux que ça : sur un SPIP tout neuf ça ne le fait pas, mais une fois que tu as coché "génération automatique des miniatures des images." SPIP se met à faire des miniatures même si tu reviens en arrière sur le choix du réglage. Il y a un truc non reversible à cause d’une meta (je ne sais plus laquelle), et je suis d’accord qu’il faudrait corriger ça. En 3.1 plutot pour ne rien changer sur la version stable ?