time4tea / gopro-dashboard-overlay

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

speed info missing when parsing video's telemetry data #214

Open Dzhami-Jame-ALI opened 2 months ago

Dzhami-Jame-ALI commented 2 months ago

Description:

Speed is missing in the widgets when using gopro-dashboard-overlay directly. However, all telemetry data is accurate in the GPX file exported from the video.

Data:

A video recorded by a GoPro 7 during highway driving.

Step 1:

Directly use python3 bin/gopro-dashboard.py --font ../RobotoMedium.ttf ../input.MP4 ../output.mp4 to make the video. For the output video, speed, altitude, slope value is missing (dash symbol) in more than 90% of the video time. However, the GPS info (long, lat) is shown correctly all the time, and the position in the map widget is smoothly moving.

Step 2:

Use gopro2gpx (https://github.com/juanmcasillas/gopro2gpx) to check gpx file export by the video. The gpx file shows no corruption or drifting. I tried to use bin/gopro-to-gpx.py to convert, got error File "/PATH/lib/python3.11/site-packages/gopro_overlay/gpmf/visitors/xyz.py", line 24, in __init__ raise IOError(f"Unhandled ORIN spec: {conversion}") OSError: Unhandled ORIN spec: XZy.

Step 3:

Use python3 bin/gopro-dashboard.py --font ../RobotoMedium.ttf ../input.MP4 ../output.mp4 --gpx ./inpput.gpx --use-gpx-only to make the video again. The gpx file is generated in step 2. --use-gpx-only is necessary here otherwise the output video is still missing speed in widgets. Now the output video looks good.

(Sorry, I’m new to gopro and gopro video format. I would be happy to test more cases if someone could point me to the relevant files where I should add debugging code.)