google-coral / example-object-tracker

Apache License 2.0
105 stars 32 forks source link

Send to udp sink #14

Open highfreq opened 2 years ago

highfreq commented 2 years ago

Description

Sending it to udp sink i get error:

Warning: gst-resource-error-quark: Attempting to send a UDP packets larger than maximum size (1228800 > 65507)

Probably need to use RTP but really don't know where to edit detect.py to make use of rtp to segment packets.

Click to expand! ### Issue Type _No response_ ### Operating System _No response_ ### Coral Device _No response_ ### Other Devices _No response_ ### Programming Language _No response_ ### Relevant Log Output _No response_
hjonnala commented 2 years ago

Can you please share which coral Device are you working with, video source and the complete error log.

highfreq commented 2 years ago

working with coral usb.

inside /google-coral/example-object-tracker/gstreamer/gstreamer.py i put udpsink host=xxx.xxx.xxx.xxx port=5700 but i get the error i gave you. Probably i just need to rtp the payload but don't know how to do it in the pipeline.

Complete error message:

Warning: gst-resource-error-quark: Attempting to send a UDP packets larger than maximum size (1228800 > 65507) (10): gstmultiudpsink.c(722): gst_multiudpsink_send_messages (): /GstPipeline:pipeline0/GstUDPSink:udpsink0: Reason: Error sending message: Message too long

manoj7410 commented 2 years ago

@highfreq Can you try to take reference from https://github.com/google-coral/examples-camera/blob/master/gstreamer/gstreamer.py#L221 ?