I configure gst-launch-1.0 to compress a video in h264 format and send it on Ethernet UDP message format MPEG TS.
Using wireshark, i see that each Ethernet Message uses only 230 bytes. It is not very efficient so i have tried to add a parameter buffer-size=1316 but it doesn’t work.
my command:
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, format=NV12, width=1920, height=1080, framerate=25/1 ! videocrop right=960 bottom=120 ! omxh264enc gop-length=60 periodicity-idr=1 target-bitrate=15000 ! video/x-h264,profile=high-4:2:2-intra,framerate=25/1 ! mpegtsmux ! udpsink host=%s port=%s buffer-size=1316 async=false
Try mpegtsmux alignment=7
and drop the buffer-size=1316
, that’s something else (total kernel send buffer size, not packet size related).