Commit 113bae59 authored by Paul B Mahol's avatar Paul B Mahol

doc/filters: improve xfade description and add one example

parent 62d92a87
...@@ -20073,8 +20073,8 @@ Set cross fade duration in seconds. ...@@ -20073,8 +20073,8 @@ Set cross fade duration in seconds.
Default duration is 1 second. Default duration is 1 second.
@item offset @item offset
Set cross fade start relative to first input stream. Set cross fade start relative to first input stream in seconds.
Default offset it 0. Default offset is 0.
@item expr @item expr
Set expression for custom transition effect. Set expression for custom transition effect.
...@@ -20118,6 +20118,17 @@ first/second/third/fourth component of second input. ...@@ -20118,6 +20118,17 @@ first/second/third/fourth component of second input.
@end table @end table
@end table @end table
@subsection Examples
@itemize
@item
Cross fade from one input video to another input video, with fade transition and duration of transition
of 2 seconds starting at offset of 5 seconds:
@example
ffmpeg -i first.mp4 -i second.mp4 -filter_complex xfade=transition=fade:duration=2:offset=5 output.mp4
@end example
@end itemize
@section xstack @section xstack
Stack video inputs into custom layout. Stack video inputs into custom layout.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment