
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (112)
-
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 ;
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
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 (...)
Sur d’autres sites (10819)
-
problem in loading texture from AVFrame(android)
25 mars 2013, par SieuTrucI get a problem when loading data from AVFrame to openGL :
int target_width = 320;
int target_height = 240;
img_convert_ctx = sws_getContext(pCodecCtx->width, pCodecCtx->height,
pCodecCtx->pix_fmt,
target_width, target_height, PIX_FMT_RGBA, SWS_FAST_BILINEAR,
NULL, NULL, NULL);
if(img_convert_ctx == NULL) {
LOGE("could not initialize conversion context\n");
return;
}
sws_scale(img_convert_ctx, (const uint8_t* const*)pFrame->data, pFrame->linesize, 0, pCodecCtx->height, pFrameRGB->data, pFrameRGB->linesize);
//free(data);
int line=target_width*target_height*4;
data=(char*)malloc(line);
if (!data)
LOGE("create data frame fail");
LOGE("successful data");
filldata(data,pFrameRGB,target_width,target_height);with function filldata as :
static void filldata(char *data,AVFrame *pFrame,int w,int h)
{uint8_t *frameLine;
int yy;
int i=0;
for (yy = 0; yy < h; yy++) {
frameLine = (uint8_t *)pFrame->data[0] + (yy * pFrame->linesize[0]);
int xx;
for (xx = 0; xx < w; xx++) {
int in_offset = xx * 4;
data[i++] = frameLine[in_offset];
data[i++] = frameLine[in_offset+1];
data[i++] = frameLine[in_offset+2];
data[i++] = frameLine[in_offset+3];
}
}
}After that i use data to transfer to
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, *wi, *he, 0, GL_RGBA, GL_UNSIGNED_BYTE, (GLvoid*)data);
but it cannot show texture, maybe data above and data in function gltextimage2D are different.
Please help me figure out what is the format for gltextimage2D so i can configure data to show texture. OR anyone has some sample code to show me. -
Did not locate the video track for seeking
5 novembre 2018, par Bruce YoungI using android MediaPlayer to play some audios.It’s works 100% fine with the method seekTo() in some format like m4a(ffmpeg show the media info below) :
normal is the audio file nameBut when I use other format like matroska,webm,the seekTo()method always fail !(ffmpeg show the media info below)
seekbad is the audio file name
Okay,when the seekTo() fail the android studio console show some logs like this :
11-05 11:07:00.815 763-22357/? E/MatroskaExtractor: Did not locate the video track for seeking
Than I google the logs and find out the sourcecode in google git :
https://android.googlesource.com/platform/frameworks/av/+/304ef91624e12661e7e35c2c0c235da84a73e9c0/media/libstagefright/matroska/MatroskaExtractor.cppIn MatroskaExtractor.cpp some code like this :
// Always *search* based on the video track, but finalize based on mTrackNum
if (!pTP) {
ALOGE("Did not locate the video track for seeking");
return;
}I do not know why my media file ’Did not locate the video track for seeking’,Does anybody know it,Thanks a lot !
-
Combine .dash video and audio segments to .mp4
11 décembre 2019, par Mike StevensI was able to download some dash video segments (youtube-dl was apparently blocked from downloading the .mpd and just downloading, concatenating as normal) and was hoping to combine/concatenate them so I could watch in VLC, perhaps using ffmpeg. I was able to download the relevant .mpd and .ismc files, so I have all of the DASH video and audio segments, as well as the .mpd and .ismc downloaded and in one folder.
The video files are labelled as such
video=869000.dash
video=869000-0.dash
video=869000-600.dash
video=869000-1200.dashand the audio in a similar fashion
audio=96000.dash
audio=96000-0.dash
audio=96000-96225.dashWould anyone know of a way to combine all of these into one watchable video file ? AdobeHDS used to work great for combining fragments, and youtube-dl cleary has some sort of method to do it, but neither works with this particular .mpd. I don’t believe concatenate in ffmpeg will work, when I try to do that, it initializes the first .dash file (audio or video), but stops there.
When I try to put the .mpd file through ffmpeg, it returns "Failed to open an initialization section in playlist 0". I would’ve assumed this initialization was the video=869000.dash file though (which is the one segment file that ffmpeg does recognize) ?