Filipowicz251 / mijia-1080P-hacks

436 stars 66 forks source link

RTSP with 720p channel #45

Open uavana opened 6 years ago

uavana commented 6 years ago

like rtsp://CAMERA_IP/live/ch01_0 for 720p stream? sometimes 1080p is too big, and currently basic_rtsp can't support 720p param

willthrom commented 6 years ago

did you give a change to the config file midgard.ini? There you should be able to change the resolution. (I personally haven´t tried but I added the parameters to change it..)

uavana commented 6 years ago

i have tried to change resolution in midgard.ini rtspd_basic cannot startup properly, then i execute rtspd_basic through ssh manually, it warned cannot scale down to 1280x720

AlfaBravoX commented 6 years ago

also interested... 1080p is too big. I tried to find out how big is the LOW resolution stream in the original app. but so far i was not able to find it anywhere. when i have it i will try to set in midgard to see if I get low resolution in RTSP. BTW is the RTSP protocol passing resolution information to client? i can try to record pcap file in the router and decode it to get this info.

willthrom commented 6 years ago

I took a look to the RTSP server code and some changes are required to support different resolutions. One day I might have time (not soon). If someone wants to try, let me know and I will forward the code if it is not already in this project.

New streams are required to be implemented ( one 50% ) New pulls, and new writes.

ghoost82 commented 6 years ago

As I think this would be a great addition to my mijia-720p-hack project I would like to try to implement this.