
Recherche avancée
Autres articles (67)
-
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 ;
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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
Sur d’autres sites (10432)
-
avcodec/avpacket : add av_packet_make_refcounted()
24 mars 2018, par James Almeravcodec/avpacket : add av_packet_make_refcounted()
It works as a drop in replacement for the deprecated av_dup_packet(),
to ensure a packet is reference counted.Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by : James Almer <jamrial@gmail.com> -
How do you replace audio at a given timestamp with ffmpeg ?
29 août 2022, par Ed GeorgeI am trying to use the ffmpeg library to take two FLAC files and replace the audio in File A with the audio in File B at a given timestamp.



For example if File B was to be played at 00:02 and was a second long, playing the output it would be
(00:00-0:01) File A Audio -> (00:02-0:03) File B Audio -> (00:04-...) File A Audio



To do this, I have tried the following



ffmpeg -y -i original.flac -i replacement.flac -acodec copy -ss 2 -to 3 -write_xing 0 result.flac




But this only produces the original audio between the specified timestamps.



Is there any way to achieve this within ffmpeg ?


-
Replace frames in an AVI with Java
12 juillet 2018, par webusterI’m recording some screencasts and my crap recorder (Camtasia) recorded 2000 videos with a brief black flash (2-3 frames) at, or near the beginning of each.
I’m looking for a way to automate the replacement of the black frames inside each video with FFmpeg, and I can currently detect which frames are black.
The problem I have is now : How can I replace frame number X with the content of frame number X-1 in an AVI video ? Not looking to shorten the video, but just to replace a frame in-place.
Here’s what I have so far :
FFmpegFrameGrabber g = new FFmpegFrameGrabber("res/video.avi");
g.start();
FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(new FileOutputStream(new File("res/video_out.avi")), g.getImageWidth(), g.getImageHeight(), 2);
recorder.setFormat("avi");
recorder.setPixelFormat(AV_PIX_FMT_YUV420P);
recorder.setFrameRate(30);
recorder.setVideoCodec(AV_CODEC_ID_H264);
recorder.setVideoQuality(10);
recorder.setSampleFormat(AV_SAMPLE_FMT_FLTP);
recorder.setSampleRate(48000);
recorder.setAudioCodec(AV_CODEC_ID_AAC);
recorder.setAudioQuality(10);
g.setFrameNumber(1);
recorder.setFrameNumber(2);
recorder.record(g.grab());
g.close();
recorder.close();
recorder.release();And I’m getting a video back with empty frames (not even black), so I might be messing something here.
Anyone with experience with FFmpeg ?