
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (76)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (9943)
-
palettegen : Fill with last color, not black
16 janvier 2019, par Tomas Härdinpalettegen : Fill with last color, not black
If we fill with black then the generated palette will have one color more
than what the user requested. This also resulted in unwanted black specks in
the output of paletteuse, especially when generating small palettes. -
Got black screen when recording screen by x11grab device
5 août 2019, par shawmzhuI’m trying to record video from a firefox run by
xvfb-run
but it always output nothing in the video file except black screen.Here’s what I did :
start a firefox, open google.com :
$ xvfb-run firefox https://google.com
Then it will use the default display server number 99. I can see the display information by command
xdpyinfo -display :99
.A screenshot works very well by command :
$ xwd -root -silent -display :99.0 | xwdtopnm |pnmtojpeg > screen.jpg
Start using ffmpeg to record a video :
$ ffmpeg -f x11grab -i :99.0 out.mpg
When I play the video file
out.mpg
, there’s black screen all the time.Is there any parameter I missed ?
-
ffmpeg decoding MP4 to Open GL texture black screen
5 septembre 2019, par DakiaiuI decoded a MP4 video and want to display the AVFrame via glTexImage2D and glTexSubImage2D but all I get is a blank GL Window.
I’ve tried looking at the various examples in the ffmpeg github examples tree. https://github.com/FFmpeg/FFmpeg/tree/master/doc/examples and different posts from the past and recently on this site learning slowly from them but I could not find anything I am doing wrong.
while(av_read_frame(format_context,packet) >= 0){
if(packet->stream_index == video_stream_index){
av_frame = decode(codec_context,av_frame,packet);
sws_context = sws_getContext(codec_context->width,codec_context->height,codec_context->pix_fmt,codec_context->width,codec_context->height,
AV_PIX_FMT_RGB24, SWS_BICUBIC,nullptr,nullptr,nullptr);
sws_scale(sws_context,
av_frame->data,
av_frame->linesize,
0,
codec_context->height,
gl_frame->data,
gl_frame->linesize);
sws_freeContext(sws_context);
if(first_use == true) {
glTexImage2D(GL_TEXTURE_2D,
0,
GL_RGB,
codec_context->width,
codec_context->height,
0,
GL_RGB,
GL_UNSIGNED_BYTE,
gl_frame->data[0]);
first_use = false;
}else{
glTexSubImage2D(GL_TEXTURE_2D,
0,
0,
0,
codec_context->width,
codec_context->height,
GL_RGB,
GL_UNSIGNED_BYTE,
gl_frame->data[0]);
}
}
}
while( glfwGetKey(window, GLFW_KEY_ESCAPE ) != GLFW_PRESS &&
glfwWindowShouldClose(window) == 0 );
}The frames decode successfully but I cannot see anything. It has to be something with the above gl code that I have done wrong. I can show the ffmpeg code above if necessary.