Rtpdump files can be converted to mp4 using rtpplayand FFmpeg.
For example, consider these files:
Analyze them:
$ rtpdump -Fascii -f narwhals-audio.rtpdump | head -n 1
0.000000 RTP len=15 from=0.0.0.0:0 v=2 p=0 x=0 cc=0 m=1 pt=97 (????,0,0) seq=1679 ts=249986024 ssrc=0xf944ac63
$ rtpdump -Fascii -f narwhals-audio.rtpdump | tail -n 1
65.570000 RTP len=15 from=0.0.0.0:0 v=2 p=0 x=0 cc=0 m=1 pt=97 (????,0,0) seq=4959 ts=253134824 ssrc=0xf944ac63
Analysis Results:
Audio sample rate = (253134824 - 249986024) / (65.57 - 0) ~= 48000
Audio codec: probably opus
Audio payload type: 97
Video sample rate: 90000
Video codec : probably VP8
Video payload type: 96
Codec names may require some guesswork / investment / just for everyone.
Let us assign port 4646 for video and 4848 for audio and create an SDP file:
v=0
c=IN IP4 127.0.0.1
m=video 4646 RTP/AVP 96
a=rtpmap:96 VP8/90000
m=audio 4848 RTP/AVP 97
a=rtpmap:97 opus/48000
Then prepare a command line to run FFmpeg, which will listen on these ports according to the SDP stored in the MP4 file:
ffmpeg -v warning -protocol_whitelist file,udp,rtp -f sdp -i narwhals.sdp -copyts -c copy -y narwhals.mkv
FFmpeg 10 - , .
rtpplay:
rtpplay -T -f narwhals-video.rtpdump 127.0.0.1/4646 & rtpplay -T -f narwhals-audio.rtpdump 127.0.0.1/4848
. , rtpplay, .
, , FFmpeg, rtpplay s. , rtpplays ( ). FFmpeg - .
mkv MP4, , VP8 MP4. FFmpeg.
, /, FFmpeg; SDP, VP8/95000.