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

Rotate/Flip video #16

Open
tiimsvk opened this issue Mar 10, 2022 · 3 comments
Open

Rotate/Flip video #16

tiimsvk opened this issue Mar 10, 2022 · 3 comments

Comments

@tiimsvk
Copy link

tiimsvk commented Mar 10, 2022

It is possible to implement flip or rotate image video settings? Thanks

@tiimsvk tiimsvk changed the title rotate the image on the camera Rotate/Flip video Mar 10, 2022
@jameszah
Copy link
Owner

Here is some commented-out code to horizontal and vertical flip the image.

///ss->set_hmirror(ss, 1); // 0 = disable , 1 = enable

... and the full selection of camera configuration parameters .... a few lines above these are the values to put in the parameters.

https://github.com/espressif/esp32-camera/blob/86a4951f507e86034725b04f2428c98c49496dfe/driver/include/sensor.h#L203

Rotate is a little more difficult ... look here to see the different framesizes ... you can set it for hd (1280x720) or portrait-hd (720x1280) ... but I think the camera decides where the top of the frame is, and there is no hardware or driver software to turn it 90 degrees.

https://github.com/espressif/esp32-camera/blob/86a4951f507e86034725b04f2428c98c49496dfe/driver/include/sensor.h#L91

@leowang16
Copy link

overall, very impresive repo! use it for dash cam. work perfect. only one thing before is that i did not realize it has bad index. so my potplayer always have 1fps and 10s as shown. after fixing the fps, it is good.

for the dash cam, i guess horizontal or vertical flip is good for me. it would be perfect if it can be configured in the config.txt. thx!

@giter404
Copy link

giter404 commented Jul 7, 2022

hey , i f u are using VLC player to view the video.avi file , u can turn the video by 180 degrees .
refer to this link.--
https://videoconverter.wondershare.com/vlc/how-to-rotate-a-video-using-vlc.html?gclid=CjwKCAjwiJqWBhBdEiwAtESPaJU4gs54P8qZ5CKcYWCicO40pnfUDfU6qoBA9UvALp5EZ022opYJqxoCp7oQAvD_BwE

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

4 participants