kartaview / android

Android app for collecting KartaView imagery
MIT License
134 stars 30 forks source link

Rotated Images in KV #198

Closed brmonaghan closed 1 year ago

brmonaghan commented 1 year ago

@zhaitianduo @miruna-craciun Another problem with KV. It appears that the images are rotated when processed in KV. My device is a Fire HD 2019 and has Android 9 https://kartaview.org/details/7728793 https://kartaview.org/details/7728521 https://kartaview.org/details/7724585 https://kartaview.org/details/7724569 https://kartaview.org/details/7724553 https://kartaview.org/details/7724521 https://kartaview.org/details/7724489 https://kartaview.org/details/7724473 https://kartaview.org/details/7703369 https://kartaview.org/details/7703353 The camera is positioned on the bottom right when recording the images. Any way this can be fixed?

chrisdebian commented 1 year ago

Hi, Bryce.

Could this be related to the Android version? Wondering if you could flash a more modern version of Android? That's purely a guess, by the way.

Cheers,

Chris

chris_debian

brmonaghan commented 1 year ago

https://kartaview.org/details/7841865/ FIXED! All I had to do was this copy files from sd card (Android/data/com.telenav.streetview/files/OSV/SEQ-replace-this-with-hex) to a folder on your computer get ffmpeg and perform the following step per folder for %i in (*.mp4) do ffmpeg -i "%i" -vf "rotate=PI:bilinear=0,format=yuv420p" -metadata:s:v rotate=0 "%~ni-out.mp4" get bulkrename utility and drop the last 3 digits from the file (omitting out from the filename) EXCEPT the tracks.txt.gz! place files back on sd card, placing them in Android/data/com.telenav.streetview/files/OSV folder. Follow steps to upload data from card to KV's servers. If you dont have a sd card, its pretty cheap (around $5 for a 16gb one) or you can use a DATA transfer cable that is USB Type C! Closing issue.