
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (72)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (...) -
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 (...)
Sur d’autres sites (11619)
-
Nomenclature #4626 : Renommer le menu "Squelettes"
30 avril 2021, par RastaPopoulos ♥Au départ c’était censé être une 3.3 donc faible changement.
Finalement on est sur une 4.0 où on annonce de gros changements dont plein de choses dans l’admin.
Je pense donc que c’est parfaitement l’occasion de faire ce changement pour cette entrée. Et que donc la nouvelle version soit plus compréhensible par plus de monde directement.
-
ffmpeg got black and white video when encoding flv
17 décembre 2012, par samyoui searched the site and got a post :
getting black and white image after encoding
but i got no answer.don't know how but it is all black and white.
hear is the init code :
JNIEXPORT jboolean JNICALL Java_sam_flvmuxer_SamRTMPNative_nativeInitMuxerAndStart(
JNIEnv *env, jclass jcls, jstring outfile, jint inwidth, jint inheight,
jint fps) {
audioOutBuffer = malloc(AUDIO_OUT_BUFFER_SIZE);
videoOutBuffer = malloc(VIDEO_OUT_BUFFER_SIZE);
VIDEO_WIDTH = inwidth;
VIDEO_HEIGHT = inheight;
av_log_set_callback(samffmpeglogback);
av_register_all();
char *filepath = (*env)->GetStringUTFChars(env, outfile, 0);
JNILOG("file path is %s",filepath);
avformat_alloc_output_context2(&avFormatContext, NULL, NULL, filepath);
if (!avFormatContext) {
JNILOG("avformat_alloc_output_context2 with filepath failed");
return JNI_FALSE;
}
AVOutputFormat *fmt = avFormatContext->oformat;
//fmt->video_codec = VIDEO_CODEC_ID;
////init video
avVideoStream = avformat_new_stream(avFormatContext, NULL );
if (!avVideoStream) {
(*env)->ReleaseStringUTFChars(env, outfile, filepath);
return 0;
}
AVCodec *videocodec = avcodec_find_encoder(VIDEO_CODEC_ID);
if (!videocodec) {
JNILOG("avcodec_find_encoder error");
return JNI_FALSE;
}
avcodec_get_context_defaults3(avVideoStream->codec, videocodec);
AVCodecContext *avVideoCodecContext = avVideoStream->codec;
avVideoCodecContext->codec_type = AVMEDIA_TYPE_VIDEO;
avVideoCodecContext->codec_id = VIDEO_CODEC_ID;
avVideoCodecContext->width = inwidth;
avVideoCodecContext->height = inheight;
avVideoCodecContext->time_base.den = fps;
avVideoCodecContext->time_base.num = 1;
avVideoCodecContext->gop_size = 10;
avVideoCodecContext->pix_fmt = PIX_FMT_YUV420P;
JNILOG("bitrate befort set = %d",avVideoCodecContext->bit_rate);
avVideoCodecContext->bit_rate = 600000;
if (fmt->flags & AVFMT_GLOBALHEADER)
avVideoCodecContext->flags |= CODEC_FLAG_GLOBAL_HEADER;
av_dump_format(avFormatContext,0,filepath,1);
if(avcodec_open2(avVideoCodecContext,videocodec,NULL)<0)
{
JNILOG("video avcodec_open2 failed");
(*env)->ReleaseStringUTFChars(env, outfile, filepath);
return JNI_FALSE;
}
///////
/* open the output file, if needed */
if (!(fmt->flags & AVFMT_NOFILE)) {
if ((avio_open(&avFormatContext->pb, filepath, AVIO_FLAG_WRITE)) < 0) {
JNILOG("Could not open file!");
(*env)->ReleaseStringUTFChars(env, outfile, filepath);
return 0;
}
}
if (avformat_write_header(avFormatContext, NULL ) < 0) {
JNILOG("Could not avformat_write_header!");
(*env)->ReleaseStringUTFChars(env, outfile, filepath);
return 0;
}
(*env)->ReleaseStringUTFChars(env, outfile, filepath);
YUVFrame = avcodec_alloc_frame();
JNILOG("ffmpeg every thing inited");
return JNI_TRUE;
}and encode code looks like below :
avpicture_fill((AVPicture *)YUVFrame,framedata,PIX_FMT_YUV420P,VIDEO_WIDTH,VIDEO_HEIGHT);
///打印data 分量!!!!
AVPacket pkt;
av_init_packet(&pkt);
pkt.data = videoOutBuffer;
pkt.size = VIDEO_OUT_BUFFER_SIZE;
int gotpkt = 0;
avcodec_encode_video2(avVideoStream->codec,&pkt,YUVFrame,&gotpkt);
if (gotpkt > 0) {
JNILOG("encoded size=%d,gotpktflag=%d",pkt.size,gotpkt);
pkt.stream_index = avVideoStream->index;
pkt.flags |= AV_PKT_FLAG_KEY;
pkt.pts = timestamp;
while (pkt.pts <= lastVideoPts) {
pkt.pts++;
}
lastVideoPts = pkt.pts;
if (av_interleaved_write_frame(avFormatContext, &pkt) < 0) {
JNILOG("av_interleaved_write_frame failed");
}
}someone please help me with this problem^^
-
create a zoom pad effect with ffmpeg but instead of black background put a image background ?
16 juin 2018, par MIGHTDUYi need to create a zoom effect with frame image background instead of black background
how is possible this
please help me
this is my command
ffmpeg -i duke2.jpg -filter_complex "pad= w=560:h=200:x='(ow-iw)/2':y='(oh-ih)/2',zoompan= z='zoom+0.002':d=25*4:s=1280x800" -pix_fmt yuv420p -c:v libx264 zzout.mp4