
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (62)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (11583)
-
How to mix 2 audio files into one in ffmpeg-go ?
18 juin 2024, par princesslunaUsing ffmpeg-go, I am trying to trim and mix (overlay) two audio files together. Currently I have this code :


func AssebmleAudio(music, effect string, userId int) {

 outputFilePath := filepath.Join(utils.GetRoot(), "users", fmt.Sprintf("%d", userId), "audio.mp3")

 musicStream := Trim(ffmpeg_go.Input(music), 60)
 effectStream := Trim(ffmpeg_go.Input(effect), 60)
 Mix(musicStream, effectStream).Output(outputFilePath).Run()

}

// Mixes specified user audio and vinyl audio asset
func Mix(music, effect *ffmpeg_go.Stream) *ffmpeg_go.Stream {
 return ffmpeg_go.Filter(
 []*ffmpeg_go.Stream{
 music,
 effect,
 },
 "amix",
 ffmpeg_go.Args{"inputs=2:duration=longest:dropout_transition=2"},
 )
}


func Trim(music *ffmpeg_go.Stream, duration int) *ffmpeg_go.Stream {
 return music.Trim(ffmpeg_go.KwArgs{"duration": fmt.Sprintf("%d", duration)})
}



However,
AssembleAudio
while tested yields the following error :

panic: encountered trim with multiple outgoing edges with same upstream label ; a 'split'' filter is probably required


I found solutions for plain ffmpeg, I also found this question, but I have no idea how to do this in go.


-
Overlay with fade in-out not showing
3 mai 2018, par Pier Giorgio MisleyI can actually add an overlay image in the center of a video from a start time A to an end time B.
Reading here and there I tried to add a
fade-in/fade-out
effect to my overlayed image but the result is the image not showing at all in my final video.This is my "experiment" :
-i output.mp4 -i 1.png -filter_complex "[1:v]format=rgba,scale=300:300,fade=in:st=0:d=1:alpha=1,fade=out:st=5:d=1[im];[0][im]overlay=(main_w-overlay_w)/2:(main_h - overlay_h) / 2:enable='between(t,0,5)'" -pix_fmt yuv420p -c:a copy output_0.mp4
If in understood :
fade=in:st=0:d=1
Means that the image should appear at 0’’ with a fade-in effect of 1’’ duration
fade=out:st=5:d=1
Means that the image should disappear at 5’’ with a fade-out effect of 1’’ duration
Isn’t it ?
Second part would be to add a zoom effect of the image when it is fading in, can I combine the fade-in and the zoom effect toghether ?
I think that something like this should zoom for a duration of 3 seconds my image overlay, can I add it with another "," separating the filter to the overlayed image ?
zoompan=z='if(lte(zoom,1.0),1.5,max(1.001,zoom-0.0015))':d=3
Thanks
edit :
The video is 10 sec long. I want an image to be shown with fade in-out and zoom in from 0 to 5 and another from 5 to 10 with the same effect
Step 1 : adding fade in-out
-i 0_vid.mp4 -loop 1 -t 1 -i 1.png -filter_complex "[1:v]format=rgba,fade=in:st=0:d=1:alpha=1,fade=out:st=4:d=1:alpha=1[im];[0][im]overlay=(main_w-overlay_w)/2:(main_h - overlay_h)/2:shortest=1" -pix_fmt yuv420p -c:a copy output_0.mp4
With this solution the fade in works, but the fade out is not even taken in consideration.
If I add the zoom :
-i 0_vid.mp4 -loop 1 -t 1 -i 1.png -filter_complex "[1:v]format=rgba,zoompan=z='if(lte(zoom,1.0),1.5,max(1.3875,zoom-0.0015))':d=625,fade=in:st=0:d=1:alpha=1,fade=out:st=4:d=1:alpha=1[im];[0][im]overlay=(main_w-overlay_w)/2:(main_h - overlay_h)/2:shortest=1" -pix_fmt yuv420p -c:a copy output_0.mp4
This way the image is stretched full screen width and the height is cut. But during the 5 sec animation the image is not resized as normal.
What I’m aiming for is the image to be zoomed in the video but not to be cut/stretched. I would like to have the image to look smaller at the start and bigger at the end. Is it possible ?
And also, what am I doing wrong with fade out animation
-
FFmpeg - blurry or transparent outlines [duplicate]
10 avril 2020, par q55awrI'm merging a bunch of videos into one and I'm looking for a specific effect / technique to add to a each of those videos. But I don't exactly know what that effect is called and how to achive it by ffmpeg.



I would describe the outcome as a video with 3 columns . In the center you got the actual video and left and right there's a blurry version of that same video.



Is something like this possible with
ffmpeg
?