You will have to add RTP in the mix to get it running properly.
E.g. on the sending side:
appsrc ! h264parse ! mpegtsmux ! rtpmp2tpay ! udpsink
Note the caps of the udpsink (should read something like "application/x-rtp,payload=33,....")
and on the receiving side:
udpsrc caps="<insert caps on sending side>" ! rtmp2tdepay ! tsdemux ! decodebin ! autovideosink