[FFmpeg-cvslog] doc/filters: improve xfade description and add one example

Paul B Mahol git at videolan.org
Fri Jan 31 11:18:29 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jan 31 10:17:05 2020 +0100| [113bae5985c08b243376237b563ed067d568b9c9] | committer: Paul B Mahol

doc/filters: improve xfade description and add one example

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=113bae5985c08b243376237b563ed067d568b9c9
---

 doc/filters.texi | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 13403fd96c..2c9486ae58 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -20073,8 +20073,8 @@ Set cross fade duration in seconds.
 Default duration is 1 second.
 
 @item offset
-Set cross fade start relative to first input stream.
-Default offset it 0.
+Set cross fade start relative to first input stream in seconds.
+Default offset is 0.
 
 @item expr
 Set expression for custom transition effect.
@@ -20118,6 +20118,17 @@ first/second/third/fourth component of second input.
 @end table
 @end table
 
+ at subsection Examples
+
+ at itemize
+ at 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:
+ at example
+ffmpeg -i first.mp4 -i second.mp4 -filter_complex xfade=transition=fade:duration=2:offset=5 output.mp4
+ at end example
+ at end itemize
+
 @section xstack
 Stack video inputs into custom layout.
 



More information about the ffmpeg-cvslog mailing list