I have a pcap file containing a capture of RTP with H.264 video and SIP with SDP. I would like to be able to extract the video from the RTP stream and save it to a file. (h264video.mkv or something similar)
I have started looking at gstreamer as a possible solution for this but I'm having trouble troubleshooting any of the output I receive from the program.
gst-launch -v filesrc location=testh264.rtp
! application/x-rtp,media=video,clock-rate=90000,payload=123,encoding-name=H264
! rtph264depay
! ffdec_h264
! xvimagesink
Here is an example of something I've tried but I'm not able to get through rtph264depay because the file I'm sending is of invalid format. What can I do to extract the h264 payload from my pcap file for usage with gstreamer/rtph264depay?