ffprobe: fix chapter printing, fix JSON output