
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (33)
-
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 (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
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 (5091)
-
How to use hardware accelearation with ffmpeg
25 avril 2014, par ixSciI need to have ffmpeg decode my video(e.g. h264) using hardware acceleration. I’m using the usual way of decoding frames : read packet -> decode frame. And I’d like to have ffmpeg speed up decoding. So I’ve built it with
--enable-vaapi
and--enable-hwaccel=h264
. But I don’t really know what should I do next. I’ve tried to useavcodec_find_decoder_by_name("h264_vaapi")
but it returns nullptr.
Anyway, I might want to use others API and not just VA API. How one is supposed to speed up ffmpeg decoding ?P.S. I didn’t find any examples on Internet which uses ffmpeg with hwaccel.
-
Problems getting real width and height of videos
1er mai 2022, par EduardoI'm having a problem when I upload videos. The thing is that I record my videos with my cellphone in vertical way and when I download them to my computer or pass them through whatsapp they still look vertical, I can still watch them in vertical way as I recorded them, but when I try to upload them on my website using PHP and FFMPEG I always get horizontal resolutions.


I use this command to get the width of my videos :


$width = $video_attributes['width'] ;


The variable $video_attributes is an array that comes from a FFMPEG function that returns an array with the data related to the video.


Somebody could help me out with some ideas about what I'm doing wrong ?


I need to get the vertical resolution so my videos will be displayed in vertical containers in my website.


Thanks in advance :)


-
Convert AVStream PTS value to real time in seconds
15 janvier 2015, par KamleshThe below code snippet gets the PTS value of different frames from a video file
AVStream *stream = avctx->streams[avpkt.stream_index];
if ( 0 > ( err = avcodec_decode_video2 ( stream->codec, frame, &got_frame, &avpkt ) && got_frame ) )
{
int64_t pts = av_frame_get_best_effort_timestamp ( frame );
pts = av_rescale_q ( pts, stream->time_base, AV_TIME_BASE_Q );
}The PTS value that it returns are given below.
- 66733
- 100100
- 133467
Confusion is on the time format of the above values, whether they are in milliseconds or microseconds.
Is there any other way to get a real time PTS values of the frames, as these will be required for subtitle rendering