
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (30)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (...)
Sur d’autres sites (5898)
-
ffmpeg vaapi - scale a video keeping the aspect ratio and padding with black lines
26 décembre 2022, par Rusty LemurI'm trying to use my Vega 11 GPU to perform hardware accelerated transcoding of some video files to a resolution of 1280x720. I would like to keep the original aspect ratio and add black bars to the borders as necessary. I can get the scaling to work with the following :


ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i input.mp4 -codec:v h264_vaapi -vf scale_vaapi=w=1280:h=720,setsar=1:1 output.mp4



But some of the image gets stretched with that, and the original aspect ratio is not preserved.


On the Raspberry Pi I can get the effect I want with the following :


ffmpeg -i input.mp4 -b:v 2M -vf scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:'(ow-iw)/2':'(oh-ih)/2',setsar=1 -vcodec h264_v4l2m2m -num_capture_buffers 128 output.mp4



But when I try to use the force_original_aspect_ratio and pad options with the vaapi codec, I get the following error :


ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i input.mp4 -codec:v h264_vaapi -vf scale_vaapi=w=1280:h=720,pad=1280:720:'(ow-iw)/2':'(oh-ih)/2',setsar=1:1 output.mp4

Impossible to convert between the formats supported by the filter 'Parsed_scale_vaapi_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0



Is there another option I should use to get the padding and keep the original aspect ratio ?


-
Trouble with ffmpeg_movie_from_frames in MoviePy - TypeError
19 octobre 2023, par user22731523I'm encountering an issue when using the
ffmpeg_movie_from_frames
function in MoviePy. Here's my code :

from moviepy.video.io.ffmpeg_tools import ffmpeg_movie_from_frames

input_folder = r"C:\Users\lenovo\Desktop\dist\images"
output_file = r"C:\Users\lenovo\Desktop\dist\v.mp4"
fps = 60.0

ffmpeg_movie_from_frames(output_file, input_folder, fps)



I'm getting a "TypeError : %d format : a real number is required, not str" error. How can I resolve this and successfully create a video from a series of images with the correct frame rate ?


Any help would be greatly appreciated. Thank you !


-
Restream RTSP stream and Record to files
12 mai 2017, par Aly2000Currently I digest a series of RTSP streams from IP cameras and transcode them to multiple output formats (MPEG DASH, HLS, RTSP) on AWS cloud using Wowza Streaming Engine. However, for the majority of these streams, the only required output is RTSP. I have to record these streams, while also re-streaming them through AWS due to limited bandwidth on the source network. I am trying to replace Wowza for the streams that only require RTSP to reduce costs. However, i cannot seem to find a suitable open source tool that will allow me to re-stream the RTSP stream (as RTSP) and in parallel record to chunked mp4 files (i.e every 10 minutes). I have tried ffmpeg & ffserver, but it seems like i cannot do both (re-stream and record) the RTSP streams.