H264 RTP batch dump and fast file creation

I have a dump of H264 streaming video packets that I captured using libpcap. I was wondering if anyone knows about a tool that can generate a playable video file.

thank

+3
source share
1 answer

Try exporting the RTP file stream to a dump file (in Wireshark, right-click the RTP package → “Follow UDP Stream → Save As”), and then send the file through gst-launchfor demonstration. You need to play around a bit with this, but this should be the right idea:

$ gst-launch-0.10 filesrc location=dump.rtp ! rtpmp2tdepay ! filesink location=dump.ts

, RTP MPEG TS. - (.. Vorbis, G.729, PCM, MP3 - ), "depayloader". gst-inspect, :

$ gst-inspect-0.10 | egrep 'rtp.*depay'
quicktime:  rtpxqtdepay: RTP packet depayloader
dtmf:  rtpdtmfdepay: RTP DTMF packet depayloader
rtp:  rtpdepay: Dummy RTP session manager
rtp:  rtpac3depay: RTP AC3 depayloader
rtp:  rtpbvdepay: RTP BroadcomVoice depayloader
rtp:  rtpceltdepay: RTP CELT depayloader
[...]

GStreamer ( gst-launch gst-inspect) Linux . , . , , , . , , .:)

+1

Source: https://habr.com/ru/post/1739000/


All Articles