
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (54)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
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. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (4518)
-
Burn in delayed subtitles
11 février 2017, par sygiI would like to burn subtitles into a video file using a console program. Previously I used
ffmpeg
to do that :ffmpeg -i input.mkv -vf subtitles=sub.srt -strict -2 out.mp4
However, I am having problems when my subtitles are delayed with regard to the movie. I looked into
-ioffset
option andsetpts
filter, but they allow me move the video, but I’d like the video timing to stay unchanged and only burn in the subtitles in a delayed manner.Is there a way to do it in
ffmpeg
(I suppose no, as burning subtitles is a filter and I don’t see a way to "change" a behavior of filters, but I haven’t looked at all of them) ? If not, is there an easy-to-use console program which would delay the subtitles before burning them in ? -
How to apply multiple filters on a frame by AVFilterGraph of FFMPEG in c++
26 juillet 2022, par hameed abbasiI'm trying to do a "crop" and then "eq" filter on an AVFrame but seems i don't understand AVFiltergraph syntax. here is the code :


AVFrame *FFmpegDecoder::cropFrame(AVFrame *frame, int left, int top, int right, int bottom) {
AVFilterContext *buffersink_ctx;
AVFilterContext *buffersrc_ctx;
AVFilterGraph *filter_graph = avfilter_graph_alloc();
AVFrame *f = av_frame_alloc();
AVFilterInOut *inputs = NULL, *outputs = NULL;
char args[512];
int ret;
auto out_w = frame->width - left - right;
auto out_h = frame->height - top - bottom;
snprintf(args, sizeof(args),
 "buffer=video_size=%dx%d:pix_fmt=%d:time_base=1/1:pixel_aspect=0/1[src];"
 "[src]crop=x=%d:y=%d:out_w=%d:out_h=%d[cropped];"
 "[cropped]eq=brightness=0.06:saturation=2:contrast=1[out];"
 "[out]buffersink",
 frame->width, frame->height, frame->format,
 left, top, out_w, out_h);
ret = avfilter_graph_parse2(filter_graph, args, &inputs, &outputs);
if (ret < 0) return NULL;
assert(inputs == NULL && outputs == NULL);
ret = avfilter_graph_config(filter_graph, NULL);
if (ret < 0) return NULL;

buffersrc_ctx = avfilter_graph_get_filter(filter_graph, "Parsed_buffer_0");
buffersink_ctx = avfilter_graph_get_filter(filter_graph, "Parsed_buffersink_2");
assert(buffersrc_ctx != NULL);
assert(buffersink_ctx != NULL);

av_frame_ref(f, frame);
ret = av_buffersrc_add_frame(buffersrc_ctx, f);
if (ret < 0) return NULL;
ret = av_buffersink_get_frame(buffersink_ctx, f);
if (ret < 0) return NULL;

avfilter_graph_free(&filter_graph);

return f;



}


In addition, i've tried this :


"buffer=video_size=%dx%d:pix_fmt=%d:time_base=1/1:pixel_aspect=0/1[src] ;"


"[src]crop=x=%d:y=%d:out_w=%d:out_h=%d,eq=brightness=0.06:saturation=2:contrast=1[out] ;"


"[out]buffersink"


but no luck.
Thanks in advance.


-
i want to add watermark to video with ffmpeg, i want watermark jump to all corners one by one every 5 seconds [duplicate]
24 mai 2021, par block kingI am using this code currently for adding watermark and username in the upper left corner I want watermark shifts automatically in the bottom right corner


PHP code :


$cmd = "ffmpeg -i $original_video_file_path -i $watermark -filter_complex \"[0:v][1:v]overlay=20:25, drawtext=fontfile='$font_path':text='@$username':fontcolor=#ffffff:fontsize=18:y=80:x=15\" -c:a copy -movflags +faststart $video_with_watermark";