Skip to content
STAGING SERVER
DEVELOPMENT SERVER

How To: Generate Images From Wireshark Protocol Files#

Out of the box, Wireshark is able to reconstruct a WAV file from the SIP protocol and a JPEG image from an RTSP stream, but there's no support for GigE Vision- or USB Vision-compatible images.

However, there is an open-source Python implementation on the web to achieve that: https://github.com/vinesmsuic/Pcap-To-Img

You can record the streaming protocol using the following capture filter:

dumpcap.exe -i 2 -w C:\Log\basler.pcap   -b files:4 -b filesize:400000 -f "ether[0x2e:1]  < 0x01"

Basler developed an experimental tool (convert_pcapng_to_png) that extracts a mono image from a pcap file. Contact Basler support to obtain the convert_pcapng_to_png tool. Since this tool is not open source, it's available in binary form only.

You can pass the file names and prefixes for images with the code below.
Note that the prefix must contain an absolute path.

C:\pcap> .\convert_pcapng_to_png.exe -r .\gvsp_only.pcapng -b C:\pcap\images_

If you need other pixel formats than Mono 8, contact Basler support.

Back to Knowledge Articles