Unknown stream found in container (likely a subfile): need help identifying/opening it
The 3rd stream in your input is a regular stream. Attachments are basically extradata attached to streams.

You would use

ffmpeg -i input.mp4 -map 0:2 -c copy -f data subs.txt