| 7 | | If it is not obvious by logical reasoning, the offset parameter should be set to value such as full duration of transition is possible between two videos, thus offset parameter into first video stream should not be greater than duration of first video minus duration of transition itself and also duration of second video should be at least long as transition duration itself. |
| | 7 | The `offset` parameter determines when the crossfade starts. |
| | 8 | |
| | 9 | It should be set to a value that enables the full duration of the transition between the two videos. The offset parameter in the first video stream should not be greater than the duration of the first video minus the duration of the transition itself. |
| | 10 | |
| | 11 | For example, if your first video is 8 seconds long, and your transition is 1 second long, the offset must be less than or equal to (8-1) = 7. |
| | 12 | |
| | 13 | Also, the duration of the second video should be at least as long as the duration of the transition itself, meaning that in the above example, the second video's duration must be equal to or greater than 1. |
| | 14 | |
| | 15 | To calculate the offset for subsequent videos, you have to factor in the previous crossfade offsets and the duration of the current video. See this [https://stackoverflow.com/a/63570355/435093 example on Stack Overflow]. |