
Recherche avancée
Autres articles (72)
-
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 (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (7589)
-
ffmpeg libfdk-aac open coder error and show The encoder timebase is not set
28 octobre 2019, par RodStewardI try to encode some pcm data,and I compile ffmpeg for myself with libfdk-aac,but When I use a aac encoder,It shows timebase is not set,but aac data seems not need a timebase,and even I set the timebase,it shows the same error again
here is the Initializationcode :
AVCodec *pCodec;
AVCodecContext *pCodecCtx = NULL;
int i, ret, got_output;
FILE *fp_in;
FILE *fp_out;
AVFrame *pFrame;
uint8_t* frame_buf;
int size = 0;
AVPacket pkt;
int y_size;
int framecnt = 0;
char filename_in[] = "tdjm.pcm";
AVCodecID codec_id = AV_CODEC_ID_AAC;
char filename_out[] = "tdjm.aac";
int framenum = 1000;
avcodec_register_all();
pCodec = avcodec_find_encoder_by_name("libfdk_aac");
if (!pCodec) {
printf("Codec not found\n");
return -1;
}
pCodecCtx = avcodec_alloc_context3(pCodec);
if (!pCodecCtx) {
printf("Could not allocate video codec context\n");
return -1;
}
//pCodecCtx->codec_id = codec_id;
pCodecCtx->codec_type = AVMEDIA_TYPE_AUDIO;
pCodecCtx->sample_fmt = AV_SAMPLE_FMT_S16;
pCodecCtx->sample_rate = 44100;
pCodecCtx->channel_layout = AV_CH_LAYOUT_STEREO;
pCodecCtx->channels = av_get_channel_layout_nb_channels(pCodecCtx->channel_layout);
pCodecCtx->bit_rate = 64000;
pCodecCtx->time_base = AVRational{1,10};
if (avcodec_open2(pCodecCtx, pCodec, NULL) < 0) {
printf("Could not open codec\n");
return -1;
} -
Recorded by FFMpeg Video doesn't show the statistics in details
28 novembre 2019, par okandnmzI use the FFMpeg to record the video I received as input with "Pipe". Although the recording process was successful after recording, no statistics, details are given in the details tab (Right click to recorded video -> properties -> details tab) (Windows 10)
My FFMpeg commands something like that :
ffmpeg -vsync 1 -i %PIPE% ....
For this problem, I’ve already tried the following commands :
-metadata ....
-vstats ......Probably i misunderstood that commands so in the result both of them is not working. Should i specify that values (title, fps, bitrate...) in somewhere and for that aim is there any commands ?
(the recorded video source is not the existing file, its live stream) -
FFmpeg : Adding multiple overlays to the video with the fade in/out effect. Command works but the images ( overlays ) doesn't show in the video
12 décembre 2019, par ArmKhI’m trying to add multiple overlays to the video and fade in/out them separately. So, the command works without any issue but in the video, I can’t see the overlay images
Here is the command with which I’m trying to do it
ffmpeg -y -i video.mp4 -loop 1 -i text1.png -loop 1 -i text2.png -loop 1 -i text3.png -loop 1 -i text4.png -loop 1 -i text5.png -filter_complex "
[1]fade=st=0:d=4:alpha=1,fade=out:st=2:d=1:alpha=1,trim=0:3,setpts=PTS+5/TB[ovr1];
[2]fade=st=0:d=4:alpha=1,fade=out:st=2:d=1:alpha=1,trim=0:3,setpts=PTS+10/TB[ovr2];
[3]fade=st=0:d=4:alpha=1,fade=out:st=2:d=1:alpha=1,trim=0:3,setpts=PTS+15/TB[ovr3];
[4]fade=st=0:d=4:alpha=1,fade=out:st=2:d=1:alpha=1,trim=0:3,setpts=PTS+20/TB[ovr4];
[5]fade=st=0:d=4:alpha=1,fade=out:st=2:d=1:alpha=1,trim=0:3,setpts=PTS+25/TB[ovr5];
[0:v][ovr1]overlay=0:0:enable='between(t,0,5)'[base1];
[base1][ovr2]overlay=0:(main_h-overlay_h)/2:enable='between(t,5,10)'[base2];
[base2][ovr3]overlay=0:(main_h-overlay_h)/2:enable='between(t,10,15)'[base3];
[base3][ovr4]overlay=0:(main_h-overlay_h)/2:enable='between(t,15,20)'[base4];
[base4][ovr5]overlay=0:(main_h-overlay_h)/2:enable='between(t,20,25)'[out]" -map "[out]" -c:v libx264 -c:a copy -flags +global_header -shortest with_overlays.mp4Can you please help me to find what am I doing wrong ?