1 | initial version |
Here is two variants how you can extract udp payload:
fastest method, using gstreamer:
gst-launch-1.0 -v filesrc location="dump.pcap" ! pcapparse dst-ip=239.1.10.6 dst-port=1234 ! filesink location="udp_payload.ts"
_Notes_:
mergecap -F pcap -w dump.pcap in.pcapng
;src-ip
, src-port
, dst-ip
, dst-port
in any combination. To see available conversations in dump run the next: tshark -nq -r dump.pcap -z conv,udp
.slower method (but still fast relative to Wireshark's expert), using tshark and xxd tools:
tshark -r "dump.pcap" -z follow,udp,raw,0 -q | grep -Ev '^(Follow|Filter|Node [01]): ' | grep -Ev '^={60,80}$' | xxd -r -p >"udp_payload.ts"
Both methods work with MPEG TS and any other payload.
2 | No.2 Revision |
Here is two variants how you can extract udp payload:
fastest method, using gstreamer:
gst-launch-1.0 -v filesrc location="dump.pcap" ! \
pcapparse dst-ip=239.1.10.6 dst-port=1234 ! \
filesink _Notes_:
Notes:
mergecap -F pcap -w dump.pcap in.pcapng
;src-ip
, src-port
, dst-ip
, dst-port
in any combination. To see available conversations in dump run the next: tshark -nq -r dump.pcap -z conv,udp
.slower method (but still fast relative to Wireshark's expert), using tshark and xxd tools:
tshark -r "dump.pcap" -z follow,udp,raw,0 -q |
grep -Ev '^(Follow|Filter|Node [01]): ' |
grep -Ev '^={60,80}$' |
xxd -r -p Both methods work with MPEG TS and any other payload.
3 | No.3 Revision |
Here is two variants how you can extract udp payload:
fastest method, using gstreamer:
gst-launch-1.0 -v filesrc location="dump.pcap" ! \
pcapparse dst-ip=239.1.10.6 dst-port=1234 ! \
filesink location="udp_payload.ts"
Notes:
mergecap -F pcap -w dump.pcap in.pcapng
;src-ip
, src-port
, dst-ip
, dst-port
in any combination. To see available conversations in dump run the next: tshark -nq -r dump.pcap -z conv,udp
.slightly slower method (but still fast relative to Wireshark's expert), using tshark and xxd tools:
tshark -r "dump.pcap" -z follow,udp,raw,0 -q |
grep -Ev '^(Follow|Filter|Node [01]): ' |
grep -Ev '^={60,80}$' |
xxd -r -p >"udp_payload.ts"
Notes:
follow,udp,raw,<src-ip>:<src-port>,<dst-ip>:<dst-port>
;Both methods work with MPEG TS and any other payload.
4 | No.4 Revision |
Here is two variants how you can extract udp payload:
fastest method, using gstreamer:
gst-launch-1.0 -v filesrc location="dump.pcap" ! \
pcapparse dst-ip=239.1.10.6 dst-port=1234 ! \
filesink location="udp_payload.ts"
Notes:
mergecap -F pcap -w dump.pcap in.pcapng
;src-ip
, src-port
, dst-ip
, dst-port
in any combination. To see available conversations in dump run the next: tshark -nq -r dump.pcap -z conv,udp
.slightly slower method (but still fast relative to Wireshark's expert), follow+export), using tshark and xxd tools:
tshark -r "dump.pcap" -z follow,udp,raw,0 -q |
grep -Ev '^(Follow|Filter|Node [01]): ' |
grep -Ev '^={60,80}$' |
xxd -r -p >"udp_payload.ts"
Notes:
follow,udp,raw,<src-ip>:<src-port>,<dst-ip>:<dst-port>
;Both methods work with MPEG TS and any other payload.
5 | No.5 Revision |
Here is two variants how you can extract udp payload:
fastest method, using gstreamer:
gst-launch-1.0 -v filesrc location="dump.pcap" ! \
pcapparse dst-ip=239.1.10.6 dst-port=1234 ! \
filesink location="udp_payload.ts"
Notes:
mergecap -F pcap -w dump.pcap in.pcapng
;src-ip
, src-port
, dst-ip
, dst-port
in any combination. To see available conversations in dump run the next: tshark -nq -r dump.pcap -z conv,udp
.slightly slower method (but still fast relative to Wireshark's follow+export), using tshark and xxd tools:
tshark -r "dump.pcap" -z follow,udp,raw,0 -q |
grep -Ev '^(Follow|Filter|Node [01]): ' |
grep -Ev '^={60,80}$' |
xxd -r -p >"udp_payload.ts"
Notes:
follow,udp,raw,<src-ip>:<src-port>,<dst-ip>:<dst-port>
;Both methods work with MPEG TS and any other payload.