A 23-year-old accused of murdering a man during an incident in Dublin city centre was allegedly captured on CCTV footage stabbing him four times, a court has heard.