'ffmpeg generate timecode list from concatenated sequence of videos

how do i get a list of the Timecodes (from the source) in a merged video?

for example:

# filelist.txt:
# file cat.mp4
# file dog.mp4
# file duck.mp4
ffmpeg -f concat -i filelist.txt -c copy animals.mp4

each source video is one minute long:

# videoindex.txt:
00:00 cat
01:00 dog
02:00 duck

how is it possible to generate such an index file for the jointed video file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source