use ffprobe -show_chapters command