mipops / dvrescue

Archivist-made software that supports data migration from DV tapes into digital files suitable for long-term preservation. Snapshot daily builds are at https://mediaarea.net/download/snapshots/binary/dvrescue/.
BSD 3-Clause "New" or "Revised" License
82 stars 19 forks source link

add signalstats values to decklink capture xml and csv #857

Closed dericed closed 1 week ago

dericed commented 1 month ago

based off https://github.com/mipops/dvrescue/issues/767.

I'd like a few signalstats values in the xml, such as

<frame n="0" pos="0" pts="00:00:00.000000" tc="01:16:11:01" seqn="F">
   <signalstats satmax="900"/>
</frame>

Note that we'd need to add bitdepth to the <frames> element and to the csv output to contextualize the satmax value.

I'm open minded if these new filter values are as attributes or sub-elements.

JeromeMartinez commented 1 month ago

few signalstats values

Which ones?

dericed commented 1 month ago

So perhaps rather than use signalstats directly we could replicate it by doing our own math. If this is a good direction, let's start with SATMAX, SATHIGH, SATAVG, which is the highest, highest when excluding the top 10%, and the average value of

b=bitdepth
sqrt( (U - 2^(b-1))^2 + (V - 2^(b-1))^2 )