
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (66)
-
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 -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (9321)
-
getting very bad image after encoding
20 avril 2012, par user1310596I am encoding images using avcodec_encode_video method and displaying them on subscriber demo of the Red5 media server.
The problem i am facing is that all the images which are being displayed are totally distorted and nothing is clearly visible. I think something might be wrong with the pix_fmt set in avcodec context.
Moreover image size is also quite large as 64000 bytes after encoding which I think is little weird
Please give me solution of this problem. Any help is appreciated. -
Replaced Image Processing plugin with a more generic File Processing plugin.
22 avril 2012, par Sebastian Tschanm README.md m index.html + js/jquery.fileupload-fp.js - js/jquery.fileupload-ip.js m js/jquery.fileupload-ui.js m js/main.js m package.json m test/index.html Replaced Image Processing plugin with a more generic File Processing plugin. The File Processing plugin exposes the "process" option, (...)
-
sws_scale YUV —> RGB distorted image
3 janvier 2015, par Sami susuI want to convert
YUV420P
image (received fromH.264
stream) toRGB
, while also resizing it, usingsws_scale
.
The size of the original image is480 × 800
. Just converting with same dimensions works fine.
But when I try to change the dimensions, I get a distorted image, with the following pattern :- changing to
481 × 800
will yield a distorted B&W image which looks like it’s cut in the middle 482 × 800
will be even more distorted483 × 800
is distorted but in color484 × 800
is ok (scaled correctly).
Now this pattern follows - scaling will only work fine if the difference between divides by 4.
Here’s a sample code of the way that I decode and convert the image. All methods show "success".
int srcX = 480;
int srcY = 800;
int dstX = 481; // or 482, 483 etc
int dstY = 800;
AVFrame* avFrameYUV = avcodec_alloc_frame();
avpicture_fill((AVPicture *)avFrameYUV, decoded_yuv_frame, PIX_FMT_YUV420P, srcX , srcY);
AVFrame *avFrameRGB = avcodec_alloc_frame();
AVPacket avPacket;
av_init_packet(&avPacket);
avPacket.size = read; // size of raw data
avPacket.data = raw_data; // raw data before decoding to YUV
int frame_decoded = 0;
int decoded_length = avcodec_decode_video2(g_avCodecContext, avFrameYUV, &frame_decoded, &avPacket);
int size = dstX * dstY * 3;
struct SwsContext *img_convert_ctx = sws_getContext(srcX, srcY, SOURCE_FORMAT, dstX, dstY, PIX_FMT_BGR24, SWS_BICUBIC, NULL, NULL, NULL);
avpicture_fill((AVPicture *)avFrameRGB, rgb_frame, PIX_FMT_RGB24, dstX, dstY);
sws_scale(img_convert_ctx, avFrameYUV->data, avFrameYUV->linesize, 0, srcY, avFrameRGB->data, avFrameRGB->linesize);
// draws the resulting frame with windows BitBlt
DrawBitmap(hdc, dstX, dstY, rgb_frame, size);
sws_freeContext(img_convert_ctx); - changing to