roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
835 stars 110 forks source link

HighRes Snapshot functionality not working (Dome X y30) #461

Closed thoemmes86 closed 2 months ago

thoemmes86 commented 1 year ago

Hi,

I'm currently running 3 Yi Dome X cameras (y30) with this firmware (version 0.4.7). For whatever reason, for 1 of those cameras the Snapshot functionality in HighResolution is not working. Reboot, Firmware reinstall, Reset... are not solving this issue. Configuration is identical with the other 2 cameras.

WORKING: http://IP-ADDRESS:8080/cgi-bin/snapshot.sh?res=low&watermark=yes

NOT WORKING: http://IP-ADDRESS:8080/cgi-bin/snapshot.sh?res=high&watermark=yes No file available.

Has anybody an idea how to solve this?

Thanks.

roleoroleo commented 1 year ago

Try to run the command manually. imggrabber -m y30 -r high -d

thoemmes86 commented 1 year ago

Following I get as result: /home/yi-hack # imggrabber -m y30 -r high -d debug on Resolution: 1080 VMFE0 vaddr: 0xb47eb000 - paddr: 0x23510000 - size: 368640 copy buffer: len 368640 copy again buffer: len 368640 convert YUV image Segmentation fault

roleoroleo commented 1 year ago

Segfault is not normal... Does high res stream work? Please check the yi firmware revision (with the app or with # cat /home/homever). Both for working cam and not working cam.

thoemmes86 commented 1 year ago

Now when I explicitly checked: high res stream doesn't work neither.

Not working Cam: 4.0.0.0F_201909251646

Working Cam: 4.0.0.0F_201909251646

roleoroleo commented 1 year ago

Ok, I don't know why but... Run the grabber with stdout redirection and send me the resulting file (both cams):

h264grabber -m y30 -r high > /tmp/sd/cam.h264

Leave the process running for 10 seconds and break with CTRL-C.

thoemmes86 commented 1 year ago

Attached the links to the files: https://1drv.ms/u/s!AqxFu6uAVIMUgaJeZQ0gyYAQG-2_Vw?e=1VWpZv https://1drv.ms/u/s!AqxFu6uAVIMUgaJfmpEa0x-wbyrqEA?e=hrtNqM

roleoroleo commented 1 year ago

I don't know why but the stream is different. Different SPS, PPS, etc...

Please send me 3-4 copies of the file /dev/fshare_frame_buf Copy it, wait 5 secs, copy it again, wait... I need to check better the stream.

wlcims commented 11 months ago

Use the yi app to modify the H265 stream to H264 stream, and the high-resolution stream will be ok.

thoemmes86 commented 11 months ago

As I have still the issue, it would be perfect if this could solve it. I tried to find the Setting in the Yi Home app, but I was not able to finde where to change the setting. Can you provide same mir guidance about how to change this setting? Many thanks in advance.

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.