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

GET ?act=info response returns incorrect values #48

Open
audionerd opened this issue Jun 30, 2020 · 1 comment
Open

GET ?act=info response returns incorrect values #48

audionerd opened this issue Jun 30, 2020 · 1 comment

Comments

@audionerd
Copy link

According to HTTP.md, ?act=info can be used to get the duration and size of the video file. From the docs:

GET /DCIM/110ZCAME/ZCAM0100_0000_201811121522.MOV?act=info
{
  "code": 0,
  "desc": "",
  "msg": "",
  "w": 2880,   // video width
  "h": 2880,   // video height
  "vts": 30000, // video timescale
  "vcnt": 107,   // video packet count
  "dur": 107107 // video duration.
}

But the values actually returned in the response are incorrect.

  • w/h do not match the primary video stream in the downloaded file. They appear to be set from the proxy stream #0:1, instead of the primary stream #0:0. Where do these values actually come from?
  • vts is described only as the "video timescale". What does that mean? The definition is unclear. It appears to actually be the audio sample rate of stream #0:2 (48000)? What is this value actually returning?
  • dur is described as the "video duration" but it did not match the actual video stream #0:0 duration. It appears to be the number of audio samples? What is this value actually returning?
  • vcnt is described as the "video packet count". What does that mean? It appears to be approximately the number of frames in the video + 1. What is this value actually returning?

For reference, in our testing, once we downloaded the actual .MOV file we used ffprobe to view its actual values to compare to the ?act=info JSON response. We were recording to ProRes (stream #0:0), and the file also has an HEVC proxy (stream #0:1), and audio (stream #0:2), as well as a timecode stream.

For our use case, we want to know the actual video duration and actual frame count of the video for verification purposes, to make sure that it has downloaded correctly. But currently, we cannot rely on ?act=info to provide these values accurately.

Please fix ?act=info to provide more accurate information about the video, and update the documentation to accurately describe how ?act=info works.

@QuinnyPig
Copy link

Can also confirm that ?act=md5 returns an md5 checksum that bears no discernible relation to the actual file being queried. That seems... less than ideal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants