-c <Packets_per_File> Splits the packet output to different files based on uniform packet counts with a maximum of <Packets_per_File> each. Each output file will be created with a suffix -nnnnn_YYYYMMDDHHMMSS, where:
nnnnn starts with 00000
YYYYMMDDHHMMSS is the start time of captured traffic packet in the smaller file
If the specified number of packets is written to the output file, the next output file is opened. The default is to use a single output file.
Algorithm:
Decide what is the desired size of the smaller files.
Divide the current size of the large capture file by the desired size of smaller files.
Round up/down the result (approximate number of smaller files).
Divide the number of packets in the large capture file by rounded up/down number (approximate number of smaller files).
Round up/down the result (approximate number of packets in smaller files).
Use this value as <Packets_per_File>
Example:
Number of packets in large capture file = 105 k = 105 000
Size of large capture file = 56 MB
Desired size of smaller files = 5 MB
Dividing 56 MB by 5 yields 11.2
Rounding 11.2 down yields 11
Dividing 105000 packets by 11 yields 9545.45
Rounding 9545.45 packets down yields 9545
Hence, final syntax would be: editcap.exe -F pcapng -c 9545 Input_File.cap Output_File.cap
-A <Start_Time> Saves only the packets whose timestamp is on or after start time. The time is given in the following format: YYYY-MM-DD HH:MM:SS
-B <Stop_Time> Saves only the packets whose timestamp is before stop time. The time is given in the following format: YYYY-MM-DD HH:MM:SS
-i <Seconds_per_File> Splits the packet output to different files based on uniform time intervals using a maximum interval of <Seconds_per_File> each. Each output file will be created with a suffix -nnnnn, starting with 00000. If packets for the specified time interval are written to the output file, the next output file is opened. The default is to use a single output file.