
Recherche avancée
Autres articles (59)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
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 (...)
Sur d’autres sites (7305)
-
concat 2 videos with sound and loop with the other audio which is longer or shorter
27 juillet 2021, par AndyI have audio.mp3 can be longer or shorter than concat of 2 videos with sound.


- 

- If audio > video, video will be looped until audio stops
- If audio < video, ffmpeg will ends when audio stops






Currently, I have to use 2 lines :


ffmpeg -y -i v1.mp4 -i v2.mp4 -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0?]concat=n=2:v=1:a=1[outv][outa]" -c:v libx264 -map "[outv]" -map "[outa]" v12.mp4



and


ffmpeg -i audio.mp3 -stream_loop -1 -i v12.mp4 -filter_complex "amovie=${BODY12}:loop=0,volume=0.5,apad[A];[0:a][A]amerge[outa]" -c:v copy -c:a aac -map 1:v -map "[outa]" -shortest -y newvideo.mp4



Do you have any suggestions to combine 2 lines above to 1 line ffmpeg to reduce time for rendering ? Thanks.


-
Get middle line from the output of a command
14 décembre 2022, par Kishore TThe following command list the duration of I-frames present in a video file.


ffprobe -i ./test.mp4 -v quiet -skip_frame nokey -select_streams v:0 -of flat -show_entries frame=pkt_pts_time | awk -F'=' '{gsub(/"/, "", $NF); print $NF}'



I'm trying to get the duration of I-frame that is in middle. The output of the above command will be like


0.066667
2.066667
4.066667
9.066667
14.066667
19.066667
24.066667



How do I get the middle value ? Here, I would like to get
9.066667
as the result. If the number of lines is even (say I've 2 values), I need to get the 1st value.

I tried using
wc
to get the number of lines andsed
to print the middle line. But, this straightforward solution required me to run the command twice. I tried piping the command, but I didn't find any solution for storing the value in a variable (from thewc
command) and using the same in another command (sed
command) while retaining the piped output.

-
How to make video effect in video by ffmpeg module in Node JS ?
20 juin 2015, par Nazmul Hossain BilashI am working with ffmpeg. I want to give effects in video like grayscale, Sepia, Blur in video. Also I want to add text in those videos. How can I make this with ffmpeg in node js. I have worked with fluent-ffmpeg & ffmpeg node module.
I have seen this article : https://trac.ffmpeg.org/wiki/FancyFilteringExamples Here is the example of video effect by ffmpeg command. But I need to to how I can make this effects through Node JS.