yi-hack-v5 icon indicating copy to clipboard operation
yi-hack-v5 copied to clipboard

Can't access recorded videos in official Yi Camera app

Open ricardok-sp opened this issue 3 years ago • 9 comments

Installed yi-hack-v5 in five cameras at home and since than I can't access recorded videos on the official Yi Camera app. Live broadcast works well, but not the SD card content. Is that an expected behavior? Does that happen to anyone else?

When I revert to stock firmware, everything works fine. I am also able to download the recorded content from SD.

ricardok-sp avatar Feb 21 '22 12:02 ricardok-sp

The issue persists in all five cameras. I'd realy like to know if SD recordings work fine in the official app for everyone, or if it's broken just for me...

ricardok-sp avatar Mar 08 '22 12:03 ricardok-sp

Try with an older Yi camera app (try to download from apkmirror), I believe I read somewhere that they've changed the app behavior, and now it's only available with subscription. :(

ViktorSchlaffer avatar Mar 08 '22 15:03 ViktorSchlaffer

@ViktorSchlaffer thank you for the hint! I've downgraded the app to v4.84.4 and the recorded video started to work in a realy odd way. After a while, I could identify a pattern:

Every time I tried to reproduce a video, it tried to play something located at 3 hours from the time I chose. For instance: if I tried to play something that happened at 7:15am, it tried to play something at 10:15am. If current time was, for instance, 8am, it rolled back to live video. If there was nothing recorded at 10:15am, it sometimes rolled back to live video, sometimes played the next video after 10:15am.

I would guess it is probably something related to Time Zones. I'm currently in Brazil (time zone BRT3BRST,M10.3.0/0,M2.3.0/0), which is GMT-3. Perhaps the Yi-Hack v5 makes the app think that I am in GMT...

Any ideas?

ricardok-sp avatar Mar 09 '22 14:03 ricardok-sp

It must be related to Issues #98 and #115

ricardok-sp avatar Mar 09 '22 14:03 ricardok-sp

@ricardok-sp yeah, it sounds like the timezone needs to be set. It looks like this for me: /home/yi-hack-v5 # grep TIMEZONE /tmp/sd/yi-hack-v5/etc/system.conf TIMEZONE=CET-1CEST,M3.5.0,M10.5.0/3

/home/yi-hack-v5 # ls -l /tmp/sd/record/ | tail -n 1 drwxr-xr-x 2 root root 32768 Mar 9 14:04 2022Y03M09D15H

as you can see the timestamp of the file and the name of the directory are having different timestamps.

ViktorSchlaffer avatar Mar 09 '22 14:03 ViktorSchlaffer

Same for me. I just left my Timezone blank now, let's check if it works...

/home/yi-hack-v5 # grep TIMEZONE /tmp/sd/yi-hack-v5/etc/system.conf TIMEZONE=

/home/yi-hack-v5 # ls -l /tmp/sd/record/ | tail -n 1 -rwxr-xr-x 1 root root 2117632 Mar 9 14:29 tmp.mp4.tmp

ricardok-sp avatar Mar 09 '22 14:03 ricardok-sp

What I meant to show with my example is this: drwxr-xr-x 2 root root 32768 Mar 9 14:04 2022Y03M09D15H

The directory timestamp is in my local timezone, the create time of the directory is in UTC. So in my case, setting the timezone works.

ViktorSchlaffer avatar Mar 09 '22 14:03 ViktorSchlaffer

The blank timezone did the trick for me! Now I can watch the SD content, even in the up-to-date app. And the content previous to the timezone change is also accessible (although with a -3h delay). Thanks, @ViktorSchlaffer for the tip and support!

ricardok-sp avatar Mar 09 '22 15:03 ricardok-sp

I had the same issue but I had a corrupt SD card. Maybe this information will help someone.

kapabel avatar Jun 29 '22 02:06 kapabel