trek-view / gopro2gsv

Processes .jpg images and .mp4/.360 videos shot on GoPro MAX or Fusion cameras and uploads to Google Street View.
Apache License 2.0
4 stars 0 forks source link

Times of extracted frames seem incorrect #34

Closed himynamesdave closed 9 months ago

himynamesdave commented 9 months ago
python3 gopro2gsv.py \
    --input_video tests/ski/GS016843.mp4 \
    --path_to_nadir stock_nadirs/without_gopro/trek_view_full_nadir.png \
    --extract_fps 0.5 \
    --keep_extracted_frames \
    --output_filepath tests/output/GS016843-test2.mp4

See extraction rate is 0.5 (i.e. one frame every 2 seconds).

However, see the extracted frame times below.

exiftool tests/output/GS016843-test2-images/FRAME-00001.jpg # 2023:03:02 08:13:00.904Z
exiftool tests/output/GS016843-test2-images/FRAME-00002.jpg # 2023:03:02 08:13:01.020470999Z
exiftool tests/output/GS016843-test2-images/FRAME-00003.jpg # 2023:03:02 08:13:01.136942Z
exiftool tests/output/GS016843-test2-images/FRAME-00003.jpg # 2023:03:02 08:13:01.253413Z

They are all 0.1 seconds apart.

Note, the extracted time is not super important here BUT the GPS points are. It is vital we align extracted frames with the correct GPS point reported in the video.

fqrious commented 9 months ago

fixed