Ipdecap can decapsulate traffic encapsulated within GRE, IPIP, 6in4, and ESP (IPSEC) protocols, and can also remove IEEE 802.1Q (virtual LAN) headers.
It reads packets from a pcap file, removes the encapsulation protocol, and writes them in another pcap file.