Reputation: 11
How to packetize a file (any files like audio, text, image, video and...) and send it on famous protocols like RTP using scapy in python?
Upvotes: 1
Views: 623
Reputation: 1150
Activity need to be split into 2 parts
Reading the encoded data from different file format.
audio - wav , amr, 3gp, mp4 etc.
text - ascii, utf- 8, utf-16 etc.
image - jpeg , gif , png etc.
video - 3gp/mp4, avi, mkv etc.
you can use python ffmpeg to read the data from these formats or use other library with similar functionality.
Pass the encoded data as the payload to the scapy and then add the RTP header.
Upvotes: 1