
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 (74)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (6166)
-
problem in concatenating mass online video urls using ffmpeg [duplicate]
25 mai 2021, par JohnTerryI want to
concat
n number of videos together usingffmpeg
which can also have more than one codec or different resolutions.
I know how to do it with fixed number of videos butinput_videos.txt
can contain any unknown number of videos. I checked relative posts but they did not have a solution for my problem.

the command i am using for concatenating videos is -


cmd = "ffmpeg -safe 0 -f concat -protocol_whitelist file,http,https,tcp,tls,crypto -segment_time_metadata 1 -i {} -vf select=concatdec_select,scale=1280:720 -af aselect=concatdec_select,aresample=async=1 -c:v libvpx-vp9 -deadline good -cpu-used 5 -c:a libopus {}".format(input_videos.txt, output_video.webm)



Is there a way to achieve the functionality i want ?


-
What is White Label Analytics ? Everything You Need to Know
6 février 2024, par Erin -
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^^