The question of camera multiplexing with rtsp
Because of some requires, I want the camera multiplexing, and I can see the camera through the computer(using RTSP). Streams with different resolutions use different ports(like for the same camera : 1280x720-RTSP port:8553 1920x1080-RTSP port:8554 ...). The problem I'm facing right now is that switching its resolution according to different situations, Such as bandwidth. When the network quality is very good, I converte the resolution to 1920x1080, conversely, I converte the resolution to 1280x720(even lower).
I can successfully set up rtsp-server for different cameras, and each camera has a port, I can access the camera through it's port successfully. But how do I set up rtsp-server for one camera multiplexing? So, I wonder if there's any good advice. Thanks.