You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an arbitrarily selected value to avoid packet fragmentation.
There is no any exact science behind this as you can be never sure on
the actual limits, however 1200 byte is a safe value for all kind of
networks on the public internet (including something like a double VPN
connection over PPPoE) and for RTP there is no much reason to choose a
bigger value.
WebRTC Build-in RTP must less 1200, But most application max send packet size mare than 1200
So, For example
ffmpeg
, We need setpkt_size=1200
ffmpeg -re -f lavfi -i testsrc=size=640x480:rate=30 -vcodec libvpx -f rtp 'rtp://127.0.0.1:5003?pkt_size=1200'
https://groups.google.com/g/discuss-webrtc/c/gH5ysR3SoZI
https://stackoverflow.com/questions/47635545/why-webrtc-chose-rtp-max-packet-size-to-1200-bytes/47650260#47650260
RTSP Default value is 1472
ffmpeg -re -f lavfi -i testsrc=size=640x480:rate=30 -vcodec libvpx -f rtsp -pkt_size 1200 'rtsp://[::1]:8554/live/xxx'
https://ffmpeg.org/ffmpeg-protocols.html#rtsp
The text was updated successfully, but these errors were encountered: