time4tea / gopro-dashboard-overlay

Programs to process GoPro MP4 & Generic GPX/FIT files and create video dashboards & maps
GNU General Public License v3.0
381 stars 52 forks source link

list index out of range error #9

Closed KyleGW closed 2 years ago

KyleGW commented 2 years ago

gopro-dashboard-overlay error

KyleGW commented 2 years ago

ffprobe of test file for gopro-dashboard-overlay

time4tea commented 2 years ago

Hi. Thanks for taking the time to post a bug.

You don't need to extract the gpx data first from the video, the dashboard program can read it directly from the video file. The "--gpx" option is there just in case you have additional files, say from a bike GPS, that you want to merge with the data from the gopro. If you try running the program again, without the --gpx option, you may have more luck. I'll see if the instructions can be improved so this is clearer.

KyleGW commented 2 years ago

that worked, thank you! Works great on the 1080 videos, I'll maybe take a look at doing a pull request for adding logic to detect 4k and adjusting the positions and sizing. I do this all today with racerender but am wanting to automate the workflow so i can copy all the clips to a folder, run a script and get the output I want.

KyleGW commented 2 years ago

Also quick FYI, this is working for me on Windows 11 using Ubuntu on Windows Subsystem for Linux (WSL) which is a Windows feature I could enable after turning on virtualization in BIOS and enabling Hyper-V.

time4tea commented 2 years ago

Great. Maybe if you could let me know what are the top few things you'd like to do with the program, I could take a look at how easy they might be. Please annotate it from absolutely essential to maybe possibly useful...

time4tea commented 2 years ago

Re WSL, that is super interesting, thank you!

KyleGW commented 2 years ago

I'd say you already documented and know my top 2. Once those are in it becomes more useful to a wider range of people.

  1. Ability to control which widgets are displayed
  2. ability to control widget layout
  3. once 1 and 2 are implemented, the ability to use a configuration file so you can set a config once, or have multiple different saved configurations
  4. detection of video size for 1080 vs 4k and adjust automatically for those. add 2.7k later but imagine 1080/4k cover most use cases
  5. concatenation of multiple gopro clips (big annoyance for me) or maybe even a separate side utility that will concatenate two files AND keep the gpmf data and timecode streams in sync. then the combined file could be fed to the existing program.
  6. a moving map implementation would be cool

That's all I can think of at the moment. Great work so far sir! Very useful utility you have going here.

KyleGW commented 2 years ago

annd I just realized the top map is a moving map. awesome! I need to try out the other map types and also figure out how to adjust the map scale. I am using this for flying and there were no roads around, so it was just showing me grey box with a blue dot in the middle using OSM.

time4tea commented 2 years ago

I've published a new version. It solves 1,2 & 3 on your list I think. I'll close this issue for now, as I the initial reported defect has been addressed.