
Recherche avancée
Autres articles (100)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (7137)
-
Overlay of multiple sources with layer order like CSS z-index
6 mars 2021, par BasjNote : I've already read a few questions/answers about
[ffmpeg]
overlay
, but it did not fully answer this.

Let's say we have five inputs
[0]
...[4]
that can be images, videos, etc.

I'd like to overlay them in a precise order, a bit like "Photoshop layers" or CSS
z-index
.

Currently I use
ffmpeg
with a "recursive" use ofoverlay
like this :

-filter_complex "
 [0]setpts=PTS-STARTPTS[s0];
 [1]setpts=PTS-STARTPTS+3/TB[s1];
 [2]setpts=PTS-STARTPTS+7/TB[s2];
 [3]setpts=PTS-STARTPTS+8/TB[s3];
 [4]setpts=PTS-STARTPTS+9/TB[s4];
 [s0][s1]overlay=enable='between(t,3,13)'[o1];
 [o1][s2]overlay=enable='between(t,7,12)'[o2];
 [o2][s3]overlay=enable='between(t,8,15)'[o3];
 [o3][s4]overlay=enable='between(t,9,12)'[o4];
 "



Question : with
ffmpeg
, is there a way to do a mixing of different inputs / "layers" :

- 

- in a shorter way that this recursive use of
overlay
- and such that we can specify the "stack order" of each layer, like with CSS
z-index






?


To give a concrete example, how would you modify this command such that :


- 

- from 0'00" to 0'10", the layer order (from background to foreground) is 0, 1, 2, 3, 4
- from 0'10" to 0'15", the layer order (from background to foreground) is 2, 3, 1, 4, 0 (i.e.
[0]
goes to foreground)






?


- in a shorter way that this recursive use of
-
Add multiple overlays to video in ffmpeg
25 mars 2021, par Bas950On my video I am adding multiple overlays, 1 that will always be shown (Overlay/overlay.png) and I got a progress bar in PNGs named 0 to the last frame num.


Is there a small way I can do this in because I tried adding every thing and the command was too long.


ffmpeg -i 6875126077795372290.mp4 -i Overlay/overlay.png -filter_complex "[0:v][1:v] overlay=0:0"

I added-i Overlay/ProgressBar/0.png -filter_complex "[0:v][2:v] overlay=0:20"
for every frame and yea it got too long...

I tried doing something like this :
ffmpeg -i 6875126077795372290.mp4 -i Overlay/overlay.png -filter_complex "[0:v][1:v] overlay=0:0" -i Overlay/ProgressBar/%d.png -filter_complex "[0:v][%d:v] overlay=0:20" output.mp4

But I just cannot get it working.

[Edit] :
I tried the
ffmpeg -i 6875126077795372290.mp4 -i Overlay/overlay.png -i Overlay/ProgressBar/%d.png -filter_complex "[0:v][1:v]overlay=0:0[bg];[bg][2]overlay=0:20" output.mp4
from @llogan and it does it all, but strangely the video is not 6 seconds longer ? Cause I got the images for 432 frames, and the video is now 17seconds long instead of 11, the video for some reason got a strange frame rate of 37 (see attachment).
How should I solve this ? (I got this file information using ffprobe)

Attachment : https://i.imgur.com/1WNqvnS.png

Full file information : https://pastebin.com/rxkK39h7

Full ffmpeg log : https://pastebin.com/CBiusbRE

-
applying multiple filter ffmpeg
28 mars 2021, par Eswar TI'm trying to rotate videos and increase its sound as well as change itsframe rate


ffplay -i C:/Users/thota/OneDrive/Desktop/VET/Input.mp4 -af "volume="10.0",atempo="10.0" -vf "transpose=2,transpose=2,setpts=1/"10.0"*PTS,scale="3840:2160",fps="5.0"



I'm using FFmpeg as I'm trying to build a video editing application hence I need to combine many operations when i try to use above command I'm getting this error(in command im using ffplay as I just want to see output)


error


[atempo @ 000001fdd50c7c40] [Eval @ 00000047b79fe770] Undefined constant or missing '(' in 
'vftranspose=2'
[atempo @ 000001fdd50c7c40] Unable to parse option value "10.0 -vf transpose=2"
[atempo @ 000001fdd50c7c40] [Eval @ 00000047b79fe770] Undefined constant or missing '(' in 
 'vftranspose=2'
[atempo @ 000001fdd50c7c40] Unable to parse option value "10.0 -vf transpose=2"
[atempo @ 000001fdd50c7c40] Error setting option tempo to value 10.0 -vf transpose=2.
[Parsed_atempo_1 @ 000001fdd50c7b40] Error applying options to the filter.
Error initializing filter 'atempo' with args '10.0 -vf transpose=2'



Pleas help me solve this issue and suggest me a best way to add multiple operations when i try to use , its being tough so is their any other way
If yes please let me know
Thank you