
Recherche avancée
Médias (2)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (89)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)
Sur d’autres sites (10807)
-
ffmpeg save remote file to user's computer
18 mai 2018, par hmaxxI can cut and save a video from a remote server to my server using the below command :
ffmpeg -ss 00:00:30 -i "example.com/test.mp4" -t 00:00:09 -acodec copy -vcodec copy -async 1 -y out.mp4
I was wondering if I could prompt the user for a permission to save it on his computer instead of downloading it to my server. I will be using php with the exec function.
-
matplotlib funcanimation save issue
20 avril 2015, par Richie AbrahamI have been trying some animation recently using matplotlib animations. It has been going great, i create an ffmpeg writer and save it as a video file. However i face an issue whenever the function that FuncAnimation calls returns more than one object.
Below is a small snippet of my code base. When I return both im0 and im1, the video file created only has im1 , although the plt.show command works as expected ( showing both the videos ). If i return just a single im0, then it works as expected. IT also works as expected if i return both im0 and im1 with alpha=0.5.
Can anyone shed some light on what is happening underneath the hood ?
fig, ax = plt.subplots(1)
def animate(i):
im0=ax.imshow(np.ma.masked_array(imgl[i][:,:,0], mask=get_blob(i)),cmap='cubehelix')
im1=ax.imshow(imgl[(i-100)%len(imgl)][:,:,0],cmap='cubehelix')
return [im1,im0]
ani = animation.FuncAnimation(fig, animate, frames=200,
interval=10, blit=True,repeat=False)
ani.save('ps.mp4', writer=writer)
plt.show() -
ffmpeg how to save decoded audio data to pcm
21 avril 2015, par JasonI have succeed decode audio data from a mp4 using avcodec_decode_audio4, I want to save the decoded frames,so I tried below
if (got_frame) {
int size;
uint8_t *data;
int ref = 0;
ret = swr_convert(swr, &data, frame->nb_samples, (const uint8_t **)frame->extended_data, frame->nb_samples);
//fwrite(data, 1, frame->nb_samples, fp_audio);
ref++;
int szie = av_samples_get_buffer_size(NULL, 2, 1024, AV_SAMPLE_FMT_FLTP, 1);
for (int i = 0; i < frame->linesize[0]/4; i++)
{
fwrite(frame->data[0] + 4*i, 1, 4, fp_audio);
fwrite(frame->data[1] + 4*i, 1, 4, fp_audio);
ref++;
}
av_frame_unref(frame);
}but the pcm sounds strange, I also tried directed write as follows
fwrite(frame->data[0], 1, frame->linesize[0], fp_audio);
or :
fwrite(frame->data[0], 1, frame->linesize[0], fp_audio);
fwrite(frame->data[1], 1, frame->linesize[0], fp_audio);I know that the decoded pcm is AV_SAMPLE_FMT_FLTP
any help would be appreciated