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 rolling graph to decklink capture #867

Open dericed opened 2 weeks ago

dericed commented 2 weeks ago

Similar to the graph under the dv capture interface, let's add a saturation graph under the decklink capture interface.

@g-maxime added the pix_fmt column to the csv.

Here's some values to initiatize:

yaxis_min=0
   sat1=88.7
   sat2=118.2
   sat3=118.2
If pix_fmt=v210, then
   yaxis_high=1023,
   sat_multiplier=1
else
   yaxis_high=255
   sat_multiplier=4
fi

Plot the value of satavg as a 1 point black line. Plot the value of satmax as a 1 point line. if the value of satmax is above (sat3sat_multiplier) then plot in red, else if satmax is above (sat2sat_multiplier) plot in orange, else plot in green. The yaxis should be from 0 to the value of yaxis_high.