gtxaspec / wz_mini_hacks

wz camera mods... make your camera better.
1.26k stars 106 forks source link

90° Video Rotation #45

Closed wehbs closed 2 years ago

wehbs commented 2 years ago

Using my Wyze cam as part of a Homekit video doorbell. Would be awesome if we could somehow rotate the video feed by 90°.

Vendo232 commented 2 years ago

I can rotate in Wyze cam app

wehbs commented 2 years ago

Wyze cam only allows 180 looks like. But this could be done with ffmpeg looks like with a filter -vf "transpose=dir=0".

gtxaspec commented 2 years ago

ffmpeg is the easy way capturing the rtsp stream, otherwise will need to look at the T31 SDK to see how it can be done in software on the camera.

gtxaspec commented 2 years ago

we may be able to do this by changing the i2c config on the image sensor, though, the camera does not use the standard i2c interface. will research this method.

gtxaspec commented 2 years ago

looks like only horizontal mirror, vertical flip, and Horizontal Mirror and Vertical Flip are supported modes by the sensor.

I wonder how the doorbell does it...

mrlt8 commented 2 years ago

I believe they do the rotation in the app. That's why they had/have issues with the echo shows.

gtxaspec commented 2 years ago

@mrlt8 oh awesome information, I wasn't aware of that... You've saved me some time in Ghidra digging through libraries.

gtxaspec commented 2 years ago

closing, for now the only way to do this is to use something like ffmpeg.

day1118 commented 8 months ago

I tried adding -vf "transpose=dir=0" into the go2rtc config after the -i /dev/video1, but the video then shows blank. Has anyone done this successfully? Are there any other changes needed? Thanks