I want to stream some video with VLC over the internet and other networks with high packet loss rates. Since there seems to be no FEC support until now, i thought it might be a good idea to stream the data through a TCP-tunnel and buffer a few seconds on the receiver side. I implemented the following concept in a program:
vlc sends UDP packets to 127.0.0.1
my program receives them and sends them via TCP to the target computer 49.216.114.71
Another instance of my program runs on this computer and receives these TCP packets
and forwards them as UDP packets to 127.0.0.1
where another instance of vlc is waiting for them.
So i assume, that there's no loss of UDP packets, since they're only used for communication to the localhost address. And the TCP protocol guarantees, that there's no loss or reordering of packets on the actual way between both computers. So far the theory.
![Arrow :arrow:](./images/smilies/icon_arrow.gif)
So i ask you and myself: What could be wrong in my implementation, if the timing is perfect and there is no loss of packets and i still don't get the same result? Is there any kind of feedback channel or some information, which is not transportet on the "normal" port?
Thank you in advance for all kinds of help!
![Smile :)](./images/smilies/icon_smile.gif)