Skip to content
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

Timings in CAMM are incorrect for both video and photo inputs #9

Open
himynamesdave opened this issue Nov 9, 2022 · 5 comments
Open
Assignees
Labels
bug Something isn't working camm documentation Improvements or additions to documentation testing-case
Milestone

Comments

@himynamesdave
Copy link
Member

himynamesdave commented Nov 9, 2022

Note how video is 10.6 seconds long

<QuickTime:Duration>10.60 s</QuickTime:Duration>

However, CAMM samples show duration of each at 1 seconds,

<Track2:SampleTime>0:00:50</Track2:SampleTime>
 <Track2:SampleDuration>1.00 s</Track2:SampleDuration>

Making samples longer than video, which is incorrect.

Sample rate should match gpx rate (0.2 seconds). This is similar to #8

UKBC002-out-exif.txt

@himynamesdave himynamesdave added the bug Something isn't working label Nov 9, 2022
@himynamesdave himynamesdave added this to the 0.1 milestone Nov 9, 2022
@himynamesdave himynamesdave changed the title Timings in CAMM are incorrect Timings in CAMM are incorrect for both video and photo inputs Nov 9, 2022
@karamvirup
Copy link
Contributor

46b721e
please have a look now.

@karamvirup
Copy link
Contributor

@himynamesdave already have explained this to you, but let me know if there's anything to discuss

@himynamesdave
Copy link
Member Author

#9 (comment)

@karamvirup can you please post the explanation here? for the benefit of the community. thanks!

@himynamesdave himynamesdave added the documentation Improvements or additions to documentation label Nov 15, 2022
@karamvirup
Copy link
Contributor

karamvirup commented Nov 15, 2022

sure! let's wait and do it with gpmf as it has similar ticket.

@himynamesdave
Copy link
Member Author

#9 (comment)

this update does improve the timings in CAMM, but there is still an issue @karamvirup

In the example below I create a video from 57 images.

python3 telemetry-injector.py -c -i UKBC003-in/ -o UKBC003-out-camm.mp4

Examining the video:

exiftool -ee -G3 -api LargeFileSupport=1 -X UKBC003-out-camm.mp4 > UKBC003-out-camm.xml

I get:

<QuickTime:Duration>11.40 s</QuickTime:Duration>

but track duration seems incorrect

<Track2:TrackDuration>2.20 s</Track2:TrackDuration>
<Track2:MediaDuration>11.20 s</Track2:MediaDuration>
<Track2:HandlerType>Camera Metadata</Track2:HandlerType>

with final point at 11.00 seconds (when expected is 11.2 seconds)

<Track2:SampleTime>11.00 s</Track2:SampleTime>
<Track2:SampleDuration>0.20 s</Track2:SampleDuration>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working camm documentation Improvements or additions to documentation testing-case
Projects
None yet
Development

No branches or pull requests

2 participants