-
-
Notifications
You must be signed in to change notification settings - Fork 15
Improve GPS accuracy when locating videos #109
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
Conversation
I have reviewed all my gopro videos and made all improvements to improve accuracy I have removed the GpsFix and because some videos recorded with the gopro have the correct location but the gpsfix flag was not active, the same thing also happened with the speed that there were videos with the correct location but at speed 0 Then I have added a process to select the most repeated and next locations so we discard false locations. we also control the height because it is an indicator of incorrect position. That's why in the end I added a filter by country, so that they discard the false locations, but this generates an infinite loop that makes the videos repeat over and over again. I have gone crazy and I have not been able to solve it Please help All the best
Get max country codes from config
I'm done with the improvements. Before:
Try yours with your videos and tell me what you think all the best |
Looks like your fix broke a test, which is the intended result: https://github.com/KonradIT/mmt/actions/runs/4690562299/jobs/8313820953?pr=109#step:5:117 Make hero6+ble true: https://github.com/KonradIT/mmt/blob/development/pkg/gopro/location_test.go#L18 Let's see if it returns the data |
Holy crap, nice. Switch hero7.mp4 and hero8.mp4 to true as well. I have my doubts about removing the GNSS lock setting, but it seems to work fine without it. There are some linting errors as well, to make sure you push code that's linted, run |
I don't see what the error is generating by golangci-lint where is the wrong code? |
https://github.com/KonradIT/mmt/actions/runs/4692809139
|
Don't skip the files. The root of the problem is the deterministic import rule from golangci-lint. If you use vscode, I recommend you install the Go extension and turn linting on, much easier. Use gci to sort out the imports: https://github.com/daixiang0/gci |
Na que no hay manera con el Lint :-( y ahora hemos sobrepasado el límite de descargas :-( |
Es temporal lo de el api rate limit, en unos minutos lo correre manualmente. Para arreglar el lint del deterministic import: go install github.com/daixiang0/gci@latest
gci write --skip-generated -s standard,default . |
pkg/gopro/location_test.go
Outdated
// TODO: | ||
// Invalid length ACCL packet | ||
// "Fusion.mp4": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comment, file an issue in this repo instead.
Orden correcto de import (
"bytes"
"io"
"math"
"path/filepath"
"strings"
"github.com/codingsince1985/geo-golang/openstreetmap"
"github.com/konradit/gopro-utils/telemetry"
mErrors "github.com/konradit/mmt/pkg/errors"
"github.com/konradit/mmt/pkg/utils"
"github.com/konradit/mmt/pkg/videomanipulation"
"golang.org/x/exp/slices"
) |
pkg/gopro/location.go
Outdated
type Location struct { | ||
latitude float64 | ||
longitude float64 | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La struct de Location ya esta definida en el package de utils, con lat / long exportados, de hecho este mismo archivo ya lo usa (utils.Location
). Mejor usarlo y no repetir codigo.
Revert go.mod/go.sum changes y pa alante. |
gracias!!! |
[Improve GPS accuracy when locating videos]
Improves the process of finding the correct gps location of the video.
I have reviewed all my gopro videos and made all improvements to improve the accuracy
I have removed the GpsFix and because some videos recorded with the gopro have the correct location but the gpsfix flag was not active, the same thing also happened with the speed there were videos with the correct location but at speed 0
Then I added a process to select the most repeated and next locations so we discard false locations.
we also control the height because it is an indicator of incorrect position.
That's why in the end I added a filter by country so that they discard the false locations, but this generates an infinite loop that makes the videos repeat over and over again.
I have gone crazy and I have not been able to solve it
Please help
All the best
Type:
Camera:
Component:
Checklist before approval: