elsampsa / valkka-core

Valkka - Create video surveillance, management and analysis programs with PyQt
GNU Lesser General Public License v3.0
181 stars 35 forks source link

UDP connect to rtsp #12

Closed suicidesky92 closed 4 years ago

suicidesky92 commented 4 years ago

Hello! By default connection is TCP, but if I heave only UDP rtsp. How I may specify manually UDP protocol to connect rtsp point?

P.S. 'thnx for good project'

elsampsa commented 4 years ago

Hi,

Not sure what you mean..

This is the standard way of doing things with IP cameras.

What do you want to achieve? You want the video streaming to use TCP sockets as well?

suicidesky92 commented 4 years ago

Like in ffmpeg key -rtsp_transport (udp/tcp)

elsampsa commented 4 years ago

ok.. The normal behaviour (as I just explained), would correspond to

-rtsp_transport udp

If you wan't to do

-rtsp_transport rtsp

When you construct your LiveConnectionContext in python (like in here), pass it the parameter request_tcp = True

The level-1 API has been contructed in the cpp side, and is available here