
Recherche avancée
Médias (2)
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (50)
-
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 (...) -
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 -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (8186)
-
Cleaning up after av_frame_get_buffer
30 juillet 2022, par Jason CThere are two aspects of my question. I'm using libav, ffmpeg, 3.1.





First, how do you appropriately dispose of a frame whose buffer has been allocated with
av_frame_get_buffer
? E.g. :


AVFrame *frame = av_frame_alloc();
frame->width = ...;
frame->height = ...;
frame->format = ...;
av_frame_get_buffer(frame, ...);




Do any buffers have to be freed manually, beyond the call to
av_frame_free(frame)
? The documentation doesn't mention anything special, but in my experience the ffmpeg documentation often leaves out important details, or at least hides them in places far away from the obvious spots. I took a look at the code forav_frame_free
andav_frame_unref
but it branched out quite a bit and I couldn't quite determine if it covered everything.




Second, if something beyond
av_frame_free
needs to be done, then is there any catch-all way to clean up a frame if you don't know how its data has been allocated ? For example, assumingsomeBuffer
is already allocated with the appropriate size :


AVFrame *frame2 = av_frame_alloc();
frame2->width = ...;
frame2->height = ...;
frame2->format = ...;
av_image_fill_arrays(frame2->data, frame2->linesize, someBuffer, 
 frame2->format, frame2->width, frame2->height, 1);




Is there a way to free both
frame
andframe2
in the above examples using the exact same code ? That isframe
and its data should be freed, andframe2
should be freed, but notsomeBuffer
, since libav did not allocate it.

-
Play H.264 camera streams using OpenCV
26 octobre 2018, par peter benceHow to play
H.264
camera streams usingOpenCV
? I was searching for a while but i didn’t find an answer. I thinkOpenCV
can encode and decodeh.264
videos since it usesffmpeg
and it is the documentation of the classVideoWriter
ensures that as shown in this example :#include <iostream> // for standard I/O
#include <string> // for strings
#include <opencv2></opencv2>core/core.hpp> // Basic OpenCV structures (cv::Mat)
#include <opencv2></opencv2>highgui/highgui.hpp> // Video write
using namespace std;
using namespace cv;
int main()
{
VideoWriter outputVideo; // For writing the video
int width = ...; // Declare width here
int height = ...; // Declare height here
Size S = Size(width, height); // Declare Size structure
// Open up the video for writing
const string filename = ...; // Declare name of file here
// Declare FourCC code
int fourcc = CV_FOURCC('H','2','6','4');
// Declare FPS here
int fps = ...;
outputVideo.open(filename, fourcc, fps, S);
// Put your processing code here
// ...
// Logic to write frames here... see below for more details
// ...
return 0;
}
</string></iostream>So can
OpenCV
encode-decodeh.264
stream as well ? if yes, please let me know how. thanks !! -
MPEG-4 and alpha transparency - the ongoing saga
16 janvier 2016, par OrangeDogI’d like to reach some sort of definitive answer for the following questions :
- Is alpha transparency supported in MPEG-4-based codecs ?
- Is there any way to be reasonably certain that there is no alpha-channel from the output of
ffprobe
?
Some links I’ve found on the subject :
Also, transparent alpha layers, an optional part of the H.264 specification, are now supported in H.264-based QuickTime movies.
The support for alpha channel in the H.264 decoder is now available in Intel® Integrated Performance Primitives 6.0 version.
The MPEG4 Simple Studio Profile supports auxiliary channels, which could be used for alpha or depth — and presumably even displacement, motion vectors, normals, etc.
However, I’ve never seen a concrete example, or indeed any details on how you use these announced features.