Please have a look at
IrScrutinizer and
its documentation. There is also
a tutorial available. As capturing hardware I recommend
this project.
I have planned to do a video tutorial on the topic in the title for at least 3 years... Feel free to ask questions here in the forum.