Need help identifying weird sized sewer pipe in older house
It could be Orangeburg (bituminized) pipe, which was used for decades up to the 70s. I'd remove as much as you can, and then use a shielded Fernco adapter (clamping steel and rubber), sized to the outside diameter. Be careful not to crush the old stuff.

Disclaimer: I have no idea if this meets code.