I'm currently using Tshark command "tashark -f mypcap --export-objects dicom, mydicomdir" into a python script to automatize net sniffing and file extraction. Now I have the problem that I need to track back the extracted object to the source pcap file. I tried to print the STDOUT but I just get information about packets while I would like to have the list of the exported filename. I'm currently using a fast a dirty solution with folder name to catch this connection but I'm wondering if I can read this information somehow in command output or in another way.
Thank you in advance for the support.