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
Basler also developed an experimental tool that extracts a mono image from a pcap file. If you need other pixel formats than Mono 8, contact Basler support. Since this tool is not open source, it's available in binary form only.
You can record the streaming protocol using the following capture filter:
dumpcap.exe -i 2 -w C:\Log\basler.pcap <file:///C:/Log/basler.pcap> -b files:4 -b filesize:400000 -f "ether[0x2e:1] < 0x01"
You can pass the file names and prefixes for images like this:
dumpcap.exe -i 2 -w C:\Log\basler.pcap <file:///C:/Log/basler.pcap> -b files:4 -b filesize:400000 -f "ether[0x2e:1] < 0x01"
Note that the prefix must contain an absolute path.