
Recherche avancée
Autres articles (60)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 (...) -
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
Sur d’autres sites (14066)
-
How to transform dpx format with data as yuv format with ffmpeg ?
2 août 2018, par StevenI would like to transform a picture of yuv format into dpx format. Its seems that the default data format of dpx is RGB, but I hope that I can get a picture of dpx format with its data part as yuv444 planar format. What is the correctc command in ffmpeg on the issue mentioned above ?
Thanks
-
Saving raw YUV420P frame FFmpeg/Libav
14 mars 2016, par Sir DrinksCoffeeALotPreviously i successfully opened, decoded and saved frames from
.mp4
file. Raw frames were inYUV420P
format which i converted toRGB24
usingsws_scale()
function and saved them into a.ppm
file. What i’m trying to do now is to keep raw decoded frames inYUV420P
, or convert frames that i get toYUV420P
just to make sure they are inYUV420P
. But the problem is that i don’t know which type of file should i use, i’m guessing.yuv
? And another problem is that i also don’t know how to saveYUV420P
data.I used to save
RGB24
in.ppm
like this :for (y = 0; y < height; y++)
{
fwrite(frame->data[0] + y*frame->linesize[0], 1, width * 3, pf);
}which worked fine since i was using only 1 plane. But
YUV420P
uses 3 planes (Y,Cb,Cr). What i tried to do is to save Y component first, and Cb/Cr after that.for (y = 0; y < height; y++)
{
fwrite(frame->data[0] + y*frame->linesize[0], 1, width, pf);
}
for (y = 0; y < height / 2; y++)
{
fwrite(frame->data[1] + y*frame->linesize[1], 1, width, pf);
fwrite(frame->data[2] + y*frame->linesize[2], 1, width, pf);
}But as you can guess that is not working at all. Actually it does, but it saves only Y component. Could anyone guide me to right direction please ?
EDIT
I’ve changed minesaveFrame()
function like you said, but instead of interleaved chroma writing i used planar. But, i’m still getting only Y component picture (black-white).fprintf(pf, "P5\n%d %d\n255\n", width, height);
for (y = 0; y < height; y++)
{
fwrite(frame->data[0] + y*frame->linesize[0], 1, width, pf);
}
for (y = 0; y < height / 2; y++)
{
fwrite(frame->data[1] + y*frame->linesize[1], 1, width / 2, pf);
}
for (y = 0; y < height / 2; y++)
{
fwrite(frame->data[2] + y*frame->linesize[2], 1, width / 2, pf);
} -
avutil : add P010 pixel format
8 décembre 2015, par Hendrik Leppkes