
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (49)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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 -
L’utiliser, en parler, le critiquer
10 avril 2011La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
Une liste de discussion est disponible pour tout échange entre utilisateurs.
Sur d’autres sites (8240)
-
Revision 603cdcfce5 : Merge "Fixed MFQE crash issue for highbit depth."
16 décembre 2014, par JackyChenMerge "Fixed MFQE crash issue for highbit depth."
-
Revision 020a1e7006 : Merge "avoid crash when using —best on cpus with SSE3 (but not SSE4) support"
10 décembre 2013, par Guillaume MartresMerge "avoid crash when using —best on cpus with SSE3 (but not SSE4) support"
-
FFmpeg sws_scale crash at certain resolution
23 mai 2016, par Tamás SzobonyaI’m having a weird issue with sws_scale. The problem is, that at certain resolutions i got an Access violation reading location exception. Resolutions like 1920x1080, 1600x900 works, but 1280x720 doesn’t ? This happens in a c++ cli code which is called from c#. Every project is x64 build (no Any CPU) on a Win7 x64.
c++ cli code :
void FFmpegWrapper::Codec::E(int width, int height, IntPtr dataIn, [Out] IntPtr %dataOut)
{
int ret;
AVFrame *f, *fIn, *fOut;
f = av_frame_alloc();
fIn = av_frame_alloc();
fOut = av_frame_alloc();
fIn->format = AV_PIX_FMT_RGB24;
fIn->width = width;
fIn->height = height;
ret = av_image_alloc(fIn->data, fIn->linesize, width, height, AV_PIX_FMT_RGB24, 32);
f->format = AV_PIX_FMT_YUV420P;
f->width = width;
f->height = height;
ret = av_image_alloc(f->data, f->linesize, width, height, AV_PIX_FMT_YUV420P, 32);
fOut->format = AV_PIX_FMT_RGB24;
fOut->width = width;
fOut->height = height;
ret = av_image_alloc(fOut->data, fOut->linesize, width, height, AV_PIX_FMT_RGB24, 32);
uint8_t *data = (uint8_t*)dataIn.ToPointer();
fIn->data[0] = data;
//with or without struct no difference
/*struct */SwsContext *convertCtx = sws_getContext(width, height, AV_PIX_FMT_RGB24, width, height, AV_PIX_FMT_YUV420P, 0, NULL, NULL, NULL);
// CRASH here
sws_scale(convertCtx, fIn->data, fIn->linesize, 0, height, f->data, f->linesize);
convertCtx = sws_getContext(width, height, AV_PIX_FMT_YUV420P, width, height, AV_PIX_FMT_RGB24, 0, NULL, NULL, NULL);
sws_scale(convertCtx, f->data, f->linesize, 0, height, fOut->data, fOut->linesize);
dataOut = (IntPtr)fIn->data[0];
}And its called from c# like this :
FFmpegWrapper.Codec test = new FFmpegWrapper.Codec();
Bitmap image = new Bitmap(w, h, PixelFormat.Format24bppRgb);
// Get a screenshot from the desktop
Screen.Capture(w, h, image, PixelFormat.Format24bppRgb);
Rectangle rec = new Rectangle(0, 0, image.Width, image.Height);
BitmapData bitmapData = image.LockBits(rec, ImageLockMode.ReadWrite, image.PixelFormat);
IntPtr ptr = bitmapData.Scan0;
IntPtr testptr1;
test.E(w, h, ptr, out testptr1);
// We never reach this with 1280x720 resolution
Bitmap bmp = new Bitmap(w, h, w * 3, PixelFormat.Format24bppRgb, testptr1);
bmp.Save(@"H:\sajt1.bmp", ImageFormat.Bmp);What i don’t understand is, how can it work with certain resolutions and crash with others ?
Using 20160512-git-cd244fa-win64 version of ffmpeg.Edit :
It seems, that changing AV_PIX_FMT_RGB24 to AV_PIX_FMT_BGR24 fixes it, but I’m not sure why. I know that .Net stores the pixels in bgr, but why does wrong format crashes it ? And only at some resolutions ?