h.264 – Trouble on streaming a Transport Stream file using FFMPEG

I’m need to stream a Transport Stream file from a source PC to a destination PC, without transcoding the file.
When I use VLC, the destionation PC shows the file clearly.
When I use FFMPEG, the video is very distorted, showing many glitches (it seems that part of the upper frame “slides” on the bottom).

I’m using this command:

ffmpeg -re -stream_loop -1 -i file.ts -map 0 -c copy -f mpegts udp://192.168.1.100:20000?pkt_size=1316&buffer_size=10000000

The Transport Stream contain a 1920*1080@30fps H.264 video with metadata (two elementary streams).

Are there any tips for transmitting this Transport Stream file correctly as done by VLC?

Read more here: Source link