Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Get Statistics by Execution ID #618

Closed
JChappel opened this issue Dec 9, 2020 · 6 comments
Closed

Get Statistics by Execution ID #618

JChappel opened this issue Dec 9, 2020 · 6 comments
Assignees
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@JChappel
Copy link

JChappel commented Dec 9, 2020

Description
Right now it appears the only way to get statistics is as they come in on the delegate callback. Is there a way to ad hoc a statistics call while passing an execution ID to get particular stats for that execution?

Expected behavior
Would like to get statistics by execution ID.

Current behavior
New Feature Request

Screenshots

Logs

Environment

Other

@tanersener
Copy link
Owner

No, there is not. Currently they're generated during the execution and we pass them in StatisticsDelegate/StatisticsCallback calls.

@JChappel
Copy link
Author

JChappel commented Dec 9, 2020

Could this be a feature that is implemented in the future?

@tanersener
Copy link
Owner

tanersener commented Dec 9, 2020

Getting statistics requires saving statistics. And if library saves statistics it needs to define a mechanism to delete them too. You can not keep them in memory forever. That's the difficult part. Any suggestions about when to delete them or how to decide about deleting them?

@JChappel
Copy link
Author

My thought was using MobileFFmpegConfig.getLastReceivedStatistics() call, but being able to pass an active Execution ID. But after the command is completed you could then delete the statistic.

In my project, I'm recording an RTSP stream to a local file, so I would like to be able to periodically check the statistics of the command. Once the command has been stoped I would no longer need access to the statistics and it could then be deleted. Right now I monitor the statisticsCalclback and watch for my Execution ID.

Not sure if that answers your question.

@tanersener tanersener added the enhancement New feature or request label Dec 10, 2020
@tanersener
Copy link
Owner

tanersener commented Dec 10, 2020

Saving the last received statistics data and deleting it when the execution completes is possible I guess. I'll mark this issue as enhancement request and work on it when I have time.

@tanersener tanersener self-assigned this Feb 8, 2021
@tanersener tanersener added the wontfix This will not be worked on label Apr 13, 2021
@tanersener
Copy link
Owner

This project will be retired. Please consider switching to FFmpegKit. This features is implemented there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants