WiFi camera > Wireshark tcp dissect in monitor mode > GStreamer to save video to a file

asked 2019-02-26 01:44:17 +0000

darius gravatar image

re: WiFi camera > Wireshark tcp dissect, data assembly > video player

I was told by Michael from GStreamer devel group, that GStreamer can be of some help in my project described by re:

In wifi monitoring mode I need tcpdump driver + wireshark to identify my camera by UID , SSID, IP source address, if fixed or within a range by DHCP

WiFi Direct camera should be emulated by GStreamer over wifi to let me test multicast settings, video streaming set to on, even none wifi receiver got paired

to make GStreamer to work on the receiving side, port is known since preset so I need Wireshark to get ip.address, source address of my camera in multicasting mode to enter in the following CLI command

"gst-launch-1.0 uridecodebin uri=rtsp://ip.address:port/mapping ! x264enc ! qtmux ! filesink location=file.mp4 -e

This will receive de RTSP stream, decode it, re-encode it, and save it to a file. If you knew the camera’s encoding format and handled key frames properly you could do it without the transcoding and save the processing (and battery life).

You could even capture the 4 cameras and combine them in a single file using the compositor.

Michael

--------

Let me know your opinion

edit retag flag offensive close merge delete

Comments

In wifi monitoring mode I need tcpdump driver + wireshark to identify my camera by UID , SSID, IP source address, if fixed or within a range by DHCP

What does Michael mean by "UID"?

The SSID identifies a network, not a single station (STA) on the network, so you can't identify traffic to and from the camera by identifying the SSID - which isn't in data packets, in any case.

So you're probably going to have to identify it by the IP source address. If it's fixed, you can use the address. If it's assigned by DHCP, you'd have to make sure that the DHCP server always assigns it an address in the range in question and never assigns addresses in that range to anything other than the camera.

Guy Harris gravatar imageGuy Harris ( 2019-02-26 04:30:58 +0000 )edit