I'm trying to stream a video over to a terminal using RTP. The video is coded in h.246. I'm using ffmpeg to extract the byte stream according to h.264 annex B :
ffmpeg -i test.h264 -vcodec copy -vbsf h264_mp4toannexb -an out.h264
This works fine, but some NAL units are bigger than the network MTU and thus they get fragmented by IP when being sent over to the terminal. The terminal seems a little bit lazy and discards fragmented datagrams making the video playback awful.
So basically I need a way to reduce the NAL unit size, any ideas ?