How do I cut out commercials from recorded *.ts files?

I have managed to install ffmpeg 3.3.2-r10, but would get error below:

[NULL @ 0x7daf0] reference count 1 overflow
Input #0, mpegts, from '20171224_1437_-_CHANNEL_4_HD_-_THE_SIMPSONS.ts':
Duration: 00:26:20.25, start: 22066.660500, bitrate: 3323 kb/s
Program 17472
Program 17540
Program 17604
Program 17664
Stream #0:0[0x12d]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x12e](eng): Audio: aac_latm (LC) ([17][0][0][0] / 0x0011), 48000 Hz, 5.1, fltp
Stream #0:2[0x132](eng): Audio: aac_latm (HE-AACv2) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp (visual impaired)
Stream #0:3[0x131](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Program 17728
Program 18112
Program 20352
[NULL @ 0xbd6f0] Unable to find a suitable output format for 'THE_SIMPSONS.ts'
THE_SIMPSONS.ts: Invalid argument


I would like to keep both audio streams and subtitles as well, but no transcoding, just cut out the adds.