Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding file format network/rtpdump #283

Merged
merged 4 commits into from
May 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions network/rtpdump.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
meta:
id: rtpdump
title: Rtpdump (rtptools)
file-extension:
- rtp
- rtpdump
license: Unlicense
endian: be
imports:
- /network/rtp_packet
doc: |
rtpdump is a format used by rtptools to record and replay
rtp data from network capture.
doc-ref: https://chromium.googlesource.com/external/webrtc/stable/talk/+/master/media/base/rtpdump.h
seq:
- id: file_header
type: header_t
- id: packets
type: packet_t
repeat: eos
types:
header_t:
seq:
- id: shebang
contents: '#!rtpplay1.0'
- id: space
contents: ' '
- id: ip
type: str
encoding: ascii
terminator: 0x2f # '/'
- id: port
type: str
encoding: ascii
terminator: 0x0a # '\n'
- id: start_sec
type: u4
doc: |
start of recording, the seconds part.
- id: start_usec
type: u4
doc: |
start of recording, the microseconds part.
- id: ip2
type: u4
doc: |
network source.
- id: port2
type: u2
doc: |
port.
- id: padding
type: u2
doc: |
2 bytes padding.
packet_t:
seq:
- id: length
type: u2
doc: |
packet length (including this header).
- id: len_body
type: u2
doc: |
payload length.
- id: packet_usec
type: u4
doc: |
timestamp of packet since the start.
- id: body
size: len_body
type: rtp_packet