I am working on live streaming project. We are getting UDP packets which we need to receive & then pass it to decoder , get it back from decoder & then pass it back over multicast IP.
We have implemented logic to receive raw UDP packets ( size: 1316) & pass it to decoder but it requires input in higher size ( 16K ) so we have used PipedInputStream & PipedOutputStream to get required size.
We have implemented logic to put 1316 size packets into PipedOutputStream & reading 16K from PipedInputStream & passing it into device for decoding. Once data is received from device, again making use of PipedInputStream & PipedOutputStream to convert 16K to 1316 size but when applied multi threading then looks like data is getting missed.
Is there any library which can provide same functionality ?