Page 1 of 1
Converted files counter
Posted: Mon Sep 20, 2021 1:28 pm
by PoznanskaPyra
Is it possible add converted files counter to web api?
This tool is perfect to show how important converter is.
Re: Converted files counter
Posted: Mon Sep 20, 2021 1:49 pm
by emcodem
You mean webinterface or really API?
Also, you mean some kind of overall counter, that counts up forever, correct?
One problem with that is that it is more or less impossible to find out the number of coverted files - started with the fact that a job does not have to actually process any file (e.g. delete jobs).
One way that i see is that you insert a corresponding batch at start or end of your workflow which takes a number from a local text file, counts it up and stores the new number back to the text file...
Re: Converted files counter
Posted: Tue Sep 21, 2021 10:14 am
by admin
Hi PoznanskaPyra,
You must realise that although FFAStrans is perfect for converting video files, it's a workflow tool and have no clue actually about what is going on any given job. It just executes a bunch of actions the user has put into a workflow. One of those things MIGHT be conversion but it can be litteraly "anything". So there is nothing in FFAStrans to suggest it can count conversions as such. One COULD implement a feature for counting the number of times a specific node or a node type has been executed but I think this is probably not what you want.
So basically, what emcodem suggest to put the counting in the workflow is currently the way to go.
-steinar
Re: Converted files counter
Posted: Tue Sep 21, 2021 1:59 pm
by PoznanskaPyra
Maybe ended jobs counter is better idea?
Re: Converted files counter
Posted: Tue Sep 21, 2021 5:26 pm
by emcodem
Well it's a similar problem: One Job can split up into many subjobs... so what do you want to count, each job or all subjobs?
Whats the difference between the existing counters on the webinterface and what you want to do? ...is it that your number counts up forever?