
Recherche avancée
Autres articles (48)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (9135)
-
How to create ffmpeg mosaic with empty cells ?
7 septembre 2020, par DenVebberI try to create video mosaic with ffmpeg.


Two videos with horizontal stack :


ffmpeg -i vid1.mp4 -i vid2.mp4 -filter_complex "[0]scale=-1:1080[v0];[1]scale=-1:1080[v1];[v0][v1]hstack=inputs=2[vmap]" -map "[vmap]" output.mp4


How can I replace vid1.mp4 with black background and save the stack with 2 elements ?
I can add blackvideo.mp4, but it should be easier, right ?


-
What is the commmand line to record destop screen with watermark using ffmpeg ?
11 septembre 2020, par Yong JuI tried to record screen using ffmpeg commmand line. So, I have complete it using this commmand.
ffmpeg.exe -rtbufsize 1500M -f -y -rtbufsize 100M -f gdigrab -t 00:02:00 -framerate 30 0 0 -probesize 10M 1920 1080 -draw_mouse 1 -i desktop -c:v libx264 -r 30 -preset ultrafast -tune zerolatency -crf 30 -pix_fmt yuv420p output.avi".


Now, I want to add watermark while recording video.
If you have good experience this field, Please give me good advice.
Thanks for your attention.
Sincerely.


-
Libavcodec and QuickSync
15 février 2016, par FrancescoBLTI’m attempting to encode in h264 format using libavcodec with and without QuickSync hardware acceleration. If I don’t use the hw acceleration is quite simple :
ff_codec = avcodec_find_encoder(AV_CODEC_ID_H264) ;
ff_cdctx = avcodec_alloc_context3(ff_codec) ;
ff_cdctx->width = 1920;
ff_cdctx->height = 1080;
ff_cdctx->time_base.num = 1;
ff_cdctx->time_base.den = 25;
ff_cdctx->sample_aspect_ratio.num = 16;
ff_cdctx->sample_aspect_ratio.den = 9;
ff_cdctx->pix_fmt = AV_PIX_FMT_YUV420P;
av_dict_set(&param,"profile","main",0);
av_dict_set(&param,"preset","medium",0);
av_dict_set(&param,"tune","film",0)<0);
ff_cdctx->gop_size = 10;
ff_cdctx->max_b_frames = 1;
opres = avcodec_open2(ff_cdctx,ff_codec,&param);
ff_frame = av_frame_alloc();
ff_frame->format = ff_cdctx->pix_fmt;
ff_frame->width = ff_cdctx->width;
ff_frame->height = ff_cdctx->height;
opres = av_image_alloc(ff_frame->data, ff_frame->linesize,ff_cdctx->width,ff_cdctx->height,ff_cdctx->pix_fmt, 32);
ff_frame->linesize[0] = ff_cdctx->width;
ff_frame->linesize[1] = ff_frame->linesize[2] = ff_cdctx->width>>1;
ff_frame->sample_aspect_ratio.num = ff_cdctx->sample_aspect_ratio.num;
ff_frame->sample_aspect_ratio.den = ff_cdctx->sample_aspect_ratio.den;
av_init_packet(&pkt);
enc_err = avcodec_encode_video2(ff_cdctx,&pkt,ff_frame,&got_pkt); }And so on for all source frame. Problem arise when I attempt to use hardware
acceleration. In this case I use :ff_codec = avcodec_find_encoder_by_name("h264_qsv") ;
for gathering the codec. But when I attempt to open it, the result is "invalid parameter" :
opres = avcodec_open2(ff_cdctx,ff_codec,¶m) ;
if(opres<0)
if(av_strerror(opres,err_str,256)==0) OutputDebugStringA(err_str) ;
return -6 ;
Did anyone have attempted to use QuickSync from code ? In the examples there is only one file (qsvdec.c) and is for decoding, not for encoding.
regards