| | 26 | |
| | 27 | == Audio Overlay Filter == |
| | 28 | **Description:** |
| | 29 | |
| | 30 | The Audio Overlay Filter was designed as a part of this project to provide the functionality of replacing specified parts of an input stream with another input stream. Additionally, FATE tests were designed for the filter to ensure that it works as expected in the future. |
| | 31 | |
| | 32 | The filter provides two modes of operation: timeline mode in which the second stream is output in place of the first stream at timestamps provided by the user, and default mode in case no time interval is given by the user, in which the second stream is output at places in the first stream where there are PTS gaps. |
| | 33 | |
| | 34 | At points of transition between the two streams, the filter performs linear crossfading to ensure smooth transitions. The duration for the crossfade can be specified by the user. |
| | 35 | |
| | 36 | The FATE tests are designed to confirm both the modes of operation (with and without the default crossfade duration) work correctly. |
| | 37 | |
| | 38 | **Results:** |
| | 39 | |
| | 40 | The project was successfully completed and the code along with the tests is currently under review on Patchwork: |
| | 41 | https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=10502 |
| | 42 | |
| | 43 | A more elaborate explanation of the filter's functionality can be found on this !GitHub gist: |
| | 44 | https://gist.github.com/HarshK23/703946316d98f5f3bf4e0442f956bd7d |
| | 45 | |
| | 46 | **Future Work:** |
| | 47 | |
| | 48 | The capabilities of the filter can be further extended by implementing support for more types of crossfading at stream transitions, similar to the acrossfade filter. |
| | 49 | |
| | 50 | **Mentors:** |
| | 51 | * Paul B Mahol |
| | 52 | * Thilo Borgmann |
| | 53 | |
| | 54 | **Contributor:** |
| | 55 | Harshit Karwal (karwalharshit@gmail.com) |