Search code examples
videoffmpegstreamingh.264ethernet

Difference between MPEG-TS and RTP for H.264 (.mp4) video streaming?


So I am trying to stream a H.264 (.mp4) video over ETHERNET using the ffmpeg tool. I have read a little about transport of H.264 video over ethernet and have learnt that there are two methods; mpeg-ts and RTP (both over UDP). I have been able to stream the .mp4 video through both methods in ffmpeg (over localhost) and haven't noticed any difference in quality or latency as such. What is the difference in concept and efficiency between the two protocols for transportation of video? Or am I mixing two different concepts? Any help is appreciated!


Solution

  • RTP has less overhead than using a transport stream, since RTP uses the full Ethernet packet size available (MTU of around 1500 bytes normally), whereas TS packets are 188 bytes in size. Also, ffmpeg's UDP protocol, which is normally used to send a TS over the network does not support packet reordering on the receiver side.