
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (90)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (8220)
-
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^^
-
Revision 1fc0bde675 : Refactor selected partition size coding for rtc This commit makes a refactoring
21 février 2014, par Jingning HanChanged Paths :
Modify /vp9/encoder/vp9_encodeframe.c
Modify /vp9/encoder/vp9_pickmode.c
Refactor selected partition size coding for rtcThis commit makes a refactoring of the rtc_use_partition. It allows
the encoder to take a preferred block size for non-RD mode decision.
The boundary blocks are handled such that smaller block sizes that
fit in the boundary size will be used instread.In rtc mode, the coding performance of speed -6 for pedestrian_1080p
goes from
158980 b/f, 38.934 dB, 22721 ms to
159008 b/f, 40.064 dB, 23721 ms.For rtc set, the speed -6 compression performance is improved by
26%. Still about 2dB behind speed -5 at this point.Change-Id : If0944f0880eaf1ad340bc325d97cea8d0f9dd53f
-
id3v2 : fix doxy comment - ’machine byte order’ makes no sense on char arrays
22 octobre 2011, par Michael Karcherid3v2 : fix doxy comment - ’machine byte order’ makes no sense on char arrays