feat: SetFps v4l2 + ffmpeg command#265
feat: SetFps v4l2 + ffmpeg command#265ChristianDarr-personal merged 34 commits intoedgexfoundry:mainfrom
Conversation
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
e91ec58 to
aebb389
Compare
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #265 +/- ##
========================================
- Coverage 4.95% 4.21% -0.74%
========================================
Files 8 8
Lines 908 1067 +159
========================================
Hits 45 45
- Misses 863 1022 +159
|
|
Validation looks good with get frame rate, get video data format and set fps api's. |
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
f176b3a to
8b42b1c
Compare
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
presatish
left a comment
There was a problem hiding this comment.
Posting first set of my review comments.
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: preethi-satishcandra <preethi.satishchandra@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: preethi-satishcandra <preethi.satishchandra@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: preethi-satishcandra <preethi.satishchandra@intel.com>
…ce-usb-camera into set-fps-v4l
ajcasagrande
left a comment
There was a problem hiding this comment.
Still looking at driver/metadata.go. Here are my thoughts so far.
internal/driver/driver.go
Outdated
| if edgexErr != nil { | ||
| return errors.NewCommonEdgeXWrapper(edgexErr) | ||
| } | ||
| fpsValueDenominator, ok := fpsParam.(map[string]interface{})[FpsValueDenominator] |
There was a problem hiding this comment.
the naming of this in the API input can be a little confusing. technically these are the "interval" values which are an inverse of the actual fps. its actually spf (sunblock anyone)? seconds per frame. I think maybe we name it FpsInvervalDenominator? Either way we probably need to document it.
There was a problem hiding this comment.
Yeah that was a problem during development, the fact that internally it's handled opposite of how we usually think about frame rates.
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: preethi-satishcandra <preethi.satishchandra@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: preethi-satishcandra <preethi.satishchandra@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
Signed-off-by: Darr, Christian <christian.darr@intel.com>
|
Validation looks good |
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:describing the break)Testing Instructions
Note, any commands executed need to include the query parameter
PathIndexwith the value set to the number representing the video path stream intended. For example:http://localhost:59982/api/v3/url?PathIndex=0. Also it is recommended to use the updated postman collection.FrameRateFormatapi to see supported fps values. This shows all fps values for each resolution for each type of encoding. This can be useful for determining the values to set the camera fps.DataFormatapi to see the supported fps values for the current video format and encoding.SetFrameRateapi and see no errors.The fps is represented in a time per frame format, meaning the denominator divided by the numerator yields the fps value. I did this to maintain consistency with the internal data structures. You can leave the numerator out completely, and the denominator will represent the fps value.GetFrameRateapi and see that the fps match.New Dependency Instructions (If applicable)