-
Notifications
You must be signed in to change notification settings - Fork 5
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
Snap for Mini 11S (Firmware 4.0.7.20210624, Merkury 1080p) - No "pps_media_md_get_pic" Found #38
Comments
mjpeg.cgi still isn't working. The URL loads but all I see is a tiny grey square symbol and no image. |
For snap: I followed the directions here closely but there was no "pps_media_md_get_pic" found even though my code/scripts looked almost exactly like your screenshots in the guide. For mjpeg: I followed the directions closely and found the address: 0x003940e4. I updated the mjpeg file with that address and the URL will load but there is just an empty grey square displayed. I'm really hoping you will see this message soon and have a moment to help me. Thank you! |
@richaardvark the 4.0.7 firmware has several differences from the posted information -- the differences can be big even between two different 4.0.7 firmware files. Please post a zip of your ppsapp and I can find the address for you. |
Here is a zip with my ppsapp. Thank you very much for your help! |
@richaardvark your snap/mjpeg address should be: 0x03932e8 |
@guino Thanks! I updated both my snap.cgi and mjpeg.cgi files with that address but neither URL will load. It never times out but just keep indefinitely loading forever:
http://admin:[email protected]:8090/cgi-bin/snap.cgi: Did I give you the correct ppsapp file? The only one I could find on the SD card was located in the /home/app/ folder at /home/app/ppsapp and that's the one I zipped and uploaded here for you to find the address. Edit: I tried removing the leading 0s from 03932e8 but that didn't work either. :( Edit again: I saw on the patch/address thread here that a different camera (Bullet 4S) seemed to have the same 4.0.7 firmware version/date (ppstrong-a3-tuya2_electro-4.0.7.20210624) and it had the snap/mjpeg address listed as 0x0395918 so I tried that address as well but still had no luck. I was going to try using the ppsapp.zip file posted there as well but have read on here where you have warned others before to never use a ppsapp from a different device/different hardware on your model of camera so I am holding off on doing that lol. Edit again again: I had no ppsapp file in the root of my SD card so I copied the one from /home/app/ppsapp to /ppsapp and rebooted but still nothing. Was I supposed to do that? What's weird is yesterday/previously it would always load the snap/mjpeg URLs but there would just be an empty grey square symbol but now it won't load those URLs, they just try to load indefinitely without ever timing out. |
@richaardvark I will double check the address on the code and let you know, meanwhile please check:
|
Oops - I did have the ppsFactoryTool.txt file on the SD card, in the root folder. It is now deleted. I thought that according to these instructions though we needed the ppsFactoryTool.txt file and that it is necessary for enabling http server URLs, which are at port 8090 for the 1080p camera, not 8080? 🤔
I had manually added it but it is now removed.
Yes, navigating to the URL with port 8080 (matches custom.sh) does list all the SD card files, so that's a good sign.
Here are all files now listed on my SD card/in the cgi-bin folder:
I deleted the ppsFactoryTool.txt file and the ppsapp file from the root of the SD card and confirmed everything else/all addresses are correct and am rebooting now and will see what happens... fingers crossed 🤞🏻 ...one moment... @guino Hooray! :) snap, mjpeg, and rtsp are all working beautifully now! 🎉🙌🏻 However, now none of the 8090 URLs from before are working, for example: http://192.168.1.242:8090/dsp/debug/xchdaynight/day/--%3Eok to manually set the camera into day mode. :-/ Hmm... http://192.168.1.242:8080/dsp/debug/xchdaynight/day/--%3Eok isn't working either. Final Update/Edit: I went ahead and added the ppsFactoryTool.txt file back to the root of the SD card (even though you said to remove it?) and now I can once again access all 8090 URLs and I still have rtsp / snap / mjpeg working wonderfully, so I think I'm good to go and can close this issue out! Are you sure I shouldn't have the ppsFactoryTool.txt file? I thought it was necessary for http functions...? 🤔 Thanks again for your help!!! Buying you a beer today (once I can find my wallet lol)! |
@richaardvark glad snap/mjpeg and rtsp are working. Regarding the URLs on port 8090 these will only work with ppsFactoryTool.txt in the SD card. We only need these URLs to get information to install the hack but if you’re using it for other purposes you can try keeping it in place but if RTSP/snap/mjpeg stop working after a reboot of the device you should keep in mind the ppsFactoryTool file may be the reason. You can add the ppsFactoryTool anytime after boot and it should enable the URLs but some firmware versions will not initialize the video (rtsp/snap/mjpeg) if that file exists during boot — if your version is like that you may need to do something different to create the file later after the device has booted up so you can use the URLs. |
ok, thanks! :) Leaving the ppsFactoryTool file there doesn't seem to be breaking anything or preventing the jpeg stream from starting. If it does perhaps I can write some script somewhere to add the file upon reboot but delayed? 🤔 I have been using some of the URLs from this list here and have found them helpful for controlling the camera without using the Android app. |
That is what I would suggest if required, yes. |
Hello,
Trying to get snap and mjpeg working on my 4.0.7 firmware version 1080p Mercury camera. Searching the code in Ghidra for "pps_media_md_get_pic" returns no results :( What do I do next??
I already have rtsp working.
Thanks!
Edit: I did find "talkTask" and the address for mjpeg.cgi, which is: "DAT_003940e4" so I guess that = 0x003940e4 ? Is the "e" supposed to be there? lol
The text was updated successfully, but these errors were encountered: