Hi TI!
I am receiving video (UDP) from a camera and retransmitting it. But there are visible delays in the video playback.
The code I do it on the udpecho sample project (SDK 6_10). I removed all code on the udpEcho.c file and put my own code, so I take advantage of the part of the access point connection code.
I show the thread that receives and transmits the video packets. The thread has priority 1, if I increase the priority to 5 there is no improvement, and if I increase the priority to a higher number 12, 20, 30 it does not work.
What can you recommend me to increase the speed and have better video playback?
Thank yuo very much.
Best regards.
Void task_camera_udp(UArg arg0, UArg arg1)
{
for (;;)
{
_i8 buffer[1500];
_i16 RecBytes = sl_RecvFrom(socket_udp_camera, buffer, 1500,0, (SlSockAddr_t *)&UDPCameraAddr, (SlSocklen_t*)&AddrSize);
if(RecBytes > 0){
status = sl_SendTo(socket_udp_client, buffer, RecBytes, 0, (SlSockAddr_t *)&UDPClientAddr, AddrSize);
}
Task_sleep(1);
}
}