How to convert a pc into set top box

CAN I MIMIC A SET TOP BOX ON a PC IS THERE ANY SOFTWARE. BY WHICH I CAN CONNECT my cable and get the soft ware to run like a set top box

placeholder text for bug in Chrome