Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTSP Server #15

Closed
jodupuis opened this issue May 1, 2017 · 77 comments
Closed

RTSP Server #15

jodupuis opened this issue May 1, 2017 · 77 comments

Comments

@jodupuis
Copy link

jodupuis commented May 1, 2017

Great job guys with these projects, very impressive.
I just bought a new Yi 1080 Dome thinking the V1 hack could get me into the RTSP server to leverage with my BlueIris software, then when I was installing the new new Hack (v3), I realized it's not available.

Before I return this camera, just want to check with you if there's any plan soon to get RTSP?

Thanks again

John.

@shadow-1
Copy link
Owner

shadow-1 commented May 2, 2017

@jodupuis
I am definitely planning to develop RTSP support for this camera.
However at this stage it is a little hard to say exactly when support will be added to the firmware.

@jodupuis
Copy link
Author

jodupuis commented May 2, 2017

thank you shadow-1 for the quick response.

@DJay-X
Copy link

DJay-X commented May 6, 2017

Hi and first of all thanks @shadow-1 for investing your time in this and your passionated work.
I'm an absolutely newbie and more or less just a passionated user who is doing handicraft work with some fantastic step-by-step guidance like yours is.
So I did with the Homebridge Project https://github.com/nfarina/homebridge which works great with my Apple HomeKit environment. I figured out that RTSP is a must have to get a camera work with i.e. a plugin for homebridge like https://github.com/KhaosT/homebridge-camera-ffmpeg
So I'm very excited and looking forward to your ongoing development with RTSP support.
Tough I have some questions...

  • Recently there was a Firmware update on Yi Dome 1080p with V1.9.2.0E_201705031503.
    Any problems to expect when I go back to "older" hack version?
  • Is there at the moment a way to switch the Yi Dome 1080p on/off by a http command? It's just because with this I already could implement the camera in homebridge with a switch plugin. https://github.com/rudders/homebridge-http

Once again thanks for your great work and sharing.

Best regards from Germany
DJay

@shadow-1
Copy link
Owner

shadow-1 commented May 6, 2017

@DJay79
To answer your questions:

  • There are no problems going back to the "older" hack version based on 1.9.2.0D_201612191901. For the next release of the hack, I will most likely upgrade the base version to 1.9.2.0E_201705031503 for the Yi 1080p Dome.
  • At the moment, the only way to view and control the camera is through the official smartphone app. Once RTSP support is developed, we can look into implementing extra features such as the ones you are suggesting.

@DJay-X
Copy link

DJay-X commented May 6, 2017

Thanks for keeping my suggestion in mind. 👍🏻

@xX-Nexus-Xx
Copy link

Great work .. I'm as well looking forward to the RTSP implementation.

Is there a chance of having a work-around by putting the last event-recording (e.g. motion triggered) to be copied into a dedicated folder with a dedicated name ?

This would enable us to establish a permanent link in a browser or app to load that recording via FTP or http request!

thanks for considering

@shadow-1
Copy link
Owner

shadow-1 commented Jun 5, 2017

@xX-Nexus-Xx
These Xiaomi cameras feature last-event recording to the microSD card (configured through the Xiaomi app).

These recording are saved in a folder named record. A sub-folder is created for each hour of recording. the folder name has the year, month, day and hour. For example 2017Y06M05D10H. Within this folder, 1 minute mp4 video files are copied and the filename indicates which minute was recorded. For example 01M00S.mp4.

Another Github member @jinx10000 has developed a script which periodically runs on a router / raspberry pi and syncs these recordings with a NAS and potentially Google Drive. Have a look at this thread:
Access Video Files Over FTP #13

Is this something like what you are after?

@xX-Nexus-Xx
Copy link

Thanks for the quick reply !

I was aware that the app is recording to MicroSD but could not find the location and thought it was encrypted!

This is almost what I was looking for. I will try to create a FTP-request via HTTP to display the latest recording in a browser or app (like kodi)

@jodupuis
Copy link
Author

Hello Shadow-1, been following all these threads, what a great job! I'm sorry to bug you again on this but do you have a better idea as to when you might have a RTSP version?

@shadow-1
Copy link
Owner

@jodupuis
I have just released the new firmware which should greatly simply the configuration of ProxyChains-ng for most people. The next big thing on my radar is RTSP support. I have some ideas on how to develop the feature. Unfortunately I am not sure when I will be able to finish developing it as I am quite limited in time. I am developing this firmware as a hobby in my spare time.

@jodupuis
Copy link
Author

Hello shadow-1, no worry, we all do understand and very appreciative of all the great work you do here, no kidding!! I wish there will be a donation option somewhere. Keep up the excellent work!

@jodupuis
Copy link
Author

jodupuis commented Aug 7, 2017

Hello guys, just realized this thread has been closed and looking through it and other threads, I can't find out if this RTSP piece was successful. A lot of great work went into this project, very impressive.

I upgraded the cam to Yack-3, had to perform a reset to get it back to work. Could not find this RTSP server in it.

Any guidance?

Shahow-1, thank you so much for everything!!
Note: I'm using the BlueIris SW to monitor multiple cameras, the generic version (if not in the list of supported camera) is to leverage RTSP.

@xmflsct
Copy link

xmflsct commented Aug 8, 2017

@jodupuis I assume full RTSP support is not ready yet. I am also waiting for @shadow-1's great work on it!

@sweup
Copy link

sweup commented Aug 14, 2017

Thanks for your hard work. Also hoping to see rtsp support

@galadril
Copy link

Would love to see RTSP support work and integrate my cams with my domoticz system 👍

@jaymiracola
Copy link

Shadow, please setup a bounty and/or donation box. I and assume others would gladly throw money at you for RTSP. On another note, let me know if you need anything as far as hardware, dumps from serial connectivity, etc from a 27US ANTS.

@c0mm0n
Copy link

c0mm0n commented Aug 24, 2017

+1

@sebastienb
Copy link

sebastienb commented Aug 24, 2017 via email

@lastb0isct
Copy link

Any progress on this?

@shadow-1
Copy link
Owner

shadow-1 commented Sep 7, 2017

@lastb0isct
I have been quite busy lately. However it will be coming.

@ericboehs
Copy link

Wahoo. I just bought two Yi Home (US27) and I'm looking forward to the RTSP server (only reason I want to hack it really).

Thanks for your work on this @shadow-1. I'd gladly donate $10 if you set up a donation box (e.g. patreon.com).

@uavana
Copy link

uavana commented Sep 21, 2017

RTSP server is the only reason I want to hack it really +1

@xvolte
Copy link

xvolte commented Sep 23, 2017

+1, i got 3 cameras on yi hack v1. Sadly the last one, was on the new firmware 1.8.7, so i finally managed to install yi hack v3 on this new camera, however, there is no rtsp yet so can't use it for my needs.
In addition, because we don't know what is still going through Xiaomi/Yi, it would be cool if you could include a Iptables firewall as well.
Also, i managed in yi hack v1 to change the init script, so that i don't get all the files written on the SD card, i remove the connection to cloud services, etc ... in your hack, it would be SOOOOOO great if we could just disable everything, except the rtsp. i only need the wifi and the rtsp field. I don't need the rest, and would like it to be disabled.
I noticed the configuration file, so i disable FTP and proxy, but i would like to restrict network to local network only (192.168.X.X), and also to remove automated recording on the sd card + enable RTSP + Iptable.
I can help as i know how to code. the only problem is that i don't know how to work with a non standard linux (busybox thing ...)

Anyway, iptable + RTSP would definitely be great!

thanks @shadow-1 !!! 👍 🥇

@Robot72
Copy link

Robot72 commented Sep 26, 2017

+1

@nikooo777
Copy link

hey guys!
I'm just going to jump on the hype train of RTSP :)

With huge respect for all the people involved in the project, and with all the gratitude for their time, I'll be very interested in seeing this feature available.

I well know what working on a project on your free time means, so I'm not asking for it nor pretending anything, just adding my own to the list of people that would be more than happy to see this happening.

Best regards and happy coding!

Niko

@markusd1984
Copy link

+1

1 similar comment
@wawryk
Copy link

wawryk commented Oct 31, 2017

+1

@cinoque5
Copy link

cinoque5 commented Nov 5, 2017

+1 :)

@proautodinc
Copy link

+1

@seanmeads
Copy link

rtsp working on CN hardware:
http://xiaoyi.querex.be/instructions/
uses server (not lwsws) and rtspsvr (requires library libstdc++.so.6)

@fabceolin
Copy link

Where can I get the libstdc++.so.6?

@fabceolin
Copy link

Under 1.8.6.1B_rtspfix we have the files rtspsvrI, rtspsvrK and rtspsvrM. Is there a chance that some of them work on Yi Dome Camera? (I am downloading the SDK to generate the libstdc++.so.6 and try)

@shadow-1
Copy link
Owner

shadow-1 commented Jan 4, 2018

@seanmeads
This implementation only works with the original Yi Home. It does not work with the newer cameras based on HiSilicon Hi3518eV200 chipset.

@fabceolin
libstdc++.so.6 is available with the SDK which I host. From memory, it is roughly 5mb in size, so it will need to be stored on the microSD card.

@kb5won
Copy link

kb5won commented Jan 25, 2018

I chipped in a little for the bounty. I just got zoneminder up and running, and already have a Yi dome 1080, would love to be able to use it with zoneminder. Thanks!

@5k1ttl3
Copy link

5k1ttl3 commented Jan 31, 2018

@shadow-1 is it possible for me to get a copy of libstdc++.so.6? Also where can I send you money or other support? I've got 4 of these US27 cameras and they're all going back to Amazon if I can't get RTSP going :(

I for one am 100% fine dropping app support to get RTSP - I'd much prefer it. But I understand that's not the case for everyone

@ontdamian
Copy link

Hi @shadow-1 ,
any progress on this issue? Any "valid" plans to develop RTSP for Yi Home 720p (HiSilicon Hi3518eV200 chipset)?
I think many of us are waiting for it, and don't know if should invest in other models to have RTSP functionality.

@Sigri44
Copy link

Sigri44 commented May 13, 2018

The developpement is on way since 1 year.. ?

@nico81
Copy link

nico81 commented Jun 1, 2018

+1 for RTSP and Homebridge support! 👍🏼

@bit111
Copy link

bit111 commented Jun 30, 2018

Hello,
I don't understand if RTSP for Yi Dome Camera 1080 was implemented or not. If it was implemented, how can I have it?

@Sigri44
Copy link

Sigri44 commented Jul 1, 2018

Can't, it's a SCAM :)

@bit111
Copy link

bit111 commented Jul 1, 2018

What do you mean with SCAM?
Was the rtsp feature development abandoned?

@Sigri44
Copy link

Sigri44 commented Jul 1, 2018

No, he have launch a kickstarter last year, and he is "lost" now. :)

@batrarobin
Copy link

@Sigri44

What rubbish! I know shadow-1 personally and I know he has been busy lately with his work and personal life. At this time he is not being able to return to this project due to other priorities. I see that some other people have recently started to carry on with this project so hopefully they would have better chance of accomplishing the "Mission RSTP".

@jaymiracola
Copy link

To be clear, a Kickstarter != a bounty. Please keep this thread clear of conjecture. Anyone capable is more than welcome to the money providing a solution.

@Sigri44
Copy link

Sigri44 commented Jul 2, 2018

So Why he have choice to have many money quickly since last year ? I can ask for it when your projet is finish, but not before if you don't have the time..

@dmnbi4
Copy link

dmnbi4 commented Dec 25, 2018

  • Follow

@gitmoplex
Copy link

gitmoplex commented Jan 15, 2019 via email

@TheCrypt0
Copy link

@shadow-1

I've finally finished my RTSP implementation, it works nicely with Home Assistant, Shinobi and other DVRs.
It is available on the Discord for the supporters of the new project.

I'd like to reward all the people that have put their support on the Bounty by giving them full access to the RTSP on Discord.

Is it possible to close the issue now? Without that, Bountysource cannot mark it as solved.

Thanks,
Crypto


Here's the BountySource message:

Hi, I've been working on a functional RTSP implementation for the past 3 months. 2 weeks ago I published on Discord the first working closed-beta, available to supporters only. Since then I fixed some of issues with Xiaomi's H264 encoder that happened to hang ffmpeg of Shinobi and Home Assistant. Now everything works as it should and the app functionalities are intact (but they can be disabled if you wish).

If you have supported this bounty join the Discord server (https://discord.gg/upPsFWZ) and send me a private message with your username, I will give you access to the private #supporters channel where you will find the download link and all the instructions on how to install and use the server.

Thank you,
Crypto

Tagging all the people that joined the interest of a working RTSP

@jodupuis @DJay-X @xX-Nexus-Xx @xmflsct @sweup @galadril @wrongbongo @c0mm0n @sebastienb @lastb0isct @ericboehs @uavana @xvolte @Robot72 @nikooo777 @markusd1984 @wawryk @cinoque5 @proautodinc @wtstreetglow @jelvs @mblokland @gitmoplex @seydx @kruschman @seanmeads @fabceolin @kb5won @5k1ttl3 @ontdamian @Sigri44 @nico81 @lance36 @bit111 @batrarobin @dmnbi4

@shadow-1
Copy link
Owner

@TheCrypt0
I have had a look on the Discord server and it appears that RTSP solution is working. Even if it is beta/alpha stage, I believe this issue can be closed.

PS. If at all possible, I would be interested in trying this RTSP implementation at some stage. 😄

@xvolte
Copy link

xvolte commented Mar 13, 2019

Will it be made available on this github ?

@TheCrypt0
Copy link

@shadow-1
Thank you for closing the issue, the backers are already coming in Discord and I'm giving them the role "Bountysources".

Of course you can try the RTSP, without your work yi-hack-v4 couldn't exist. Just send me a PM in Discord when you want to give it a try!

@xvolte
The RTSP will be published on GitHub at some point. However the core of the implementation is viewd which provides the H264 stream to the server.

@drlarsen77
Copy link

@TheCrypt0 Are you going to publish the source for viewd?

@truquete
Copy link

It is kind of sad to see people taking open source projects and then putting it behind closed doors behind a "donation". Donations are voluntary. This on the other hand is a feature purchase. So please call things the way they are.
That said, thanks @TheCrypt0 for reviving this firmware.

@TheCrypt0
Copy link

Hi @truquete,
Thanks for expressing your concern about the Supporters' role.

I'm sorry that you intended part of the project as taken from open and make it closed source. That's not what I've done, in fact the whole firmware is freely available on GitHub with all the required scripts to create and build your own.

This took me about 20% of the total time dedicated to the development.

I understand that getting to know that some features are reserved for those who supported the work might be upsetting. However if it weren't for them, probably the RTSP implementation wouldn't exist.

Developing the RTSP, I've came through many challenges and problems: it took me a lot of time to figure out how the Xiaomi encoder worked and how to fix issues related to it. Supporting all of the camera versions was made possible by the very first people donating their cameras to test on. Myself, I purchased more cameras than I actually needed to make the implementation available to the owners of all the different versions.

I've been actively working on it about 5/6 hours a day, for the past 3 months. This equals to more than 400 hours (including weekends).

As I said multiple times to people asking me what the minimum donation was, I always replied that this was a "Donate What You Want" type of contribution and that they were free to give any amount they considered appropriate.

This is different from purchasing something. People donated willing and happy to contribute in collecting resources to develop something they shared the need of. For example, some people donated small amounts to test first and then contributed more, obviously, not on my request.

I hope you now understand my choices and how supporters have an active role in the project.

If you have further questions I'd be happy to welcome you on the Discord Server.

Greetings
Crypto

@truquete
Copy link

Thanks @TheCrypt0 for the explanation behind your decisions. I do understand and support your hard work. Cheers.

@drlarsen77
Copy link

I agree with what @truquete said about it requiring a donation. I get that @TheCrypt0 put in a lot of effort, but so did @shadow-1 and others before him.

In my view, further community-based development of this project is inhibited by a portion of the code being unavailable. I think it is now less likely for someone to start new open-source development on this project as a result. More importantly, there is no opportunity for the community to vet the source or contribute enhancements.

I hope the position is reconsidered and the RTSP source becomes available in the future rather than remaining closed source. We all benefit when improvements can be made by the community rather than one individual.

@flashbackpa
Copy link

flashbackpa commented Apr 5, 2019

Many thanks to @TheCrypt0 for his work, i understand your point of view about donors, but I hope also
that when you'll have enough money to consider the time you spent coding well payed, you'll publish source code. By the way, i'm more than happy to contribute, everybody's time has a value, but discord invitation is broken, at least for me, can you please share a new one ?
Grazie :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests